Add http status code check to alert rule
All checks were successful
Lint Checks / Run linter (pull_request) Successful in 39s
Deploy Test / Run deploy test suite (pull_request) Successful in 5m0s
Webapp Test / Run webapp test suite (pull_request) Successful in 5m45s
K8s Deploy Test / Run deploy test suite on kind/k8s (pull_request) Successful in 9m27s
Smoke Test / Run basic test suite (pull_request) Successful in 5m0s
All checks were successful
Lint Checks / Run linter (pull_request) Successful in 39s
Deploy Test / Run deploy test suite (pull_request) Successful in 5m0s
Webapp Test / Run webapp test suite (pull_request) Successful in 5m45s
K8s Deploy Test / Run deploy test suite on kind/k8s (pull_request) Successful in 9m27s
Smoke Test / Run basic test suite (pull_request) Successful in 5m0s
This commit is contained in:
parent
23d527720f
commit
abf4d39a22
@ -24,6 +24,20 @@ groups:
|
|||||||
maxDataPoints: 43200
|
maxDataPoints: 43200
|
||||||
range: false
|
range: false
|
||||||
refId: probe
|
refId: probe
|
||||||
|
- refId: http_status_code
|
||||||
|
relativeTimeRange:
|
||||||
|
from: 600
|
||||||
|
to: 0
|
||||||
|
datasourceUid: PBFA97CFB590B2093
|
||||||
|
model:
|
||||||
|
editorMode: code
|
||||||
|
expr: probe_http_status_code{destination="azimuth_gateway"}
|
||||||
|
instant: true
|
||||||
|
intervalMs: 1000
|
||||||
|
legendFormat: __auto
|
||||||
|
maxDataPoints: 43200
|
||||||
|
range: false
|
||||||
|
refId: http_status_code
|
||||||
- refId: condition
|
- refId: condition
|
||||||
relativeTimeRange:
|
relativeTimeRange:
|
||||||
from: 600
|
from: 600
|
||||||
@ -48,7 +62,7 @@ groups:
|
|||||||
name: Expression
|
name: Expression
|
||||||
type: __expr__
|
type: __expr__
|
||||||
uid: __expr__
|
uid: __expr__
|
||||||
expression: ${probe} != 1
|
expression: ${probe} != 1 || ${http_status_code} != 200
|
||||||
intervalMs: 1000
|
intervalMs: 1000
|
||||||
maxDataPoints: 43200
|
maxDataPoints: 43200
|
||||||
refId: condition
|
refId: condition
|
||||||
@ -57,9 +71,8 @@ groups:
|
|||||||
execErrState: Alerting
|
execErrState: Alerting
|
||||||
for: 5m
|
for: 5m
|
||||||
annotations:
|
annotations:
|
||||||
summary: Probe failed for Azimuth gateway endpoint {{ index $labels "instance" }}
|
summary: Probe failed for Azimuth gateway endpoint
|
||||||
labels:
|
labels:
|
||||||
endpoint: '{{ index $labels "instance" }}'
|
|
||||||
probe_success: '{{ index $values "probe" }}'
|
probe_success: '{{ index $values "probe" }}'
|
||||||
isPaused: false
|
isPaused: false
|
||||||
# Laconicd GQL endpoint
|
# Laconicd GQL endpoint
|
||||||
@ -81,6 +94,20 @@ groups:
|
|||||||
maxDataPoints: 43200
|
maxDataPoints: 43200
|
||||||
range: false
|
range: false
|
||||||
refId: probe
|
refId: probe
|
||||||
|
- refId: http_status_code
|
||||||
|
relativeTimeRange:
|
||||||
|
from: 600
|
||||||
|
to: 0
|
||||||
|
datasourceUid: PBFA97CFB590B2093
|
||||||
|
model:
|
||||||
|
editorMode: code
|
||||||
|
expr: probe_http_status_code{destination="laconicd_gql"}
|
||||||
|
instant: true
|
||||||
|
intervalMs: 1000
|
||||||
|
legendFormat: __auto
|
||||||
|
maxDataPoints: 43200
|
||||||
|
range: false
|
||||||
|
refId: http_status_code
|
||||||
- refId: condition
|
- refId: condition
|
||||||
relativeTimeRange:
|
relativeTimeRange:
|
||||||
from: 600
|
from: 600
|
||||||
@ -105,7 +132,7 @@ groups:
|
|||||||
name: Expression
|
name: Expression
|
||||||
type: __expr__
|
type: __expr__
|
||||||
uid: __expr__
|
uid: __expr__
|
||||||
expression: ${probe} != 1
|
expression: ${probe} != 1 || ${http_status_code} != 200
|
||||||
intervalMs: 1000
|
intervalMs: 1000
|
||||||
maxDataPoints: 43200
|
maxDataPoints: 43200
|
||||||
refId: condition
|
refId: condition
|
||||||
@ -114,8 +141,7 @@ groups:
|
|||||||
execErrState: Alerting
|
execErrState: Alerting
|
||||||
for: 5m
|
for: 5m
|
||||||
annotations:
|
annotations:
|
||||||
summary: Probe failed for Laconicd GQL endpoint {{ index $labels "instance" }}
|
summary: Probe failed for Laconicd GQL endpoint
|
||||||
labels:
|
labels:
|
||||||
endpoint: '{{ index $labels "instance" }}'
|
|
||||||
probe_success: '{{ index $values "probe" }}'
|
probe_success: '{{ index $values "probe" }}'
|
||||||
isPaused: false
|
isPaused: false
|
||||||
|
Loading…
Reference in New Issue
Block a user