Hi, I’m using Grafana Cloud and I have setup Alloy agent successfully, but I also need host CPU, memory and network metrics. I tried to search online for a guide, but couldn’t find anything clear.
- I have the Alloy metrics and logs coming in to Grafana, but I still need the host metrics
- Do I still need to run the linux node_exporter, or Alloy is responsible for that now?
in case anyone needs a reference:
remotecfg {
url = ""
id = ""
poll_frequency = "60s"
basic_auth {
username = ""
password = ""
}
}
prometheus.remote_write "metrics_service" {
endpoint {
url = ""
basic_auth {
username = ""
password = ""
}
}
}
loki.write "grafana_cloud_loki" {
endpoint {
url = ""
basic_auth {
username = ""
password = ""
}
}
}
prometheus.remote_write "metrics_hosted_prometheus" {
endpoint {
name = "hosted-prometheus"
url = ""
basic_auth {
username = ""
password = ""
}
}
}
// Prometheus Unix exporter - exposes node_exporter metrics internally
prometheus.exporter.unix "local_node" { }
// Prometheus scrape config - scrapes the unix exporter metrics from Alloy
prometheus.scrape "local_node_metrics" {
targets = prometheus.exporter.unix.local_node.targets
forward_to = [prometheus.remote_write.metrics_service.receiver]
}