lots of stuff
This commit is contained in:
@@ -0,0 +1,154 @@
|
||||
global:
|
||||
scrape_interval: 15s
|
||||
evaluation_interval: 15s
|
||||
external_labels:
|
||||
monitor: beepi
|
||||
|
||||
scrape_configs:
|
||||
- job_name: prometheus
|
||||
static_configs:
|
||||
- targets: ['localhost:9090']
|
||||
|
||||
- job_name: node
|
||||
static_configs:
|
||||
- targets: ['host.containers.internal:9100']
|
||||
labels:
|
||||
host: beepi
|
||||
- targets: ['{{ wireguard_ingress_ip }}:9100']
|
||||
labels:
|
||||
host: ingress
|
||||
- targets: ['192.168.178.51:9100']
|
||||
labels:
|
||||
host: beeserver
|
||||
|
||||
- job_name: podman
|
||||
static_configs:
|
||||
- targets: ['podman-exporter:9882']
|
||||
labels:
|
||||
host: beepi
|
||||
|
||||
- job_name: alloy
|
||||
static_configs:
|
||||
- targets: ['alloy:12345']
|
||||
labels:
|
||||
host: beepi
|
||||
- targets: ['{{ wireguard_ingress_ip }}:12345']
|
||||
labels:
|
||||
host: ingress
|
||||
|
||||
- job_name: loki
|
||||
static_configs:
|
||||
- targets: ['loki:3100']
|
||||
|
||||
- job_name: grafana
|
||||
static_configs:
|
||||
- targets: ['grafana:4000']
|
||||
|
||||
- job_name: blackbox
|
||||
static_configs:
|
||||
- targets: ['host.containers.internal:9115']
|
||||
|
||||
- job_name: probe-app
|
||||
metrics_path: /probe
|
||||
params:
|
||||
module: [http_2xx_any]
|
||||
static_configs:
|
||||
{% for service in monitored_services %}
|
||||
{% if service.probe is defined %}
|
||||
- targets: ['{{ service.probe }}']
|
||||
labels:
|
||||
service: {{ service.name }}
|
||||
group: {{ service.group }}
|
||||
vantage: local
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
relabel_configs:
|
||||
- source_labels: [__address__]
|
||||
target_label: __param_target
|
||||
- source_labels: [__param_target]
|
||||
target_label: instance
|
||||
- target_label: __address__
|
||||
replacement: host.containers.internal:9115
|
||||
|
||||
- job_name: probe-vhost
|
||||
metrics_path: /probe
|
||||
params:
|
||||
module: [https_vhost]
|
||||
static_configs:
|
||||
{% for service in monitored_services %}
|
||||
{% if service.vhost is defined %}
|
||||
- targets: ['https://{{ service.vhost }}']
|
||||
labels:
|
||||
service: {{ service.name }}
|
||||
group: {{ service.group }}
|
||||
vantage: nginx
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
relabel_configs:
|
||||
- source_labels: [__address__]
|
||||
target_label: __param_target
|
||||
- source_labels: [__param_target]
|
||||
target_label: instance
|
||||
- target_label: __address__
|
||||
replacement: host.containers.internal:9115
|
||||
|
||||
- job_name: probe-tcp
|
||||
metrics_path: /probe
|
||||
params:
|
||||
module: [tcp_connect]
|
||||
static_configs:
|
||||
{% for service in monitored_services %}
|
||||
{% for probe in service.tcp | default([]) %}
|
||||
- targets: ['{{ probe.target }}']
|
||||
labels:
|
||||
service: {{ service.name }}
|
||||
group: {{ service.group }}
|
||||
probe: {{ probe.name }}
|
||||
vantage: local
|
||||
{% endfor %}
|
||||
{% endfor %}
|
||||
relabel_configs:
|
||||
- source_labels: [__address__]
|
||||
target_label: __param_target
|
||||
- source_labels: [__param_target]
|
||||
target_label: instance
|
||||
- target_label: __address__
|
||||
replacement: host.containers.internal:9115
|
||||
|
||||
- job_name: probe-tunnel
|
||||
scrape_interval: 30s
|
||||
metrics_path: /probe
|
||||
params:
|
||||
module: [tcp_connect]
|
||||
static_configs:
|
||||
{% for probe in ingress_probe_targets %}
|
||||
- targets: ['{{ probe.target }}']
|
||||
labels:
|
||||
probe: {{ probe.name }}
|
||||
vantage: ingress
|
||||
{% endfor %}
|
||||
relabel_configs:
|
||||
- source_labels: [__address__]
|
||||
target_label: __param_target
|
||||
- source_labels: [__param_target]
|
||||
target_label: instance
|
||||
- target_label: __address__
|
||||
replacement: '{{ wireguard_ingress_ip }}:9115'
|
||||
|
||||
- job_name: probe-tunnel-icmp
|
||||
scrape_interval: 30s
|
||||
metrics_path: /probe
|
||||
params:
|
||||
module: [icmp]
|
||||
static_configs:
|
||||
- targets: ['{{ wireguard_beepi_ip }}']
|
||||
labels:
|
||||
probe: tunnel-rtt
|
||||
vantage: ingress
|
||||
relabel_configs:
|
||||
- source_labels: [__address__]
|
||||
target_label: __param_target
|
||||
- source_labels: [__param_target]
|
||||
target_label: instance
|
||||
- target_label: __address__
|
||||
replacement: '{{ wireguard_ingress_ip }}:9115'
|
||||
Reference in New Issue
Block a user