container: add switch for hcloud

This commit is contained in:
uumas
2023-12-21 01:30:00 +02:00
parent 681b788ac4
commit 5bf47c73a7
3 changed files with 11 additions and 5 deletions

View File

@@ -26,11 +26,11 @@ scrape_configs:
static_configs:
- targets: ["localhost:9090"]
{% if prometheus_hcloud_token is defined %}
{% if prometheus_hcloud_enabled %}
- job_name: hcloud
hetzner_sd_configs:
- role: hcloud
authorization:
credentials: {{ prometheus_hcloud_token }}
relabel_configs: {{ prometheus_hcloud_relabel_configs }}
{% endif %}
{%- endif %}