chop-dbhi / prometheus-sql

Service that exposes Prometheus metrics for a SQL result set.
BSD 2-Clause "Simplified" License
202 stars 55 forks source link

How to add help and type fields in metrics #48

Closed Saidalavi closed 2 years ago

Saidalavi commented 6 years ago

Hi, How can we provide our own help text and type in the metrics. Currently the type is coming as gauge and help coming as Result of an SQL query. We tried help and type, but its not reflecting. Can you please provide a solution.

Thanks..

haxorof commented 4 years ago

Hi, Today this is not possible with prometheus-sql. However, what could be implemented is to have a "description" per query which can be displayed as help under the metrics endpoint.

Cheers!

pschou commented 3 years ago

I've added this feature in pull request #66