Skip to content

Generalise Prometheus metrics. takes out server specific, replaces variables and such. makes it easier to copy from Prometheus console straight to Grafana.

Notifications You must be signed in to change notification settings

Naberator/generalisePrometheusMetrics

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 

Repository files navigation

generalisePrometheusMetrics

Generalise Prometheus metrics. removes instance specific attributes, replaces variables. makes it easier to copy from Prometheus console straight to Grafana.

For example: original metrics -

gauge{_label_0="hello", _label_1="joe", _label_2="biden", domain="america_com", env="production", envName="qa-joe-biden-1", instance="99.999.99.999:42069", kitVersion="joe-biden-1.0", namespace="presidents", pod="joe-biden-1",}

output -

gauge{_label_0="hello", _label_1="joe", _label_2="biden", domain="america_com", env="production", envName="~$envName", namespace="presidents", }

About

Generalise Prometheus metrics. takes out server specific, replaces variables and such. makes it easier to copy from Prometheus console straight to Grafana.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages