Skip to content

Commit

Permalink
update mixins
Browse files Browse the repository at this point in the history
update mimir-mixin

update alloy-mixin

update kubernetes-mixin
  • Loading branch information
qclaogui committed Nov 29, 2024
1 parent efc06e8 commit 543a4f4
Show file tree
Hide file tree
Showing 48 changed files with 14,408 additions and 24,312 deletions.
24 changes: 18 additions & 6 deletions monitoring-mixins/alloy-mixin/deploy/alloy-mixin-alerts.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -79,16 +79,28 @@ groups:
- alert: OtelcolReceiverRefusedSpans
annotations:
description: The receiver could not push some spans to the pipeline under job {{ $labels.job }}. This could be due to reaching a limit such as the ones imposed by otelcol.processor.memory_limiter.
summary: The receiver could not push some spans to the pipeline.
expr: sum by (cluster, namespace, job) (rate(otelcol_receiver_refused_spans_total{}[1m])) > 0
for: 5m
summary: The receiver pushing spans to the pipeline success rate is below 95%.
expr: |
(1 - (
sum by (cluster, namespace, job) (rate(otelcol_receiver_refused_spans_total{}[1m]))
/
sum by (cluster, namespace, job) (rate(otelcol_receiver_refused_spans_total{}[1m]) + rate(otelcol_receiver_accepted_spans_total{}[1m]))
)
) < 0.95
for: 10m
labels:
severity: warning
- alert: OtelcolExporterFailedSpans
annotations:
description: The exporter failed to send spans to their destination under job {{ $labels.job }}. There could be an issue with the payload or with the destination endpoint.
summary: The exporter failed to send spans to their destination.
expr: sum by (cluster, namespace, job) (rate(otelcol_exporter_send_failed_spans_total{}[1m])) > 0
for: 5m
summary: The exporter sending spans success rate is below 95%.
expr: |
(1 - (
sum by (cluster, namespace, job) (rate(otelcol_exporter_send_failed_spans_total{}[1m]))
/
sum by (cluster, namespace, job) (rate(otelcol_exporter_send_failed_spans_total{}[1m]) + rate(otelcol_exporter_sent_spans_total{}[1m]))
)
) < 0.95
for: 10m
labels:
severity: warning
24 changes: 14 additions & 10 deletions monitoring-mixins/alloy-mixin/deploy/dashboards_out/alloy-logs.json
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,9 @@
},
"gridPos": {
"h": 6,
"w": 24
"w": 24,
"x": 0,
"y": 0
},
"id": 1,
"maxDataPoints": 100,
Expand All @@ -151,7 +153,7 @@
"sort": "desc"
}
},
"pluginVersion": "v10.0.0",
"pluginVersion": "v11.0.0",
"targets": [
{
"datasource": {
Expand Down Expand Up @@ -181,7 +183,9 @@
},
"gridPos": {
"h": 18,
"w": 24
"w": 24,
"x": 0,
"y": 18
},
"id": 2,
"options": {
Expand All @@ -191,7 +195,7 @@
"showTime": false,
"wrapLogMessage": true
},
"pluginVersion": "v10.0.0",
"pluginVersion": "v11.0.0",
"targets": [
{
"datasource": {
Expand All @@ -206,7 +210,7 @@
}
],
"refresh": "10s",
"schemaVersion": 36,
"schemaVersion": 39,
"tags": [
"alloy-mixin"
],
Expand All @@ -220,7 +224,7 @@
"type": "datasource"
},
{
"allValue": ".*",
"allValue": ".+",
"datasource": {
"type": "loki",
"uid": "${loki_datasource}"
Expand All @@ -235,7 +239,7 @@
"type": "query"
},
{
"allValue": ".*",
"allValue": ".+",
"datasource": {
"type": "loki",
"uid": "${loki_datasource}"
Expand All @@ -250,7 +254,7 @@
"type": "query"
},
{
"allValue": ".*",
"allValue": ".+",
"datasource": {
"type": "loki",
"uid": "${loki_datasource}"
Expand All @@ -265,7 +269,7 @@
"type": "query"
},
{
"allValue": ".*",
"allValue": ".+",
"datasource": {
"type": "loki",
"uid": "${loki_datasource}"
Expand All @@ -280,7 +284,7 @@
"type": "query"
},
{
"allValue": ".*",
"allValue": ".+",
"datasource": {
"type": "loki",
"uid": "${loki_datasource}"
Expand Down
27 changes: 19 additions & 8 deletions monitoring-mixins/alloy-mixin/deploy/manifests/k8s-all-in-one.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3075,20 +3075,31 @@ spec:
description: The receiver could not push some spans to the pipeline under
job {{ $labels.job }}. This could be due to reaching a limit such as the
ones imposed by otelcol.processor.memory_limiter.
summary: The receiver could not push some spans to the pipeline.
expr: sum by (cluster, namespace, job) (rate(otelcol_receiver_refused_spans_total{}[1m]))
> 0
for: 5m
summary: The receiver pushing spans to the pipeline success rate is below
95%.
expr: |
(1 - (
sum by (cluster, namespace, job) (rate(otelcol_receiver_refused_spans_total{}[1m]))
/
sum by (cluster, namespace, job) (rate(otelcol_receiver_refused_spans_total{}[1m]) + rate(otelcol_receiver_accepted_spans_total{}[1m]))
)
) < 0.95
for: 10m
labels:
severity: warning
- alert: OtelcolExporterFailedSpans
annotations:
description: The exporter failed to send spans to their destination under
job {{ $labels.job }}. There could be an issue with the payload or with
the destination endpoint.
summary: The exporter failed to send spans to their destination.
expr: sum by (cluster, namespace, job) (rate(otelcol_exporter_send_failed_spans_total{}[1m]))
> 0
for: 5m
summary: The exporter sending spans success rate is below 95%.
expr: |
(1 - (
sum by (cluster, namespace, job) (rate(otelcol_exporter_send_failed_spans_total{}[1m]))
/
sum by (cluster, namespace, job) (rate(otelcol_exporter_send_failed_spans_total{}[1m]) + rate(otelcol_exporter_sent_spans_total{}[1m]))
)
) < 0.95
for: 10m
labels:
severity: warning
24 changes: 18 additions & 6 deletions monitoring-mixins/alloy-mixin/deploy/prometheus-alerts.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -86,16 +86,28 @@ spec:
- alert: OtelcolReceiverRefusedSpans
annotations:
description: The receiver could not push some spans to the pipeline under job {{ $labels.job }}. This could be due to reaching a limit such as the ones imposed by otelcol.processor.memory_limiter.
summary: The receiver could not push some spans to the pipeline.
expr: sum by (cluster, namespace, job) (rate(otelcol_receiver_refused_spans_total{}[1m])) > 0
for: 5m
summary: The receiver pushing spans to the pipeline success rate is below 95%.
expr: |
(1 - (
sum by (cluster, namespace, job) (rate(otelcol_receiver_refused_spans_total{}[1m]))
/
sum by (cluster, namespace, job) (rate(otelcol_receiver_refused_spans_total{}[1m]) + rate(otelcol_receiver_accepted_spans_total{}[1m]))
)
) < 0.95
for: 10m
labels:
severity: warning
- alert: OtelcolExporterFailedSpans
annotations:
description: The exporter failed to send spans to their destination under job {{ $labels.job }}. There could be an issue with the payload or with the destination endpoint.
summary: The exporter failed to send spans to their destination.
expr: sum by (cluster, namespace, job) (rate(otelcol_exporter_send_failed_spans_total{}[1m])) > 0
for: 5m
summary: The exporter sending spans success rate is below 95%.
expr: |
(1 - (
sum by (cluster, namespace, job) (rate(otelcol_exporter_send_failed_spans_total{}[1m]))
/
sum by (cluster, namespace, job) (rate(otelcol_exporter_send_failed_spans_total{}[1m]) + rate(otelcol_exporter_sent_spans_total{}[1m]))
)
) < 0.95
for: 10m
labels:
severity: warning
2 changes: 1 addition & 1 deletion monitoring-mixins/alloy-mixin/jsonnetfile.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"subdir": "operations/alloy-mixin"
}
},
"version": "v1.4.2"
"version": "v1.5.0"
}
],
"legacyImports": true
Expand Down
24 changes: 17 additions & 7 deletions monitoring-mixins/alloy-mixin/jsonnetfile.lock.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@
"subdir": "operations/alloy-mixin"
}
},
"version": "bc5368ee70ad1f4ccd706f8402ca01fbf02feeb0",
"sum": "oEPCDzcAw1sGH8Qoo/RfGBB/ec7YmXspNdmxx3Mz0wE="
"version": "cca9dfc9ceecf34e4f7a1c2ee298f08b813e9270",
"sum": "5elgTywKhjGlHvoTWktoyjlF3MCXeTuSmh93G2b0FiM="
},
{
"source": {
Expand All @@ -18,18 +18,28 @@
"subdir": "gen/grafonnet-v10.0.0"
}
},
"version": "1ce5aec95ce32336fe47c8881361847c475b5254",
"version": "82a19822e54a0a12a51e24dbd48fcde717dc0864",
"sum": "xdcrJPJlpkq4+5LpGwN4tPAuheNNLXZjE6tDcyvFjr0="
},
{
"source": {
"git": {
"remote": "https://github.com/grafana/grafonnet.git",
"subdir": "gen/grafonnet-v11.0.0"
}
},
"version": "82a19822e54a0a12a51e24dbd48fcde717dc0864",
"sum": "0BvzR0i4bS4hc2O3xDv6i9m52z7mPrjvqxtcPrGhynA="
},
{
"source": {
"git": {
"remote": "https://github.com/grafana/jsonnet-libs.git",
"subdir": "logs-lib/"
}
},
"version": "638ce5cdede46cb1a352fd8c9fa01127eb26b088",
"sum": "tUeoie1Cc7Ih7eKOX/H9pD4PkDnTzLZzP9fupYIBMwA="
"version": "57b0b85dc1d7ed5e30c2e41f3bd26744b8aef519",
"sum": "v1hBizsJAXeUs9/SV4l8LqHNWi73fX4SWpG9FmAUY9I="
},
{
"source": {
Expand All @@ -38,8 +48,8 @@
"subdir": "logs-lib/logs"
}
},
"version": "638ce5cdede46cb1a352fd8c9fa01127eb26b088",
"sum": "/P3y+jKwI4IDIPT6dUuaNH0PscvYUa/j7iPvyHndLXM="
"version": "57b0b85dc1d7ed5e30c2e41f3bd26744b8aef519",
"sum": "ycbLqzt+AizrtaoxbDFsUXKRDwTzKKVfFqnmBl3Vpow="
},
{
"source": {
Expand Down
Loading

0 comments on commit 543a4f4

Please sign in to comment.