Hi,
I have a query with promql. I have prom sd configuration to scrape metrics from my kube cluster. I want to know if it is possible to cut string and apply it as label name.
My project has test01, test02 and preprod environments but namespaces will be test01-internal, test02-internal, prodref-internal and prodref-external .Because of prometheus sd config the env is coming as test01-internal where i want only test01. Is it possible to extract only this string and using replace i can send this as env label.
Thanks
Eswar