Skip to content

Instantly share code, notes, and snippets.

@thienn1107
Created November 15, 2018 08:39
Show Gist options
  • Save thienn1107/31d6b45a9e1c6236a4d682d805c80c61 to your computer and use it in GitHub Desktop.
Save thienn1107/31d6b45a9e1c6236a4d682d805c80c61 to your computer and use it in GitHub Desktop.

Revisions

  1. thienn1107 revised this gist Nov 15, 2018. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion prometheus.yml
    Original file line number Diff line number Diff line change
    @@ -2,7 +2,7 @@ global:
    scrape_interval: 15s
    evaluation_interval: 15s
    external_labels:
    monitor: 'Exchange-SGP'
    monitor: 'xxx'

    alerting:
    alertmanagers:
  2. thienn1107 created this gist Nov 15, 2018.
    26 changes: 26 additions & 0 deletions prometheus.yml
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,26 @@
    global:
    scrape_interval: 15s
    evaluation_interval: 15s
    external_labels:
    monitor: 'Exchange-SGP'

    alerting:
    alertmanagers:
    - static_configs:
    - targets:
    - alertmanager:9093

    rule_files:
    - "mem.rule.yml"
    # - "second_rules.yml"
    scrape_configs:
    - job_name: 'prometheus'

    # metrics_path defaults to '/metrics'
    # scheme defaults to 'http'.

    static_configs:
    - targets: ['localhost:9090']

    - job_name: 'PROD-NODE'
    static_configs: