Bonjour,
Docker installation
Grafana v11.4.0 (b58701869e)
Alloy v1.5.1
Mimir 2.13.1
I’m trying to switch from prometheus exporter to Grafana Alloy.
But after switch I lost lots of metrics from all my exporters. I’ll try to explain.
Before, I had prometheus who scrapes metrics from Traefik, Node-Exporter etc. And in Grafana I see all my datas.
Step by step, I switch to grafana alloy, and rewrites rules. Like this:
prometheus.scrape "node_exporter" {
targets = [{
__address__ = "node-exporter:9100",
job = "node_exporter",
}]
forward_to = [prometheus.remote_write.mimir.receiver]
}
prometheus.scrape "traefik" {
targets = [{
__address__ = "traefik:8082",
job = "traefik",
}]
forward_to = [prometheus.remote_write.mimir.receiver]
}
prometheus.scrape "incus" {
scheme = "https"
metrics_path = "/1.0/metrics"
targets = [{
__address__ = "172.17.0.1:8444",
job = "incus",
}]
tls_config {
insecure_skip_verify = true
}
forward_to = [prometheus.remote_write.mimir.receiver]
}
prometheus.remote_write "mimir" {
endpoint {
url = "http://mimir:9009/api/v1/push"
}
}
In Alloy UI, Traefik as example:
It’s Healthy
But… As you can see on this screenshot of Grafana, most of datas stop to display (after 11h15 am) after switch from Prometheus to Alloy, but not all datas… Top slow services
continues to work.
It’s weird, I don’t understand. What did I forget?
Thanks