Skip to content

Commit

Permalink
fix prometheus path reference (#32003)
Browse files Browse the repository at this point in the history
* fix prometheus path reference

* add additional Discord handlers

* fix trailing whitespaces

---------

Co-authored-by: joeaba <[email protected]>
  • Loading branch information
denispalab and joeaba authored Jun 7, 2023
1 parent 7b37a16 commit 989e613
Show file tree
Hide file tree
Showing 3 changed files with 42 additions and 12 deletions.
42 changes: 39 additions & 3 deletions metrics/metrics-main/kapacitor.conf
Original file line number Diff line number Diff line change
Expand Up @@ -252,13 +252,49 @@ default-retention-policy = ""
global = false
json-data = false

[[discord]]
enabled = true
default = false
url = "$CANARIES-MONITORING"
workspace = "canaries-monitoring"
timestamp = true
username = "canaries-bot"
avatar-url = "https://influxdata.github.io/branding/img/downloads/influxdata-logo--symbol--pool-alpha.png"
embed-title = "Alert"
global = false
state-changes-only = false

[[discord]]
enabled = true
default = true
url = "https://discordapp.com/api/webhooks/xxxxxxxxxxxxxxxxxx/xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
workspace = "guild-alerts"
url = "$MB-PAGER-DUTY"
workspace = "mb-pager-duty"
timestamp = true
username = "cluster-bot"
avatar-url = "https://influxdata.github.io/branding/img/downloads/influxdata-logo--symbol--pool-alpha.png"
embed-title = "Alert"
global = false
state-changes-only = false

[[discord]]
enabled = true
default = false
url = "$TESNET-PAGER-DUTY"
workspace = "testnet-pager-duty"
timestamp = true
username = "cluster-bot-testnet"
avatar-url = "https://influxdata.github.io/branding/img/downloads/influxdata-logo--symbol--pool-alpha.png"
embed-title = "Alert"
global = false
state-changes-only = false

[[discord]]
enabled = true
default = false
url = "$DEVNET-PAGER-DUTY"
workspace = "devnet-pager-duty"
timestamp = true
username = "AlertBot"
username = "cluster-bot-devnet"
avatar-url = "https://influxdata.github.io/branding/img/downloads/influxdata-logo--symbol--pool-alpha.png"
embed-title = "Alert"
global = false
Expand Down
6 changes: 0 additions & 6 deletions metrics/metrics-main/prometheus.yml
Original file line number Diff line number Diff line change
Expand Up @@ -89,9 +89,3 @@ scrape_configs:
scrape_timeout: 14s
static_configs:
- targets: ['metrics-main:9100']

- job_name: 'Stackpath'
scrape_interval: 15s
scrape_timeout: 14s
static_configs:
- targets: ['dev-stackpath-eu-lhr-2:9100','dev-stackpath-us-den-2']
6 changes: 3 additions & 3 deletions metrics/metrics-main/start.sh
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,8 @@ sudo docker run -it -d \
--user root:root \
--publish 9090:9090 \
--name=prometheus \
--volume /prometheus/prometheus/prometheus.yml:/etc/prometheus/prometheus.yml \
--volume /prometheus/prometheus/first_rules.yml:/etc/prometheus/first_rules.yml \
--volume "$PWD"/prometheus.yml:/etc/prometheus/prometheus.yml \
--volume "$PWD"/first_rules.yml:/etc/prometheus/first_rules.yml \
--volume /prometheus/prometheus/data:/prometheus \
--volume /etc/hosts:/etc/hosts \
$PROMETHEUS_IMAGE
Expand All @@ -65,7 +65,7 @@ sudo docker run -it -d \
--user root:root \
--publish 9093:9093 \
--name=alertmanager \
--volume /prometheus/alertmanager/alertmanager.yml:/etc/alertmanager/alertmanager.yml \
--volume "$PWD"/alertmanager.yml:/etc/alertmanager/alertmanager.yml \
--volume /etc/hosts:/etc/hosts \
$ALERTMANAGER_IMAGE

Expand Down

0 comments on commit 989e613

Please sign in to comment.