Need urgent help!!! Want to modify tags "keys" to lowercase scraping from Cloudwatch-Exporter in Prometheus before sending to Mimir #13912
Replies: 5 comments
-
Hi Your help will be appreciated! |
Beta Was this translation helpful? Give feedback.
-
Hi Folks, Can anyone please help on achieveing this as it is priorly required for my setup? |
Beta Was this translation helpful? Give feedback.
-
Also tried with below config with reference to official doc https://prometheus.io/docs/prometheus/latest/configuration/configuration/#relabel_config - but no any result on it
Chart not supporting config support replacement: "tag_${1|lowercase}" |
Beta Was this translation helpful? Give feedback.
-
Hi Team, Any update? |
Beta Was this translation helpful? Give feedback.
-
Hi Team, Can anyone please help on this? |
Beta Was this translation helpful? Give feedback.
-
We are using Cloudwatch-exporter to scrape cloudwatch metrics and adding exporter job in Prometheus to scrape those metrics from exporter and then forwarding those metrics from prometheus to mimir to enable alerting on metrics.
There is no consistency in keys of tags at aws side, due to which we are facing issue of getting blank values of tags in alert email as many of them are not matching keys in alert template code as we can add only one pattern (Uppercase or lowercase) in template code.
So we are trying to standardise the incoming tags from all aws services to one fix pattern as lowercase and then forward them to mimir so this issue will be overcome and will able to print all tags in alert email.
Please suggest how we can achieve this with prometheus job scrapinng config that we have added as below -
kubernetes_sd_configs:
scrape_interval: 1m
metrics_path: /metrics
relabel_configs:
- target_label: address
replacement: XXX-prom-cloudwatch-exp-XXX.XXX.svc.cluster.local:9106
tags we are getting through below metrics -
aws_resource_info{job="aws_ec2",instance="",tag_Name="XXX",tag_Owner="XXX",tag_businessunit="XXX",tag_environment="dev"} 1.0
So, here we want to modify tag_Name to tag_name, tag_Owner to tag_owner
Please suggest.
Beta Was this translation helpful? Give feedback.
All reactions