fixed labels and made ipv4 the default
This commit is contained in:
parent
f772558e31
commit
3e2b2dd451
2 changed files with 11 additions and 1 deletions
|
|
@ -209,18 +209,25 @@ prometheus_agent:
|
|||
http_2xx:
|
||||
prober: http
|
||||
http:
|
||||
preferred_ip_protocol: ip4
|
||||
http_post_2xx:
|
||||
prober: http
|
||||
http:
|
||||
method: POST
|
||||
preferred_ip_protocol: ip4
|
||||
tcp_connect:
|
||||
prober: tcp
|
||||
tcp:
|
||||
preferred_ip_protocol: ip4
|
||||
ssh_banner:
|
||||
prober: tcp
|
||||
tcp:
|
||||
preferred_ip_protocol: ip4
|
||||
query_response:
|
||||
- expect: "^SSH-2.0-"
|
||||
icmp:
|
||||
icmp:
|
||||
preferred_ip_protocol: ip4
|
||||
prober: icmp
|
||||
jobs: {}
|
||||
scrape_timeout: ~
|
||||
|
|
|
|||
|
|
@ -23,6 +23,7 @@
|
|||
{% set job=prometheus_agent.agents.blackbox.jobs[j] %}
|
||||
- job_name: "prometheus-agent - blackbox - {{ j }} : {{ inventory_hostname }}"
|
||||
scheme: https
|
||||
metrics_path: /probe
|
||||
{% for i in ['scrape_timeout', 'scrape_interval'] if (prometheus_agent|combine(job))[i] %}
|
||||
{{ i }}: {{ (prometheus_agent|combine(job))[i] }}
|
||||
{% endfor %}
|
||||
|
|
@ -42,9 +43,11 @@
|
|||
- source_labels: [__address__]
|
||||
target_label: __param_target
|
||||
- source_labels: [__param_target]
|
||||
target_label: instance
|
||||
target_label: target
|
||||
- replacement: 'blackbox'
|
||||
target_label: job
|
||||
- replacement: '{{ inventory_hostname }}'
|
||||
target_label: instance
|
||||
- replacement: '{{ job.module }}'
|
||||
target_label: module
|
||||
- target_label: __address__
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue