Skip to content
This repository has been archived by the owner on Jan 18, 2024. It is now read-only.

charts/promscale: regenerate alerts #478

Merged
merged 1 commit into from
Oct 25, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion charts/promscale/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ apiVersion: v2
name: promscale
description: Promscale Connector deployment

version: 14.4.0
version: 14.4.1
appVersion: 0.16.0

home: https://github.com/timescale/promscale
Expand Down
50 changes: 25 additions & 25 deletions charts/promscale/templates/prometheus-rule.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,11 @@ spec:
- alert: PromscaleIngestHighErrorRate
expr: |
(
sum by (job, instance, type) (
sum by (job, instance, namespace, type) (
rate(promscale_ingest_requests_total{code=~"5.."}[5m])
)
/
sum by (job, instance, type) (
sum by (job, instance, namespace, type) (
rate(promscale_ingest_requests_total[5m])
)
) > 0.05
Expand All @@ -44,11 +44,11 @@ spec:
- alert: PromscaleIngestHighErrorRate
expr: |
(
sum by (job, instance, type) (
sum by (job, instance, namespace, type) (
rate(promscale_ingest_requests_total{code=~"5.."}[5m])
)
/
sum by (job, instance, type) (
sum by (job, instance, namespace, type) (
rate(promscale_ingest_requests_total[5m])
)
) > 0.1
Expand All @@ -63,12 +63,12 @@ spec:
(
histogram_quantile(
0.90,
sum by (job, instance, type, le) (
sum by (job, instance, namespace, type, le) (
rate(promscale_ingest_duration_seconds_bucket[5m])
)
) > 10
and
sum by (job, instance, type) (
sum by (job, instance, namespace, type) (
rate(promscale_ingest_duration_seconds_bucket[5m])
)
) > 0
Expand All @@ -84,12 +84,12 @@ spec:
(
histogram_quantile(
0.90,
sum by (job, instance, type, le) (
sum by (job, instance, namespace, type, le) (
rate(promscale_ingest_duration_seconds_bucket[5m])
)
) > 30
and
sum by (job, instance, type) (
sum by (job, instance, namespace, type) (
rate(promscale_ingest_duration_seconds_bucket[5m])
)
) > 0
Expand All @@ -105,11 +105,11 @@ spec:
- alert: PromscaleQueryHighErrorRate
expr: |
(
sum by (job, instance, type) (
sum by (job, instance, namespace, type) (
rate(promscale_query_requests_total{code=~"5.."}[5m])
)
/
sum by (job, instance, type) (
sum by (job, instance, namespace, type) (
rate(promscale_query_requests_total[5m])
)
) > 0.05
Expand All @@ -122,11 +122,11 @@ spec:
- alert: PromscaleQueryHighErrorRate
expr: |
(
sum by (job, instance, type) (
sum by (job, instance, namespace, type) (
rate(promscale_query_requests_total{code=~"5.."}[5m])
)
/
sum by (job, instance, type) (
sum by (job, instance, namespace, type) (
rate(promscale_query_requests_total[5m])
)
) > 0.1
Expand All @@ -141,12 +141,12 @@ spec:
(
histogram_quantile(
0.90,
sum by (job, instance, type, le) (
sum by (job, instance, namespace, type, le) (
rate(promscale_query_duration_seconds_bucket[5m])
)
) > 5
and
sum by (job, instance, type) (
sum by (job, instance, namespace, type) (
rate(promscale_query_duration_seconds_bucket[5m])
) > 0
)
Expand All @@ -162,12 +162,12 @@ spec:
(
histogram_quantile(
0.90,
sum by (job, instance, type, le) (
sum by (job, instance, namespace, type, le) (
rate(promscale_query_duration_seconds_bucket[5m])
)
) > 10
and
sum by (job, instance, type) (
sum by (job, instance, namespace, type) (
rate(promscale_query_duration_seconds_bucket[5m])
) > 0
)
Expand Down Expand Up @@ -198,12 +198,12 @@ spec:
- alert: PromscaleDBHighErrorRate
expr: |
(
sum by (job) (
sum by (job, instance, namespace) (
# Error counter exists for query, query_row & exec, and not for send_batch.
rate(promscale_database_request_errors_total{method=~"query.*|exec"}[5m])
)
/
sum by (job) (
sum by (job, instance, namespace) (
rate(promscale_database_requests_total{method=~"query.*|exec"}[5m])
)
) > 0.05
Expand All @@ -217,12 +217,12 @@ spec:
expr: |
(
histogram_quantile(0.9,
sum by (le, job, type) (
sum by (job, instance, namespace, le) (
rate(promscale_database_requests_duration_seconds_bucket[5m])
)
) > 5
and
sum by (job, type) (
sum by (job, instance, namespace) (
rate(promscale_database_requests_duration_seconds_count[5m])
) > 0
)
Expand All @@ -237,11 +237,11 @@ spec:
- alert: PromscaleStorageUnhealthy
expr: |
(
sum by (job) (
sum by (job, instance, namespace) (
rate(promscale_sql_database_health_check_errors_total[5m])
)
/
sum by (job) (
sum by (job, instance, namespace) (
rate(promscale_sql_database_health_check_total[5m])
)
) > 0.05
Expand Down Expand Up @@ -292,7 +292,7 @@ spec:
(
delta(promscale_sql_database_chunks_metrics_expired_count[10m]) > 0
)
)
)
or
(
(
Expand All @@ -302,7 +302,7 @@ spec:
(
delta(promscale_sql_database_chunks_traces_uncompressed_count[10m]) > 0
)
)
)
or
(
(
Expand All @@ -312,7 +312,7 @@ spec:
(
delta(promscale_sql_database_chunks_traces_expired_count[10m]) > 0
)
)
)
labels:
severity: warning
annotations:
Expand Down