Re: [prometheus-users] Re: Need urgent help!!! Want to modify tags "keys" to lowercase scraping from Cloudwatch-Exporter in Prometheus before sending to Mimir #13912

2024-06-26 Thread Vaibhav Ingulkar
Hello Guys, Does anyone has any idea/solution over this? Your help will be appreciated! On Thursday, April 18, 2024 at 10:06:12 PM UTC+5:30 Vaibhav Ingulkar wrote: > Ok > Thanks @ Brian Candler for your valuable time on this. > > Do you have any idea or way to achieve this in* relabel_configs* o

Re: [prometheus-users] Re: Need urgent help!!! Want to modify tags "keys" to lowercase scraping from Cloudwatch-Exporter in Prometheus before sending to Mimir #13912

2024-04-18 Thread Vaibhav Ingulkar
Ok Thanks @ Brian Candler for your valuable time on this. Do you have any idea or way to achieve this in* relabel_configs* or *metric_relabel_configs* On Thursday, April 18, 2024 at 9:05:25 PM UTC+5:30 Brian Candler wrote: > No. That test case demonstrates that it is the label *values* that are

Re: [prometheus-users] Re: Need urgent help!!! Want to modify tags "keys" to lowercase scraping from Cloudwatch-Exporter in Prometheus before sending to Mimir #13912

2024-04-18 Thread 'Brian Candler' via Prometheus Users
No. That test case demonstrates that it is the label *values* that are downcased, not the label names, exactly as you said. On Thursday 18 April 2024 at 13:07:51 UTC+1 Vaibhav Ingulkar wrote: > Thanks @Brian Candler > > Actually not possible fixing the data at source due to multiple > variation

Re: [prometheus-users] Re: Need urgent help!!! Want to modify tags "keys" to lowercase scraping from Cloudwatch-Exporter in Prometheus before sending to Mimir #13912

2024-04-18 Thread Vaibhav Ingulkar
Thanks @Brian Candler Actually not possible fixing the data at source due to multiple variations in diff aws services and huge data modification. So looking to make it dynamically by capturing labels starting with "*tag_*". As mentioned here https://github.com/prometheus/prometheus/blob/v2.45.

Re: [prometheus-users] Re: Need urgent help!!! Want to modify tags "keys" to lowercase scraping from Cloudwatch-Exporter in Prometheus before sending to Mimir #13912

2024-04-18 Thread 'Brian Candler' via Prometheus Users
You mean you're seeing tag_owner, tag_Owner, tag_OWNER from different instances? Because the tags weren't entered consistently? I don't see a lowercasing version of the "labelmap" action. So I think you're back to either: 1. fixing the data at source (e.g. using the EC2 API to read the tags and

Re: [prometheus-users] Re: Need urgent help!!! Want to modify tags "keys" to lowercase scraping from Cloudwatch-Exporter in Prometheus before sending to Mimir #13912

2024-04-18 Thread Vaibhav Ingulkar
Additionally , I have prepare below config under metric_relable_configs - action: labelmap regex: 'tag_(.*)' replacement: $1 It is giving one me new set of all label starting with word '*tag_*' as added in regex but not converting them to lowercase and removing "*tag_*" from label name, for

Re: [prometheus-users] Re: Need urgent help!!! Want to modify tags "keys" to lowercase scraping from Cloudwatch-Exporter in Prometheus before sending to Mimir #13912

2024-04-18 Thread Vaibhav Ingulkar
Thanks @Brian Kochie Correct me if I am wrong but I think lower/upper action in relabeling works to make "*values*" of labels to lower/upper and not "*keys*" *i.e. label name itself wont get convert to lowercase*. Right? Because I an using *v2.41.0 *and have tried it and it is converting all

Re: [prometheus-users] Re: Need urgent help!!! Want to modify tags "keys" to lowercase scraping from Cloudwatch-Exporter in Prometheus before sending to Mimir #13912

2024-04-18 Thread 'Brian Candler' via Prometheus Users
On Thursday 18 April 2024 at 09:42:41 UTC+1 Ben Kochie wrote: Prometheus can lower/upper in relabeling. Thanks! That was added in v2.36.0 , and I missed it. -- You received this message because you are subscribed to the Google Groups

Re: [prometheus-users] Re: Need urgent help!!! Want to modify tags "keys" to lowercase scraping from Cloudwatch-Exporter in Prometheus before sending to Mimir #13912

2024-04-18 Thread Ben Kochie
Prometheus can lower/upper in relabeling. https://prometheus.io/docs/prometheus/latest/configuration/configuration/#relabel_config On Thu, Apr 18, 2024 at 10:28 AM 'Brian Candler' via Prometheus Users < prometheus-users@googlegroups.com> wrote: > > Need urgent help!!! > > See https://www.catb.or

[prometheus-users] Re: Need urgent help!!! Want to modify tags "keys" to lowercase scraping from Cloudwatch-Exporter in Prometheus before sending to Mimir #13912

2024-04-18 Thread 'Brian Candler' via Prometheus Users
> Need urgent help!!! See https://www.catb.org/~esr/faqs/smart-questions.html#urgent > we can add *only one pattern (Uppercase or lowercase)* in template code. At worst you can match like this: tag_Name=~"[fF][oO][oO][bB][aA][rR]" I don't know of any way internally to prometheus to lowercase la