I’ve been tweaking my Grafana Alloy config file but I cant get the systemd block to work or send metrics. The default part of the prometheus.exporter.unix components (such as cpu, memory, etc.) are sending metrics, but I cant get the systemd block to work.
This is the config im currently using. Can anyone help me with this?
Your configuration seems to be pretty straight forward. I am not currently using grafana alloy to monitor systemd, so I can’t say on top of my head if it works or not. What do you see from alloy UI? Do you see any error log?
I managed to get it to work! I was missing the “enable” section in the exporter configuration by adding the line:
enable_collectors = [“systemd”]