Hey Guys,
I am new to the topic Observability and wanted to ask if you can scrape from an Alloy instance.
To explain a bit i want to use Alloy on windows pc’s instead of for example windows_exporter.
Also on a linux server to observe Docker containers so instead of cAdvisor.
I want that data to go through an nginx (Set up as Docker container) into my Prometheus and Loki (also set up as container ).
It would be cool f i could use Prometheus or Loki to scrape from Alloy is that possible or can i only send data to Prometheus and Loki?
Kind regards
Kai
Welcome to forum @kaikehres
Might be good to read this docu
I did in fact read a lot of that documentation already and the left part of the Graphic here is pretty easy for me already but i dont’t really know if there is a way other than loki.write and prometheus.remote_write to get data into prometheus and loki. Because to me both of those are a push from alloy to loki/prometheus and i want to know if you can also pull from alloy to loki/prometheus
1 Like
You cannot pull logs from Alloy. You can pull metrics from Alloy, but I believe those metrics are “internal” (as in internal only to alloy itself), and not the metrics actually collected by alloy. There is a path to those, but I think it’s not officially supported.
TLDR, you’d use loki.write and prometheus.remote_write to send data from Alloy to destinations.
1 Like
none alloy logs from server foo
← alloy pull
- alloy push
→ loki
is this what you mean?
Yeah pretty much what you and tony said. I thought maybe there is a way but good to know that you can’t do that yet.