Advertisement
avisrivastava254084

Untitled

Oct 10th, 2019
128
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
YAML 3.13 KB | None | 0 0
  1. modules:
  2.   http_2xx:
  3.     http:
  4.       preferred_ip_protocol: "ip4"
  5.       ip_protocol_fallback: false
  6.     prober: http
  7.   http_post_2xx:
  8.     prober: http
  9.     http:
  10.       method: POST
  11.   tcp_connect:
  12.     prober: tcp
  13.   pop3s_banner:
  14.     prober: tcp
  15.     tcp:
  16.       query_response:
  17.       - expect: "^+OK"
  18.       tls: true
  19.       tls_config:
  20.         insecure_skip_verify: false
  21.   ssh_banner:
  22.     prober: tcp
  23.     tcp:
  24.       query_response:
  25.       - expect: "^SSH-2.0-"
  26.   irc_banner:
  27.     prober: tcp
  28.     tcp:
  29.       query_response:
  30.       - send: "NICK prober"
  31.       - send: "USER prober prober prober :prober"
  32.       - expect: "PING :([^ ]+)"
  33.         send: "PONG ${1}"
  34.       - expect: "^:[^ ]+ 001"
  35.   icmp:
  36.     prober: icmp
  37. ubuntu@ip-172-31-42-240:~/production/zcash_service_status_dashboad$ ls
  38. README.md  __pycache__  blackbox.yaml  exchanges_config.py  exchanges_health_check.py  prometheus.yaml  self_health_check
  39. ubuntu@ip-172-31-42-240:~/production/zcash_service_status_dashboad$ cat prometheus.yaml
  40. # Sample config for Prometheus.
  41.  
  42. global:
  43.   scrape_interval:    15s # By default, scrape targets every 15 seconds.
  44.   evaluation_interval: 15s # By default, scrape targets every 15 seconds.
  45.   # scrape_timeout is set to the global default (10s).
  46.  
  47.   # Attach these labels to any time series or alerts when communicating with
  48.   # external systems (federation, remote storage, Alertmanager).
  49.   external_labels:
  50.       monitor: 'example'
  51.  
  52. # Load and evaluate rules in this file every 'evaluation_interval' seconds.
  53. rule_files:
  54.  # - "first.rules"
  55.   # - "second.rules"
  56.  
  57. # A scrape configuration containing exactly one endpoint to scrape:
  58. # Here it's Prometheus itself.
  59. scrape_configs:
  60.  # The job name is added as a label `job=<job_name>` to any timeseries scraped from this config.
  61.   - job_name: 'prometheus'
  62.  
  63.     # Override the global default and scrape targets from this job every 5 seconds.
  64.     scrape_interval: 5s
  65.     scrape_timeout: 5s
  66.  
  67.     # metrics_path defaults to '/metrics'
  68.     # scheme defaults to 'http'.
  69.  
  70.     static_configs:
  71.       - targets: ['localhost:9090']
  72.  
  73.   - job_name: 'exchanges'
  74.  
  75.     # Override the global default and scrape targets from this job every 5 seconds.
  76.     scrape_interval: 5s
  77.     scrape_timeout: 5s
  78.  
  79.     # metrics_path defaults to '/metrics'
  80.     # scheme defaults to 'http'.
  81.  
  82.     static_configs:
  83.       - targets: ['localhost:8093']
  84.  
  85.   - job_name: node
  86.     # If prometheus-node-exporter is installed, grab stats about the local
  87.     # machine by default.
  88.     static_configs:
  89.       - targets: ['localhost:9100']
  90.  
  91.   - job_name: blackbox
  92.     metrics_path: /probe
  93.     params:
  94.       module: [http_2xx]
  95.     static_configs:
  96.       - targets:
  97.        - https://chat.zcashcommunity.com/home
  98.         - https://forum.zcashcommunity.com/
  99.         - https://www.zcashcommunity.com/
  100.         - https://z.cash/
  101.         - https://www.zfnd.org/
  102.     relabel_configs:
  103.       - source_labels: [__address__]
  104.         target_label: __param_target
  105.       - source_labels: [__param_target]
  106.         target_label: instance
  107.       - target_label: __address__
  108.         replacement: 127.0.0.1:9115 # The blackbox exporter.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement