kyma-project / telemetry-manager

Manager for the Kyma telemetry module
https://kyma-project.io/#/telemetry-manager/user/README
Apache License 2.0
5 stars 24 forks source link

[OTLP output] Support additional endpoint path #594

Closed a-thaler closed 8 months ago

a-thaler commented 9 months ago

Description The OTLP endpoint for pushing metrics can be specified in the OTLP output either with a secretRef or as plain value. There are scenarios like with Dynatrace where the endpoint gets constructed out of the dynamic environment URL plus a static path. Such setup is not supported currently.

Goal is to enhance the API so that the environment URL can be specified via a secretRef plus an additional plain text path addition.

As an example take a dynatrace config below. Here the "https://icke.com/api" part will be provided by a secretRef while "v2/otlp" is specific for otlp ingestion and needs to be added plain.

output:
        otlp:
            protocol: http
            endpoint:
                value: https://icke.com/api/v2/otlp

API Proposal:

output:
        otlp:
            protocol: http
            endpoint:
                value: https://icke.com/api
                path: /v2/otlp/v1/traces

It seems best to support a custom path for HTTP protocol only which will configure the "traces_endpoint" attribute always. By default it will take "/v1/traces".

Criteria

Reasons

Attachments

Release Notes

Possibility to configure a custom path for an OTLP HTTP endpoint
hisarbalik commented 8 months ago

Additional endpoint path implemented