You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It would be nice to have this information also available as live data in our Grafana monitoring.
Therefore, this data should also be exposed via a Prometheus exporter.
enable: true or false - enable or disable Prometheus exporter
addr: Address of the Prometheus exporter. In most cases, this should be either 0.0.0.0, localhost, or the IP of the machine where this is running on
port: Port of the Prometheus exporter
metrics: A list of metrics to expose.
ResourceUsage: corresponding to resource in the bash command above
Priority: priority of the group
The metrics should be export per group that is configured.
Internals
Right now the priority plugin is designed to be executed in e.g. a cronjob. Because we want a Prometheus exporter running the whole time, we need to change the plugin so that it can be run as a service. Therefore, we need to provide a way to periodically call the existing functionality of the priority plugin.
Add something like a frequency to the config, that specifies when to update the resource usage and priority.
frequency: 3600
After each update, store the resource usage and priority somewhere so that it can be used for the Prometheus exporter.
Other
Up to now the Auditor host and port are set like this in the config:
addr: "10.18.0.12"port: 8001
To avoid confusion with the host address and port settings for the Prometheus exporter, it might be better to group them into a separate section, i.e.
auditor:
addr: "10.18.0.12"port: 8001
The text was updated successfully, but these errors were encountered:
We currently export the amount of resource usage and updated priority via a simple command to a text file:
It would be nice to have this information also available as live data in our Grafana monitoring.
Therefore, this data should also be exposed via a Prometheus exporter.
Config
I envision a config like this
enable
:true
orfalse
- enable or disable Prometheus exporteraddr
: Address of the Prometheus exporter. In most cases, this should be either 0.0.0.0, localhost, or the IP of the machine where this is running onport
: Port of the Prometheus exportermetrics
: A list of metrics to expose.ResourceUsage
: corresponding toresource
in the bash command abovePriority
: priority of the groupThe metrics should be export per group that is configured.
Internals
Right now the priority plugin is designed to be executed in e.g. a cronjob. Because we want a Prometheus exporter running the whole time, we need to change the plugin so that it can be run as a service. Therefore, we need to provide a way to periodically call the existing functionality of the priority plugin.
Add something like a frequency to the config, that specifies when to update the resource usage and priority.
After each update, store the resource usage and priority somewhere so that it can be used for the Prometheus exporter.
Other
Up to now the Auditor host and port are set like this in the config:
To avoid confusion with the host address and port settings for the Prometheus exporter, it might be better to group them into a separate section, i.e.
The text was updated successfully, but these errors were encountered: