discourse / prometheus_exporter

A framework for collecting and aggregating prometheus metrics
MIT License
538 stars 155 forks source link

Handling invalid names and labels #292

Open PericlesTheo opened 1 year ago

PericlesTheo commented 1 year ago

👋 people,

Recently we run into a scenario where a metric name we created contained invalid characters, specifically it contained a hyphen such as "http_response_#{external_name}" where external_name is an input and in this case it was face-book let's say.

Is there a way to handle this within the gem?