项目作者: rolehippie

项目描述 :
Ansible role to install and configure a Prometheus vCloud service discovery
高级语言: HTML
项目地址: git://github.com/rolehippie/prometheus-vcd-sd.git
创建时间: 2021-03-03T12:03:04Z
项目社区:https://github.com/rolehippie/prometheus-vcd-sd

开源协议:Apache License 2.0

下载


prometheus-vcd-sd

Source Code
General Workflow
Readme Workflow
Galaxy Workflow
License: Apache-2.0
Ansible Role

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

  • Minimum Ansible version: 2.10

Default Variables

prometheus_scrape_configs

Example usage

  1. prometheus_vcd_sd_credentials:
  2. - project: example
  3. url: https://vcd.example.com/api
  4. insecure: False
  5. username: username
  6. password: password
  7. org: DE-XX1
  8. vdc: DE-XX1-NUE-A1
  9. - project: foobar
  10. url: https://vcd.foobar.com/api
  11. insecure: True
  12. username: username
  13. password: password
  14. org: DE-YY1
  15. 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

  1. prometheus_vcd_sd_credentials: []

prometheus_vcd_sd_credentials_file

Default value

  1. 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

  1. prometheus_vcd_sd_download: https://github.com/promhippie/prometheus-vcd-sd/releases/download/v{{
  2. 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

  1. prometheus_vcd_sd_group: prometheus

prometheus_vcd_sd_log_level

Only log messages with given severity

Default value

  1. prometheus_vcd_sd_log_level: info

prometheus_vcd_sd_log_pretty

Enable pretty messages for logging

Default value

  1. prometheus_vcd_sd_log_pretty: true

prometheus_vcd_sd_output_file

Path to write the file_sd config

Default value

  1. prometheus_vcd_sd_output_file: /etc/prometheus/vcd.json

prometheus_vcd_sd_output_refresh

Discovery refresh interval in seconds

Default value

  1. prometheus_vcd_sd_output_refresh: 300

prometheus_vcd_sd_owner

Owner of the configuration, should be the prometheus user

Default value

  1. prometheus_vcd_sd_owner: prometheus

prometheus_vcd_sd_version

Version of the release to install

Default value

  1. prometheus_vcd_sd_version: 0.1.2

prometheus_vcd_sd_web_address

Address to bind the metrics server

Default value

  1. prometheus_vcd_sd_web_address: 127.0.0.1:9000

prometheus_vcd_sd_web_path

Path to bind the metrics server

Default value

  1. prometheus_vcd_sd_web_path: /metrics

Discovered Tags

molecule-idempotence-notest

prometheus-vcd-sd

Dependencies

  • None

License

Apache-2.0

Author

Thomas Boerger