Slackbot
04/11/2022, 4:51 AMAnkit Nayan
Kumaran Ilangovan
04/11/2022, 7:20 AMAnkit Nayan
Kumaran Ilangovan
04/11/2022, 11:09 AMPrashant Shahi
04/11/2022, 9:06 PM{
"receiver": "webhook-tester",
"status": "firing",
"alerts": [
{
"status": "firing",
"labels": {
"alertname": "SigNozOtelMissing",
"severity": "critical"
},
"annotations": {
"description": "SigNoz OtelCollector is not up VALUE = 1 LABELS = map[]",
"summary": "SigNoz Otel Missing"
},
"startsAt": "2022-04-11T20:40:59.657116411Z",
"endsAt": "0001-01-01T00:00:00Z",
"generatorURL": "<http://my-release-signoz-query-service-0:3301/graph?g0.expr=absent%28up%29>&g0.tab=1",
"fingerprint": "fac4e16c7c178c32"
}
],
"groupLabels": {
"alertname": "SigNozOtelMissing"
},
"commonLabels": {
"alertname": "SigNozOtelMissing",
"severity": "critical"
},
"commonAnnotations": {
"description": "SigNoz OtelCollector is not up VALUE = 1 LABELS = map[]",
"summary": "SigNoz Otel Missing"
},
"externalURL": "<http://my-release-signoz-alertmanager-0:9093>",
"version": "4",
"groupKey": "{}/{}:{alertname=\"SigNozOtelMissing\"}",
"truncatedAlerts": 0
}
Header:
{ "authorization":"Basic dXNlcjpwYXNzd29yZA==","content-type":"application/json", ... }
Kumaran Ilangovan
04/12/2022, 4:06 AM2022-04-12T04:22:02.424Z INFO app/server.go:155 /api/v1/version timeTaken: 18.7µs
2022-04-12T04:22:02.424Z INFO app/server.go:155 /api/v1/version timeTaken: 21.901µs
time="2022-04-12T04:22:03Z" level=warning msg="Ignoring hint {StepMs:0 Func:rate StartMs:1649737263891 EndMs:1649737323891} for query [1649737263891,1649737323891,{span_kind=\"SPAN_KIND_SERVER\",__name__=\"signoz_latency_count\"}]." component=clickhouse
My rule definition is,
alert: Sample RPS
expr: sum(rate(signoz_latency_count{span_kind="SPAN_KIND_SERVER"}[2m])) by (service_name) > 1
for: 0m
labels:
severity: warning
annotations:
summary: High RPS of Applications
description: "RPS is > 1
VALUE = {{ $value }}
LABELS = {{ $labels }}"
Prashant Shahi
04/12/2022, 6:21 AMWhether any Bearer Token header or empty token be sent in Header - when sending webhook data?If username/password are set in webhook alert channel, it includes HTTP basic authentication header.
Kumaran Ilangovan
04/12/2022, 6:46 AMAnkit Nayan
Kumaran Ilangovan
04/12/2022, 9:19 AMAnkit Nayan
Ankit Nayan
Kumaran Ilangovan
04/12/2022, 2:05 PMPrashant Shahi
04/12/2022, 5:46 PMKumaran Ilangovan
04/12/2022, 6:59 PMPrashant Shahi
04/13/2022, 7:39 AMsignoz-0.0.12
?
you can follow the steps below to test the alert:
• Configure alert webhook channel. Make sure it accepts POST method and accessible
• Create SigNozOtelMissing alert
alert: SigNozOtelMissing
expr: absent(up{hostname="",job="otel-collector"})
for: 0m
labels:
severity: warning
annotations:
summary: SigNoz OtelCollector missing
description: "SigNoz OtelCollector up status metrics disappeared\n VALUE = {{ $value }}\n LABELS = {{ $labels }}"
• Set replicas for Otel-Collector
and Otel-Collector-Metrics
to 0
# set replicas to 0
kubectl -n platform edit deployment.apps/my-release-signoz-otel-collector
# set replicas to 0
kubectl -n platform edit deployment.apps/my-release-signoz-otel-collector-metrics
• wait for around 5 minutes for the triggerPrashant Shahi
04/13/2022, 9:18 AMextraArgs
for the same:
helm -n platform upgrade -i my-release signoz/signoz --set alertmanager.extraArgs."log\.level"=debug
Alertmanager output:
level=debug ts=2022-04-13T09:13:29.943Z caller=dispatch.go:165 component=dispatcher msg="Received alert" alert=SigNozOtelMissing[caa9f48][active]
level=debug ts=2022-04-13T09:13:29.951Z caller=dispatch.go:175 component=dispatcher msg="Processing alert" alert=SigNozOtelMissing[caa9f48][active]
level=debug ts=2022-04-13T09:13:29.954Z caller=dispatch.go:518 component=dispatcher aggrGroup="{}/{}:{alertname=\"SigNozOtelMissing\"}" msg=flushing alerts=[SigNozOtelMissing[caa9f48][active]]
level=debug ts=2022-04-13T09:13:30.416Z caller=notify.go:729 component=dispatcher receiver=webhook-tester integration=webhook[0] msg="Notify success" attempts=1
level=debug ts=2022-04-13T09:13:30.436Z caller=dispatch.go:521 component=dispatcher aggrGroup="{}/{}:{alertname=\"SigNozOtelMissing\"}" msg="notify completed" alerts=[SigNozOtelMissing[caa9f48][active]]
level=debug ts=2022-04-13T09:13:44.953Z caller=dispatch.go:165 component=dispatcher msg="Received alert" alert=SigNozOtelMissing[caa9f48][active]
Kumaran Ilangovan
04/13/2022, 1:55 PM