Prometheus metrics #54
-
Hi, any chance to get some backup metrics in Prometheus native format to file as an alternative to the status file? Maybe a template feature would be useful so status fields can be added to whatever file format is required. |
Beta Was this translation helpful? Give feedback.
Replies: 5 comments 9 replies
-
Yes that's something I could look into. To be honest I'm not familiar with prometheus, hence why it's not already done 😄 I quite like the idea of template as well actually 🤔 |
Beta Was this translation helpful? Give feedback.
-
Come to think of it, I'm not sure if it's a good idea to implement a templating system at that point:
|
Beta Was this translation helpful? Give feedback.
-
So I was reading a bit about prometheus and I'm not sure what is the best approach here, maybe you can help me:
As a prometheus user, do you think both approaches are valid? |
Beta Was this translation helpful? Give feedback.
-
For a first version, I'm saving the metrics to a file (to send manually) and/or push to a URL. It adds two configuration parameters per profile: profile:
inherit: default
prometheus-save-to-file: "test.prom"
prometheus-push: "http://push-gateway:9091"
backup:
extended-status: true
source: / Here's a sample file:
Before going further, I wanted to know if the file looks like what you'd expect 👍🏻 |
Beta Was this translation helpful? Give feedback.
-
Support for generating a file + send via push gateway: #57 |
Beta Was this translation helpful? Give feedback.
Support for generating a file + send via push gateway: #57