Closed zsalab closed 1 year ago
prometheus-exporter-exporter --version
Version: 0.4.0-0.4.0-1+b7 (from debian/sid, built by team+pkg-go@tracker.debian.org on 20210718-11:25:11)
prometheus --version
prometheus, version 2.33.5+ds1 (branch: debian/sid, revision: 2.33.5+ds1-2~bpo11+1)
build user: team+pkg-go@tracker.debian.org
build date: 20220820-12:29:59
go version: go1.18.5
platform: linux/amd64
Same is true with the latest version:
prometheus-exporter-exporter --version
Version: 0.5.0-0.5.0-1 (from debian/sid, built by team+pkg-go@tracker.debian.org on 20230511-06:49:43)
I guess the answer is here:
https://github.com/QubitProducts/exporter_exporter#blackbox-exporter
so there is no way to query multiple modules in one go
Not at present. To do this safely you'd need to add a label to all the metrics exported, since it will be very common for two modules to output the same metrics. There are quite a few cases where expexp can't actually parse the metrics (verify has to be disabled), and in this case, adding a label would not be possible. In normal usage you set prometheus to scrape expexp multiple times, with different module values. It is an interesting idea though, and not one I had considered. It may become necessary to drop the prometheus metrics parser anyway, and replace it with something else, but that is a big job, and not something I have time for at the moment.
I am not sure is that the proper way or I am doing something wrong but when I configured my prometheus (v2.33.5) as
I see on the target:
But only the node metric shown up in the Prometheus, so I executed the following on the node runs the prometheus
and looks like only the first module (eg. in this case the node) is included in the response
if i start switch the order, I get only the nginx data
Is this the expected behaviour? So Am I have to configure like the following?