Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to add help and type fields in metrics #48

Closed
Saidalavi opened this issue Aug 7, 2018 · 2 comments
Closed

How to add help and type fields in metrics #48

Saidalavi opened this issue Aug 7, 2018 · 2 comments

Comments

@Saidalavi
Copy link

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
Copy link
Contributor

haxorof commented Aug 29, 2020

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
Copy link

pschou commented Nov 8, 2020

I've added this feature in pull request #66

haxorof added a commit that referenced this issue Dec 28, 2021
haxorof added a commit that referenced this issue Dec 28, 2021
@haxorof haxorof closed this as completed in e3db0f7 Jan 1, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants