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
We were using Grafana Agent static mode and then upgraded to Flow mode. We are using Grafana Agent Flow mode in all our environments for approx a year.
Recently we upgraded our development env to k8s-monitoring-helm v1 and planning to upgrade to v2. Then we will move forward to higher envs for sure.
Our problem with v1 (and as I see same on v2) is as follows:
Historically most of the applications running on our clusters were annotated with prometheus scheme, for example
prometheus.io/scrape
prometheus.io/port
Then when we upgraded to Flow mode, we changed those annotations with Grafana Agent Flow mode scheme, for example:
Now with k8s-monitoring-helm v1, I have defined the following to keep our annotations (not to ask engineers to change once more 😬 ):
metrics:
autoDiscover:
annotations:
scrape: "metrics.agent.grafana.com/scrape"
port: "metrics.agent.grafana.com/port"
...
...
... all other possible annotations to replace with Flowmode scheme
...
...
I see, there are ways to define similar in v2 as well...
Recently I have realized that there are some community applications / Helm charts for enterprise applications we use which does not provide a way to define those annotations easily. Yes this is (kind of) bad Helm Chart but this is what we have today
Question: Can there be a way to define multiple options for those annotations. So we can use both prometheus.io scheme and Flow Mode scheme, like a regular expression format prometheus.io/scrape|metrics,agent.grafana.com/scrape (or any other way)??
I am planning to move slowly to new k8s-monitoring-helm scheme as in k8s.grafana.com/... but without forcing engineering or without breaking anything. So this will help for such transitions and for such Helm charts which do not allow annotations override
The text was updated successfully, but these errors were encountered:
We were using Grafana Agent static mode and then upgraded to Flow mode. We are using Grafana Agent Flow mode in all our environments for approx a year.
Recently we upgraded our development env to k8s-monitoring-helm v1 and planning to upgrade to v2. Then we will move forward to higher envs for sure.
Our problem with v1 (and as I see same on v2) is as follows:
Historically most of the applications running on our clusters were annotated with prometheus scheme, for example
Then when we upgraded to Flow mode, we changed those annotations with Grafana Agent Flow mode scheme, for example:
Same goes for log related annotations.
Now with k8s-monitoring-helm v1, I have defined the following to keep our annotations (not to ask engineers to change once more 😬 ):
I see, there are ways to define similar in v2 as well...
Recently I have realized that there are some community applications / Helm charts for enterprise applications we use which does not provide a way to define those annotations easily. Yes this is (kind of) bad Helm Chart but this is what we have today
Question: Can there be a way to define multiple options for those annotations. So we can use both
prometheus.io
scheme andFlow Mode
scheme, like a regular expression formatprometheus.io/scrape|metrics,agent.grafana.com/scrape
(or any other way)??I am planning to move slowly to new k8s-monitoring-helm scheme as in
k8s.grafana.com/...
but without forcing engineering or without breaking anything. So this will help for such transitions and for such Helm charts which do not allow annotations overrideThe text was updated successfully, but these errors were encountered: