Skip to content

Commit

Permalink
fix: Prometheus v3.0.0 removed unsupported features
Browse files Browse the repository at this point in the history
  • Loading branch information
saidsef committed Nov 18, 2024
1 parent b472360 commit 88eb383
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 10 deletions.
14 changes: 5 additions & 9 deletions deployment/prometheus/cm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,16 +10,12 @@ data:
groups:
- name: http_request_duration
rules:
- record: job:request_duration_seconds:rate
- record: job:request_duration_seconds:sum_rate5m
expr: |
sum(rate(hubble_http_request_duration_seconds_bucket{
cluster=~"${cluster}",
destination_namespace=~"${destination_namespace}",
destination_workload=~"${destination_workload}",
reporter="${reporter}",
source_namespace=~"${source_namespace}",
source_workload=~"${source_workload}"
}[5m])) by (cluster, destination_namespace, destination_workload, le)
sum(rate(hubble_http_request_duration_seconds_bucket{}[5m])) by (cluster, destination_namespace, destination_workload, le)
annotations:
description: Sum of Hubble HTTP request durations by cluster and namespace
summary: Sum Hubble request durations by cluster and namespace
- name: Memory
rules:
- alert: ContainerUsedMemoryPercent
Expand Down
2 changes: 1 addition & 1 deletion deployment/prometheus/deployment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ spec:
- '--storage.tsdb.path=/prometheus/data/'
- '--web.console.libraries=/etc/prometheus/console_libraries'
- '--web.console.templates=/etc/prometheus/consoles'
- '--enable-feature=concurrent-rule-eval,promql-experimental-functions,new-service-discovery-manager,exemplar-storage,remote-write-receiver,promql-per-step-stats'
- '--enable-feature=concurrent-rule-eval,promql-experimental-functions,exemplar-storage,promql-per-step-stats,native-histograms'
- '--web.enable-remote-write-receiver'
- '--web.enable-otlp-receiver'
- '--web.enable-lifecycle'
Expand Down

0 comments on commit 88eb383

Please sign in to comment.