[GH-ISSUE #6] Support multiple endpoints #1

Closed
opened 2026-03-03 16:27:31 +03:00 by kerem · 0 comments
Owner

Originally created by @janfuhrer on GitHub (Aug 23, 2023).
Original GitHub issue: https://github.com/natrontech/pbs-exporter/issues/6

Originally assigned to: @janfuhrer on GitHub.

Support multiple endpoints with one exporter like the prometheus-pve-exporter.

- job_name: 'pbs-exporter'
  static_configs:
    - targets:
      - <target-ip-1>
      - <target-ip-2>
  metrics_path: /metrics
  params:
    module: [default]
  relabel_configs:
    - source_labels: [__address__]
      target_label: __param_target
    - source_labels: [__param_target]
      target_label: instance
    - target_label: __address__
      replacement: pbs-exporter:9101
Originally created by @janfuhrer on GitHub (Aug 23, 2023). Original GitHub issue: https://github.com/natrontech/pbs-exporter/issues/6 Originally assigned to: @janfuhrer on GitHub. Support multiple endpoints with one exporter like the [prometheus-pve-exporter](https://github.com/prometheus-pve/prometheus-pve-exporter#prometheus-configuration). ```yaml - job_name: 'pbs-exporter' static_configs: - targets: - <target-ip-1> - <target-ip-2> metrics_path: /metrics params: module: [default] relabel_configs: - source_labels: [__address__] target_label: __param_target - source_labels: [__param_target] target_label: instance - target_label: __address__ replacement: pbs-exporter:9101 ```
kerem 2026-03-03 16:27:31 +03:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/pbs-exporter#1
No description provided.