-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #14 from natrontech/feat/6-support-multiple-endpoints
feat: add possibility for multiple targets with one exporter
- Loading branch information
Showing
6 changed files
with
100 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
# Use Case: multiple Proxmox Backup Server, they have different authentication user/token | ||
# configure multiple authentication for each exporter instance | ||
# important: set env PBS_ENDPOINT per exporter instance! | ||
# | ||
# Setup: | ||
# - first exporter instance: pbs-exporter-1 | ||
# - second exporter instance: pbs-exporter-2 | ||
|
||
- job_name: 'pbs-exporter' | ||
honor_timestamps: true | ||
scrape_interval: 15s | ||
scrape_timeout: 10s | ||
metrics_path: /metrics | ||
scheme: http | ||
static_configs: | ||
- targets: | ||
- 'pbs-exporter-1:9101' # PBS_ENDPOINT set to target 1 | ||
- 'pbs-exporter-2:9101' # PBS_ENDPOINT set to target 2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
# Use Case: multiple Proxmox Backup Server, all have the same authentication user/token | ||
# | ||
# important: env PBS_ENDPOINT NOT SET! | ||
# | ||
scrape_configs: | ||
- job_name: 'pbs-exporter' | ||
honor_timestamps: true | ||
scrape_interval: 15s | ||
scrape_timeout: 10s | ||
metrics_path: /metrics | ||
scheme: http | ||
static_configs: | ||
- targets: | ||
- 'https://10.10.10.10:8007' # Proxmox Backup Server 1 | ||
- 'https://10.10.10.11:8007' # Proxmox Backup Server 2 | ||
relabel_configs: | ||
- source_labels: [__address__] | ||
target_label: __param_target | ||
- source_labels: [__param_target] | ||
target_label: instance | ||
- target_label: __address__ | ||
replacement: pbs-exporter:9101 # pbs-exporter address |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters