Ansible role to install and configure a Prometheus vCloud service discovery
Ansible role to install and configure a Prometheus vCloud service discovery.
Building and improving this Ansible role have been sponsored by my current and previous employers like Cloudpunks GmbH and Proact Deutschland GmbH.
2.10
prometheus_vcd_sd_credentials:
- project: example
url: https://vcd.example.com/api
insecure: False
username: username
password: password
org: DE-XX1
vdc: DE-XX1-NUE-A1
- project: foobar
url: https://vcd.foobar.com/api
insecure: True
username: username
password: password
org: DE-YY1
vdc: DE-YY1-NUE-A1
Path to vCloud Director configuration file
List of credentials to access vCloud Director
prometheus_vcd_sd_credentials: []
prometheus_vcd_sd_credentials_file: /etc/prometheus-vcd-sd/credentials.json
URL to the archive of the release to install
prometheus_vcd_sd_download: https://github.com/promhippie/prometheus-vcd-sd/releases/download/v{{
prometheus_vcd_sd_version }}/prometheus-vcd-sd-{{ prometheus_vcd_sd_version }}-linux-amd64
Group of the configuration, should be the prometheus group
prometheus_vcd_sd_group: prometheus
Only log messages with given severity
prometheus_vcd_sd_log_level: info
Enable pretty messages for logging
prometheus_vcd_sd_log_pretty: true
Path to write the file_sd config
prometheus_vcd_sd_output_file: /etc/prometheus/vcd.json
Discovery refresh interval in seconds
prometheus_vcd_sd_output_refresh: 300
Owner of the configuration, should be the prometheus user
prometheus_vcd_sd_owner: prometheus
Version of the release to install
prometheus_vcd_sd_version: 0.1.2
Address to bind the metrics server
prometheus_vcd_sd_web_address: 127.0.0.1:9000
Path to bind the metrics server
prometheus_vcd_sd_web_path: /metrics
molecule-idempotence-notest
prometheus-vcd-sd
Apache-2.0