discourse / prometheus_exporter

A framework for collecting and aggregating prometheus metrics
MIT License
525 stars 153 forks source link

Handling invalid names and labels #292

Open PericlesTheo opened 9 months ago

PericlesTheo commented 9 months 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?