How do you monitor processes on Linux like nagios with Alloy and discovery.process

  • What Grafana version and what operating system are you using?
    12.0

  • What are you trying to achieve?
    Monitor all processes on Redhat like metrics and let user to choose what they want to set alert with.

  • How are you trying to achieve it?
    I set this in Alloy configuration, it is a local installed environment without any container.

discovery.process “all” { }
prometheus.scrape “scrape_processes” {
targets = discovery.process.all.targets
}
prometheus.remote_write “local_system” {
endpoint {
url = “"
headers = {
“X-Scope-OrgID” = "
****************”,
}
tls_config {
insecure_skip_verify = true
}
}
}

  • What happened?
    I got “no address” error for the “scrape_processes” in journalctl log file

  • What did you expect to happen?
    I expect to see processes show up in data source.

  • Can you copy/paste the configuration(s) that you are having problems with?
    As above.

  • Did you receive any errors in the Grafana UI or in related logs? If so, please tell us exactly what they were.
    I got “no address” error for the “scrape_processes” in journalctl log file

  • Did you follow any online instructions? If so, what is the URL?
    discovery.process | Grafana Alloy documentation