You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The default format for the metrics endpoint is json, and if we want to have metrics in prometheus format we need to add the query param format=prometheus. Unfortunately there is no "standard" annotation for that.
When using datadog, scraping fails because it does not understand json. Manually updating the pod annotations to:
Segflow
changed the title
Helm chart: User provided annotations should superse default one
Helm chart: User provided annotations should supersed default ones
Mar 2, 2023
Feature Description
The consul helm chart offers the
global.annotations
value, but they are being superseded by the default ones because the helm template is as follow:I believe the user provided
annotations
should be applied last so they supersede everything else (in this case the prometheus annotations)Use Case(s)
When
metrics.enabled
is true, these annotations are added to all pods:Which works fine when the scraper is prometheus.
The default format for the metrics endpoint is json, and if we want to have metrics in prometheus format we need to add the query param
format=prometheus
. Unfortunately there is no "standard" annotation for that.When using datadog, scraping fails because it does not understand json. Manually updating the pod annotations to:
Fixed the issue for me.
Contributions
If you are ok with this, I can implement the change.
The text was updated successfully, but these errors were encountered: