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.
84 lines
2.4 KiB
84 lines
2.4 KiB
global:
|
|
scrape_interval: 30s
|
|
evaluation_interval: 30s
|
|
|
|
scrape_configs:
|
|
- job_name: "node"
|
|
static_configs:
|
|
- targets: ['{{ pillar['site_hostname'] }}:9100']
|
|
|
|
- job_name: "redis"
|
|
static_configs:
|
|
- targets: ['{{ pillar['site_hostname'] }}:9121']
|
|
|
|
- job_name: "postgres"
|
|
static_configs:
|
|
- targets: ['{{ pillar['site_hostname'] }}:9187']
|
|
|
|
- job_name: "tildes"
|
|
scheme: https
|
|
static_configs:
|
|
- targets: ['{{ pillar['site_hostname'] }}:443']
|
|
{% if grains['id'] == 'dev' %}
|
|
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://{{ pillar['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://{{ pillar['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)
|
|
- job_name: "consumer_comment_user_mentions_generator"
|
|
static_configs:
|
|
- targets: ['{{ pillar['site_hostname'] }}:25010']
|
|
|
|
- job_name: "consumer_topic_interesting_activity_updater"
|
|
static_configs:
|
|
- targets: ['{{ pillar['site_hostname'] }}:25013']
|
|
|
|
- job_name: "consumer_topic_metadata_generator"
|
|
static_configs:
|
|
- targets: ['{{ pillar['site_hostname'] }}:25014']
|
|
|
|
{% if grains["id"] != "dev" %}
|
|
- job_name: "consumer_site_icon_downloader"
|
|
static_configs:
|
|
- targets: ['{{ pillar['site_hostname'] }}:25011']
|
|
|
|
- job_name: "consumer_topic_embedly_extractor"
|
|
static_configs:
|
|
- targets: ['{{ pillar['site_hostname'] }}:25012']
|
|
|
|
- job_name: "consumer_topic_youtube_scraper"
|
|
static_configs:
|
|
- targets: ['{{ pillar['site_hostname'] }}:25015']
|
|
{% endif %}
|