Skip to content
Snippets Groups Projects
Commit f3ebed03 authored by Simon Ehrenstein's avatar Simon Ehrenstein
Browse files

Adjust grafana dashboard metrics, prometheus scrape interval, and slo checker

parent 125cf733
No related branches found
No related tags found
1 merge request!243Migrate to Strimzi Kafka
...@@ -71,10 +71,10 @@ data: ...@@ -71,10 +71,10 @@ data:
"steppedLine": false, "steppedLine": false,
"targets": [ "targets": [
{ {
"expr": "sum by (topic) (rate(kafka_server_brokertopicmetrics_messagesin_total{topic='input'}[60s]))", "expr": "sum by (topic) (rate(kafka_server_brokertopicmetrics_messagesin_total{topic='input'}[30s]))",
"format": "time_series", "format": "time_series",
"intervalFactor": 1, "intervalFactor": 1,
"legendFormat": "{{Messages In Per Second}}", "legendFormat": "{{topic}}",
"refId": "D" "refId": "D"
} }
], ],
...@@ -162,10 +162,10 @@ data: ...@@ -162,10 +162,10 @@ data:
"steppedLine": false, "steppedLine": false,
"targets": [ "targets": [
{ {
"expr": "sum by (topic) (rate(kafka_server_brokertopicmetrics_messagesin_total{topic='output'}[60s]))", "expr": "sum by (topic) (rate(kafka_server_brokertopicmetrics_messagesin_total{topic='output'}[30s]))",
"format": "time_series", "format": "time_series",
"intervalFactor": 1, "intervalFactor": 1,
"legendFormat": "{{Messages Out Per Second}}", "legendFormat": "{{topic}}",
"refId": "D" "refId": "D"
} }
], ],
...@@ -347,7 +347,7 @@ data: ...@@ -347,7 +347,7 @@ data:
"expr": "sum by(consumergroup) (kafka_consumergroup_members >= 0)", "expr": "sum by(consumergroup) (kafka_consumergroup_members >= 0)",
"format": "time_series", "format": "time_series",
"intervalFactor": 1, "intervalFactor": 1,
"legendFormat": "instances", "legendFormat": "{{consumergroup}}",
"refId": "D" "refId": "D"
} }
], ],
......
...@@ -10,7 +10,7 @@ spec: ...@@ -10,7 +10,7 @@ spec:
resources: resources:
requests: requests:
memory: 400Mi memory: 400Mi
#scrapeInterval: 1s scrapeInterval: 15s
enableAdminAPI: true enableAdminAPI: true
{{- with .Values.prometheus.nodeSelector }} {{- with .Values.prometheus.nodeSelector }}
nodeSelector: nodeSelector:
......
...@@ -24,7 +24,7 @@ elif os.getenv('LOG_LEVEL') == 'DEBUG': ...@@ -24,7 +24,7 @@ elif os.getenv('LOG_LEVEL') == 'DEBUG':
def calculate_slope_trend(results, warmup): def calculate_slope_trend(results, warmup):
d = [] d = []
for result in results: for result in results:
group = result['metric']['group'] group = result['metric']['consumergroup']
for value in result['values']: for value in result['values']:
d.append({'group': group, 'timestamp': int( d.append({'group': group, 'timestamp': int(
value[0]), 'value': int(value[1]) if value[1] != 'NaN' else 0}) value[0]), 'value': int(value[1]) if value[1] != 'NaN' else 0})
......
...@@ -4,7 +4,7 @@ import theodolite.benchmark.BenchmarkExecution ...@@ -4,7 +4,7 @@ import theodolite.benchmark.BenchmarkExecution
import theodolite.util.InvalidPatcherConfigurationException import theodolite.util.InvalidPatcherConfigurationException
import javax.enterprise.context.ApplicationScoped import javax.enterprise.context.ApplicationScoped
private const val CONSUMER_LAG_QUERY = "sum by(group) (kafka_consumergroup_lag >= 0)" private const val CONSUMER_LAG_QUERY = "sum by(consumergroup) (kafka_consumergroup_lag >= 0)"
private const val DROPPED_RECORDS_QUERY = "sum by(job) (kafka_streams_stream_task_metrics_dropped_records_total>=0)" private const val DROPPED_RECORDS_QUERY = "sum by(job) (kafka_streams_stream_task_metrics_dropped_records_total>=0)"
@ApplicationScoped @ApplicationScoped
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment