Hi,
I've a pretty basic SLO:
apiVersion: pyrra.dev/v1alpha1
kind: ServiceLevelObjective
metadata:
name: prometheus-metrics-endpoint-success
namespace: monitoring
spec:
alerting: {}
description: ""
indicator:
bool_gauge:
grouping:
- instance
- environment
- customer
metric: probe_success{instance=~".*/metrics"}
target: "99.0"
window: 7d
status:
type: ConfigMap
In the webui the probe per second is wrong, my probe is executed every 5s so the rate should be 0.2, not 60.
The generated query for the graph is:
sum by (instance, environment, customer) (count_over_time(probe_success{customer="acme",environment="development",instance="https://prometheus-server-eks-euw1-01.dev.acme.net/eks-acme-dev-euw1-01/metrics"}[5m]))
/ 1
The right query would be
sum by (instance, environment, customer) (count_over_time(probe_success{customer="acme",environment="development",instance="https://prometheus-server-eks-euw1-01.dev.acme.net/eks-acme-dev-euw1-01/metrics"}[5m]))
/ 5m
The / 1 at the end of the query should be replaced by / <timeframe> (5m in this case).
Regards.
Hi,
I've a pretty basic SLO:
In the webui the probe per second is wrong, my probe is executed every 5s so the rate should be 0.2, not 60.
The generated query for the graph is:
The right query would be
The
/ 1at the end of the query should be replaced by/ <timeframe>(5min this case).Regards.