Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- modules:
- http_2xx:
- http:
- preferred_ip_protocol: "ip4"
- ip_protocol_fallback: false
- prober: http
- http_post_2xx:
- prober: http
- http:
- method: POST
- tcp_connect:
- prober: tcp
- pop3s_banner:
- prober: tcp
- tcp:
- query_response:
- - expect: "^+OK"
- tls: true
- tls_config:
- insecure_skip_verify: false
- ssh_banner:
- prober: tcp
- tcp:
- query_response:
- - expect: "^SSH-2.0-"
- irc_banner:
- prober: tcp
- tcp:
- query_response:
- - send: "NICK prober"
- - send: "USER prober prober prober :prober"
- - expect: "PING :([^ ]+)"
- send: "PONG ${1}"
- - expect: "^:[^ ]+ 001"
- icmp:
- prober: icmp
- ubuntu@ip-172-31-42-240:~/production/zcash_service_status_dashboad$ ls
- README.md __pycache__ blackbox.yaml exchanges_config.py exchanges_health_check.py prometheus.yaml self_health_check
- ubuntu@ip-172-31-42-240:~/production/zcash_service_status_dashboad$ cat prometheus.yaml
- # Sample config for Prometheus.
- global:
- scrape_interval: 15s # By default, scrape targets every 15 seconds.
- evaluation_interval: 15s # By default, scrape targets every 15 seconds.
- # scrape_timeout is set to the global default (10s).
- # Attach these labels to any time series or alerts when communicating with
- # external systems (federation, remote storage, Alertmanager).
- external_labels:
- monitor: 'example'
- # Load and evaluate rules in this file every 'evaluation_interval' seconds.
- rule_files:
- # - "first.rules"
- # - "second.rules"
- # A scrape configuration containing exactly one endpoint to scrape:
- # Here it's Prometheus itself.
- scrape_configs:
- # The job name is added as a label `job=<job_name>` to any timeseries scraped from this config.
- - job_name: 'prometheus'
- # Override the global default and scrape targets from this job every 5 seconds.
- scrape_interval: 5s
- scrape_timeout: 5s
- # metrics_path defaults to '/metrics'
- # scheme defaults to 'http'.
- static_configs:
- - targets: ['localhost:9090']
- - job_name: 'exchanges'
- # Override the global default and scrape targets from this job every 5 seconds.
- scrape_interval: 5s
- scrape_timeout: 5s
- # metrics_path defaults to '/metrics'
- # scheme defaults to 'http'.
- static_configs:
- - targets: ['localhost:8093']
- - job_name: node
- # If prometheus-node-exporter is installed, grab stats about the local
- # machine by default.
- static_configs:
- - targets: ['localhost:9100']
- - job_name: blackbox
- metrics_path: /probe
- params:
- module: [http_2xx]
- static_configs:
- - targets:
- - https://chat.zcashcommunity.com/home
- - https://forum.zcashcommunity.com/
- - https://www.zcashcommunity.com/
- - https://z.cash/
- - https://www.zfnd.org/
- 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.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement