prometheus / prometheus/node_exporter
node_systemd_unit_state : show service description
Nobody has claimed this yet.
- Dominant language
- Go
- Stars
- 13.8k
- Forks
- 2.7k
- Avg merge
- 1d 23h
- Merged PRs (30d)
- 8
Description
Hi,
In the node_exporter service could you please also display the service description in node_systemd_unit_state ?
The thing is that we have a bunch of services that must have a special monitoring, and it would be extremely useful to be able to monitor within Prometheus a rule like : "Monitor specifically all the services for which description starts with FooBar" but this is currently not possible since the description is not displayed.
Setting the whitelist/blacklist is not an option in our case, and renaming all the services would not be an option as well.
Thanks a lot
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start from the node_systemd_unit_state metric in node_exporter and trace how systemd unit metadata is collected and exposed. Check how the metric labels are defined and verify that the service description becomes available for Prometheus rules matching descriptions beginning with FooBar.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- go, prometheus
- Domain
- observability-sre
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100