EOX GitLab Instance

Skip to content
Snippets Groups Projects
Commit f57155cc authored by Karl Grube's avatar Karl Grube
Browse files

updated prometheus (lxc supprt)

parent d9c8239d
Branches
No related tags found
No related merge requests found
......@@ -29,3 +29,9 @@
src: ../sites-available/prometheus
notify: reload nginx
tags: nginx
- name: lxc.yml
copy:
force: no
dest: /etc/prometheus/lxc.yml
content: '- targets:'
......@@ -27,11 +27,6 @@ alerting:
# Prometheus as a client.
cert_file: '/etc/ssl/prometheus_client/{{fqdn}}.crt'
key_file: '/etc/ssl/prometheus_client/{{fqdn}}.key'
#alerting:
# alertmanagers:
# - static_configs:
# - targets: ['localhost:9093']
# Load rules once and periodically evaluate them according to the global 'evaluation_interval'.
rule_files:
# - "first_rules.yml"
......@@ -39,6 +34,17 @@ rule_files:
scrape_configs:
- job_name: lxc
scrape_interval: 5s
scrape_timeout: 5s
scheme: https
tls_config:
ca_file: '/etc/ssl/prometheus_client/root.ca.crt'
cert_file: '/etc/ssl/prometheus_client/{{fqdn}}.crt'
key_file: '/etc/ssl/prometheus_client/{{fqdn}}.key'
file_sd_configs:
- files:
- 'lxc.yml'
{% if groups['lxc_host'] is defined %}
- job_name: lxc_host
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment