Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Neutrinet
infra-ansible
Commits
a7ee0896
Commit
a7ee0896
authored
Aug 04, 2021
by
HgO
Browse files
grab certificate metrics from neutrinet.be
parent
ebed87fd
Pipeline
#375
passed with stage
in 1 minute and 27 seconds
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
inventories/host_vars/monitoring.htz.neutri.net.yml
View file @
a7ee0896
...
...
@@ -5,3 +5,6 @@ prometheus_federation_hosts:
prometheus_telegraf_hosts
:
-
"
{{
inventory_hostname
}}"
-
vpn.neutri.net
probe_http_certs
:
-
https://neutrinet.be
roles/probe/defaults/main.yml
View file @
a7ee0896
...
...
@@ -5,6 +5,8 @@ probe_http_urls:
-
name
:
https://prometheus.example.com
url
:
http://localhost:9090
probe_http_certs
:
[]
probe_ping_hosts
:
-
'
127.0.0.1'
-
'
::1'
roles/probe/templates/telegraf/probe.conf.j2
View file @
a7ee0896
...
...
@@ -36,3 +36,15 @@
{% endfor %}
]
method = "native"
{% if probe_http_certs | length > 0 %}
[[inputs.x509_cert]]
## List certificate sources
## Prefix your entry with 'file://' if you intend to use relative paths
sources = [
{% for url in probe_http_certs %}
"{{ url }}"{% if not loop.last %},{% endif %}
{% endfor %}
]
{% endif %}
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment