Add a custom label to blackbox metrics and update instructions
All checks were successful
Lint Checks / Run linter (pull_request) Successful in 46s
Deploy Test / Run deploy test suite (pull_request) Successful in 5m44s
Webapp Test / Run webapp test suite (pull_request) Successful in 5m12s
Smoke Test / Run basic test suite (pull_request) Successful in 5m36s
K8s Deploy Test / Run deploy test suite on kind/k8s (pull_request) Successful in 8m53s
All checks were successful
Lint Checks / Run linter (pull_request) Successful in 46s
Deploy Test / Run deploy test suite (pull_request) Successful in 5m44s
Webapp Test / Run webapp test suite (pull_request) Successful in 5m12s
Smoke Test / Run basic test suite (pull_request) Successful in 5m36s
K8s Deploy Test / Run deploy test suite on kind/k8s (pull_request) Successful in 8m53s
This commit is contained in:
parent
1746f7366c
commit
23d527720f
@ -17,7 +17,7 @@ groups:
|
|||||||
datasourceUid: PBFA97CFB590B2093
|
datasourceUid: PBFA97CFB590B2093
|
||||||
model:
|
model:
|
||||||
editorMode: code
|
editorMode: code
|
||||||
expr: probe_success{instance="<AZIMUTH_GATEWAY_GQL_ENDPOINT>"}
|
expr: probe_success{destination="azimuth_gateway"}
|
||||||
instant: true
|
instant: true
|
||||||
intervalMs: 1000
|
intervalMs: 1000
|
||||||
legendFormat: __auto
|
legendFormat: __auto
|
||||||
@ -74,7 +74,7 @@ groups:
|
|||||||
datasourceUid: PBFA97CFB590B2093
|
datasourceUid: PBFA97CFB590B2093
|
||||||
model:
|
model:
|
||||||
editorMode: code
|
editorMode: code
|
||||||
expr: probe_success{instance="<LACONICD_GQL_ENDPOINT>"}
|
expr: probe_success{destination="laconicd_gql"}
|
||||||
instant: true
|
instant: true
|
||||||
intervalMs: 1000
|
intervalMs: 1000
|
||||||
legendFormat: __auto
|
legendFormat: __auto
|
||||||
|
@ -24,9 +24,10 @@ scrape_configs:
|
|||||||
params:
|
params:
|
||||||
module: [http_2xx]
|
module: [http_2xx]
|
||||||
static_configs:
|
static_configs:
|
||||||
# Add URLs to be monitored below
|
# Add URLs for targets to be monitored below
|
||||||
- targets:
|
# - targets: [https://github.com]
|
||||||
# - https://github.com
|
# labels:
|
||||||
|
# destination: 'github'
|
||||||
relabel_configs:
|
relabel_configs:
|
||||||
- source_labels: [__address__]
|
- source_labels: [__address__]
|
||||||
regex: (.*)(:80)?
|
regex: (.*)(:80)?
|
||||||
|
@ -44,9 +44,13 @@ Add the following scrape configs to prometheus config file (`monitoring-watchers
|
|||||||
- job_name: 'blackbox'
|
- job_name: 'blackbox'
|
||||||
...
|
...
|
||||||
static_configs:
|
static_configs:
|
||||||
- targets:
|
- targets: [<AZIMUTH_GATEWAY_GQL_ENDPOINT>]
|
||||||
- <AZIMUTH_GATEWAY_GQL_ENDPOINT>
|
labels:
|
||||||
- <LACONICD_GQL_ENDPOINT>
|
# Add destination label for pre-configured alerts
|
||||||
|
destination: 'azimuth_gateway'
|
||||||
|
- targets: [<LACONICD_GQL_ENDPOINT>]
|
||||||
|
labels:
|
||||||
|
destination: 'laconicd_gql'
|
||||||
...
|
...
|
||||||
- job_name: laconicd
|
- job_name: laconicd
|
||||||
...
|
...
|
||||||
@ -120,10 +124,12 @@ Add scrape config as done above for any additional watcher to add it to the Watc
|
|||||||
|
|
||||||
### Grafana alerts config
|
### Grafana alerts config
|
||||||
|
|
||||||
Place the pre-configured watcher alerts rules in Grafana provisioning directory:
|
Place the pre-configured watcher and blackbox endpoint alerts rules in Grafana provisioning directory:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
cp monitoring-watchers-deployment/config/monitoring/watcher-alert-rules.yml monitoring-watchers-deployment/config/monitoring/grafana/provisioning/alerting/
|
cp monitoring-watchers-deployment/config/monitoring/watcher-alert-rules.yml monitoring-watchers-deployment/config/monitoring/grafana/provisioning/alerting/
|
||||||
|
|
||||||
|
cp monitoring-watchers-deployment/config/monitoring/blackbox-alert-rules.yml monitoring-watchers-deployment/config/monitoring/grafana/provisioning/alerting/
|
||||||
```
|
```
|
||||||
|
|
||||||
Update the alerting contact points config (`monitoring-watchers-deployment/config/monitoring/grafana/provisioning/alerting/contactpoints.yml`) with desired contact points
|
Update the alerting contact points config (`monitoring-watchers-deployment/config/monitoring/grafana/provisioning/alerting/contactpoints.yml`) with desired contact points
|
||||||
@ -136,7 +142,7 @@ Add corresponding routes to the notification policies config (`monitoring-watche
|
|||||||
- receiver: SlackNotifier
|
- receiver: SlackNotifier
|
||||||
object_matchers:
|
object_matchers:
|
||||||
# Add matchers below
|
# Add matchers below
|
||||||
- ['grafana_folder', '=', 'WatcherAlerts']
|
- ['grafana_folder', '=~', 'WatcherAlerts|BlackboxAlerts']
|
||||||
```
|
```
|
||||||
|
|
||||||
### Env
|
### Env
|
||||||
|
Loading…
Reference in New Issue
Block a user