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

[Feature Request] Prometheus Endpoint #898

Open
19wolf opened this issue Dec 6, 2020 · 8 comments
Open

[Feature Request] Prometheus Endpoint #898

19wolf opened this issue Dec 6, 2020 · 8 comments

Comments

@19wolf
Copy link
Contributor

19wolf commented Dec 6, 2020

I’d love to have an endpoint for Prometheus to scrape data from, such as chunks health, server usage, and other metrics available in the cgi-server.

@konstantin-921
Copy link

I know that the main resources are focused on developing the basic functionality of the project. But it would really be great to have a Prometheus endpoint to collect metrics.

@antonborecki
Copy link

@19wolf @konstantin-921 do you use LizardFS commercially and your businesses have a need for such a feature? Just curious about this need, maybe we'll put that on the roadmap :)

@konstantin-921
Copy link

konstantin-921 commented Jul 12, 2021

Yes, we use LizardFS in commercial development. Right now there is a need to add monitoring for LizardFS. We use prometheus exporters or integrated endpoints to collect any metrics. It would be cool if you could add an endpoint for prometheus metrics :)

@19wolf
Copy link
Contributor Author

19wolf commented Jul 13, 2021

I do not use LizardFS commercially, and in fact no longer use it at home either (for now), but if I were to use it at work I would definitely need this

@konstantin-921
Copy link

konstantin-921 commented Jul 13, 2021

So far I have added "crutches". I'm running every minute requests via cron using lizardfs-admin. My cron job looks like this:

* * * * * sed -i 's/^chunks_availability .*/chunks_availability '$(/usr/bin/lizardfs-admin chunks-health <HOST> 9421 | awk 'NR==3{print $2}')'/g' /var/lib/node_exporter/textfile_collector/lizardfs.prom

Then I use Node Exporter Textfile Collector - https://github.com/prometheus/node_exporter#textfile-collector to handle this metrics. It's not the most convenient setup, but at least it works.

@antonborecki
Copy link

@konstantin-921 I've sent you an email about this. Please, check your inbox :)

@konstantin-921
Copy link

@konstantin-921 I've sent you an email about this. Please, check your inbox :)

For some reason I don't see any new emails from you. Even the spam folder is empty. My email is konstantin-921@yandex.ru.

@antonborecki
Copy link

@konstantin-921 I've pinged you :) The e-mail address is correct. I am sending it from anton.borecki@lizardfs.com.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants