-
-
Notifications
You must be signed in to change notification settings - Fork 79
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
Added prometheus integration #350
Conversation
Added scheduler for compute current spool metrics and info
Good idea!
|
Just chiming in that i'd highly appreciate this, as i use Prom/Grafana heavily to monitor my printers - and being able to integrate the filament usage would be awesome! |
Rollback pyproject.toml
added env variable SPOOLMAN_METRICS_ENABLED for enabled database collector set metrics path as /metrics checked Null values at vendors, init weight and price removed some logs
Done
Run with SPOOLMAN_METRICS_ENABLED=TRUE env variable only
Set debug level
Done
Handles added, may be need moved to models, but i made it at metrics.py
PPS: Unfortunately i'm not true developer (python and other languages). Thanks for understanding. |
Great updates! All items resolved. Thanks for the contribution :) |
Added prometheus client
Added scheduler for compute current spool metrics and info
Default endpoint host:port/metrics/