Hello,
I need help for a alert test.
here is my configuration:

- alert: HighTotalActiveConnectionCountPerCluster
expr: count by (cluster) 
(confluent_kafka_server_active_connection_count{application="confluent", 
job="confluent cloud"}) > 500
for: 5m
labels:
category: KafkaIssue
severity: high
annotations:
summary: "The number of active connections to the '{{ $labels.cluster }}' 
cluster has exceeded 500."


- interval: 1m
input_series:

- series: 
'confluent_kafka_server_active_connection_count{application="confluent", 
job="confluent cloud", team="DpIntegrations", cluster="Eu-Stg"}'
values: '400+1x60 600+0x60 450+0x60 550+0x60 500+0x60 700+0x60 650+1x60 
750+0x60 800+1x60 950+0x60 1000+0x60'
alert_rule_test:
- eval_time: 10m
alertname: HighTotalActiveConnectionCountPerCluster
exp_alerts:
- exp_labels:
alertname: HighTotalActiveConnectionCountPerCluster
category: KafkaIssue
severity: high
job: confluent cloud
application: confluent
cluster: Eu-Stg
exp_annotations:
summary: "The number of active connections to the 'Eu-Stg' cluster has 
exceeded 500."



but I am getting this error;

alertname: HighTotalActiveConnectionCountPerCluster, time: 10m, 
        exp:[
            0:
              Labels:{alertname="HighTotalActiveConnectionCountPerCluster", 
application="confluent", category="KafkaIssue", cluster="Eu-Stg", 
job="confluent cloud", severity="high"}
              Annotations:{summary="The number of active connections to the 
'Eu-Stg' cluster has exceeded 500."}
            ], 
        got:[]

-- 
You received this message because you are subscribed to the Google Groups 
"Prometheus Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/prometheus-users/59b45cf4-3aca-4fa2-a39f-021f3b7e8ea8n%40googlegroups.com.

Reply via email to