prometheus: First version of role

This commit is contained in:
Timo Makinen 2023-08-19 17:29:00 +00:00
parent 051acc86cc
commit 9b1aa236c5
6 changed files with 172 additions and 0 deletions

View file

@ -0,0 +1,10 @@
[
{
"labels": {
"instance": "{{ item }}"
},
"targets": [
"{{ item }}"
]
}
]

View file

@ -0,0 +1,16 @@
---
global:
scrape_interval: 1m
scrape_timeout: 10s
evaluation_interval: 1m
scrape_configs:
- job_name: node
scheme: https
tls_config:
ca_file: "{{ tls_certs }}/ca.crt"
key_file: "{{ tls_private }}/{{ inventory_hostname }}.key"
cert_file: "{{ tls_certs }}/{{ inventory_hostname }}.crt"
file_sd_configs:
- files:
- /srv/prometheus/node.d/*.json