EOX GitLab Instance

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

lxc_host + bare metal configuration changes

parent 4b1ee8f3
Branches
No related tags found
No related merge requests found
......@@ -29,11 +29,15 @@
notify: reload nginx
tags: nginx
- name: lxc.yml
- name: monitoring target yml files
copy:
force: no
dest: /etc/prometheus/lxc.yml
dest: '/etc/prometheus/{{item}}.yml'
content: '- targets:'
with_items:
- 'lxc'
- 'bare_metal'
tags: target_yml
- name: prometheus started and enabled
service:
......
......@@ -42,19 +42,17 @@ scrape_configs:
file_sd_configs:
- files:
- 'lxc.yml'
{% if groups['lxc_host'] is defined %}
- job_name: lxc_host
- job_name: bare_metal
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'
static_configs:
- targets:
{% for host in groups['lxc_host'] %}
- '{{host}}:9100'
{% endfor %}
file_sd_configs:
- files:
- 'bare_metal.yml'
{% if groups['lxc_host'] is defined %}
- job_name: lxc_host_cadvisor
metrics_path: /cadvisor-metrics
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment