mirror of https://gitlab.com/tildes/tildes.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
64 lines
1.8 KiB
64 lines
1.8 KiB
global:
|
|
scrape_interval: 30s
|
|
evaluation_interval: 30s
|
|
|
|
scrape_configs:
|
|
- job_name: "node"
|
|
static_configs:
|
|
- targets: ['{{ site_hostname }}:9100']
|
|
|
|
- job_name: "redis"
|
|
static_configs:
|
|
- targets: ['{{ site_hostname }}:9121']
|
|
|
|
- job_name: "postgres"
|
|
static_configs:
|
|
- targets: ['{{ site_hostname }}:9187']
|
|
|
|
- job_name: "tildes"
|
|
scheme: https
|
|
static_configs:
|
|
- targets: ['{{ site_hostname }}:443']
|
|
{% if site_hostname == "localhost" -%}
|
|
tls_config:
|
|
insecure_skip_verify: true
|
|
{% endif %}
|
|
|
|
# use blackbox exporter to check site is responding on IPv4
|
|
- job_name: "site_ipv4"
|
|
metrics_path: /probe
|
|
params:
|
|
module: [site_ipv4]
|
|
static_configs:
|
|
- targets:
|
|
- https://{{ site_hostname }}
|
|
relabel_configs:
|
|
- source_labels: [__address__]
|
|
target_label: __param_target
|
|
- source_labels: [__param_target]
|
|
target_label: instance
|
|
- target_label: __address__
|
|
replacement: 127.0.0.1:9115 # The blackbox exporter's real hostname:port
|
|
|
|
# use blackbox exporter to check site is responding on IPv6
|
|
- job_name: "site_ipv6"
|
|
metrics_path: /probe
|
|
params:
|
|
module: [site_ipv6]
|
|
static_configs:
|
|
- targets:
|
|
- https://{{ site_hostname }}
|
|
relabel_configs:
|
|
- source_labels: [__address__]
|
|
target_label: __param_target
|
|
- source_labels: [__param_target]
|
|
target_label: instance
|
|
- target_label: __address__
|
|
replacement: 127.0.0.1:9115 # The blackbox exporter's real hostname:port
|
|
|
|
# event stream consumers (background jobs)
|
|
{% for name, port in prometheus_consumer_scrape_targets.items() -%}
|
|
- job_name: "consumer_{{ name }}"
|
|
static_configs:
|
|
- targets: ['{{ site_hostname }}:{{ port }}']
|
|
{% endfor %}
|