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 <
[email protected]> wrote:

> > 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 labels. What
> you could do though is to write a HTTP proxy: you scrape the proxy from
> prometheus, the proxy scrapes the upstream source, and modifies the labels
> before returning the results to prometheus.
>
> Or: since you're using an external package anyway (cloudwatch_exporter),
> you could modify and recompile it yourself.
>
> IMO it would better if you fix the data at source, i.e. make your tags be
> consistent in AWS. Prometheus faithfully reproduces the data you give it.
> Garbage in, garbage out.
>
> --
> You received this message because you are subscribed to the Google Groups
> "Prometheus Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/prometheus-users/c6d8f693-8238-4929-9dbc-d96e64b57180n%40googlegroups.com
> <https://groups.google.com/d/msgid/prometheus-users/c6d8f693-8238-4929-9dbc-d96e64b57180n%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>

-- 
You received this message because you are subscribed to the Google Groups 
"Prometheus Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/prometheus-users/CABbyFmqzPmx0WuHUDksGCLEHBra0zQqJiv%2B-O_awYxrWNMb7%3DQ%40mail.gmail.com.

Reply via email to