Skip to content

Commit

Permalink
Add prometheus related metrics to ocp wrapper (kube-burner#273)
Browse files Browse the repository at this point in the history
With every release we seem to be adding more metrics
and as a result more timeseries, samples and datapoints
per minute to prometheus. It would be beneficial to maintain
this data for historical comparisons and RCAing prometheus issues.

Signed-off-by: Sai Sindhur Malleni <[email protected]>
  • Loading branch information
smalleni authored Mar 21, 2023
1 parent a575df5 commit 40f84be
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
8 changes: 8 additions & 0 deletions cmd/kube-burner/ocp-config/metrics-aggregated.yml
Original file line number Diff line number Diff line change
Expand Up @@ -135,3 +135,11 @@

- query: sum(kube_node_status_condition{status="true"}) by (condition)
metricName: nodeStatus

# Prometheus metrics

- query: openshift:prometheus_tsdb_head_series:sum{job="prometheus-k8s"}
metricName: prometheus-timeseriestotal

- query: openshift:prometheus_tsdb_head_samples_appended_total:sum{job="prometheus-k8s"}
metricName: prometheus-ingestionrate
8 changes: 8 additions & 0 deletions cmd/kube-burner/ocp-config/metrics.yml
Original file line number Diff line number Diff line change
Expand Up @@ -128,3 +128,11 @@

- query: sum(kube_node_status_condition{status="true"}) by (condition)
metricName: nodeStatus

# Prometheus metrics

- query: openshift:prometheus_tsdb_head_series:sum{job="prometheus-k8s"}
metricName: prometheus-timeseriestotal

- query: openshift:prometheus_tsdb_head_samples_appended_total:sum{job="prometheus-k8s"}
metricName: prometheus-ingestionrate

0 comments on commit 40f84be

Please sign in to comment.