Use one endpoint /metrics to expose all metrics (without /pve) for PushProx tool.
witold-gren opened this issue · 1 comments
Hey,
I implemented prometheus-pve-exporter
in my proxmox
server. But my entire monitoring is run in external cloud configuration. To provide one endpoint to scrape all metrics from all services run in proxmox
in decided to use PushProx
. The all configuration works quite well.. but I realised that when I use this https://github.com/prometheus-community/PushProx then I can not scrape metrics from endpoint /pve, only endpoint /metrics ara available.
Is it possible to expose all metrics on one /metrics
endpoint? Maybe create extra flags to change this behavior without breaking the current configuration?
Thanks for the suggestion and sorry for the late response. Many exporters provide a --web.telemetry-path
flag which can be used to modify the /metrics
endpoint. E.g. node_exporter.go. That wouldn't be too hard to implement.
However, also note that from an operational point of view pve_exporter
is much closer related to snmp_exporter. And that exposes separate paths as well: metrics_path for metrics endpoint for SNMP exporter itself and prober_path (Endpoint to do SNMP scrapes). Interestingly there is no flag to customize the latter. Hence, it might be worth to investigate how PushProx is supposed to proxy requests to snmp exporter (since people might be more familiar with that one).
Linking related issue over in prometheus-community/PushProx#159