prometheus_vcd_sd
prometheus-vcd-sd
Ansible role to install and configure a Prometheus vCloud service discovery.
Sponsor
Building and improving this Ansible role have been sponsored by my current and previous employers like Cloudpunks GmbH and Proact Deutschland GmbH.
Table of content
- Requirements
- Default Variables
- prometheus_scrape_configs
- prometheus_vcd_sd_config_path
- prometheus_vcd_sd_credentials
- prometheus_vcd_sd_credentials_file
- prometheus_vcd_sd_download
- prometheus_vcd_sd_group
- prometheus_vcd_sd_log_level
- prometheus_vcd_sd_log_pretty
- prometheus_vcd_sd_output_file
- prometheus_vcd_sd_output_refresh
- prometheus_vcd_sd_owner
- prometheus_vcd_sd_version
- prometheus_vcd_sd_web_address
- prometheus_vcd_sd_web_path
- Discovered Tags
- Dependencies
- License
- Author
Requirements
- Minimum Ansible version:
2.10
Default Variables
prometheus_scrape_configs
Example usage
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
prometheus_vcd_sd_config_path
Path to vCloud Director configuration file
prometheus_vcd_sd_credentials
List of credentials to access vCloud Director
Default value
prometheus_vcd_sd_credentials: []
prometheus_vcd_sd_credentials_file
Default value
prometheus_vcd_sd_credentials_file: /etc/prometheus-vcd-sd/credentials.json
prometheus_vcd_sd_download
URL to the archive of the release to install
Default value
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
prometheus_vcd_sd_group
Group of the configuration, should be the prometheus group
Default value
prometheus_vcd_sd_group: prometheus
prometheus_vcd_sd_log_level
Only log messages with given severity
Default value
prometheus_vcd_sd_log_level: info
prometheus_vcd_sd_log_pretty
Enable pretty messages for logging
Default value
prometheus_vcd_sd_log_pretty: true
prometheus_vcd_sd_output_file
Path to write the file_sd config
Default value
prometheus_vcd_sd_output_file: /etc/prometheus/vcd.json
prometheus_vcd_sd_output_refresh
Discovery refresh interval in seconds
Default value
prometheus_vcd_sd_output_refresh: 300
prometheus_vcd_sd_owner
Owner of the configuration, should be the prometheus user
Default value
prometheus_vcd_sd_owner: prometheus
prometheus_vcd_sd_version
Version of the release to install
Default value
prometheus_vcd_sd_version: 0.1.2
prometheus_vcd_sd_web_address
Address to bind the metrics server
Default value
prometheus_vcd_sd_web_address: 127.0.0.1:9000
prometheus_vcd_sd_web_path
Path to bind the metrics server
Default value
prometheus_vcd_sd_web_path: /metrics
Discovered Tags
molecule-idempotence-notest
prometheus-vcd-sd
Dependencies
- None
License
Apache-2.0
Author
Ansible role to install and configure a Prometheus vCloud service discovery
ansible-galaxy install rolehippie/prometheus-vcd-sd