Skip to content

Commit

Permalink
Fix series/samples written rate
Browse files Browse the repository at this point in the history
Signed-off-by: Douglas Camata <[email protected]>
  • Loading branch information
douglascamata authored and Nathaniel Graham committed May 18, 2023
1 parent 5f76d14 commit e41cb39
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions examples/dashboards/receive.json
Original file line number Diff line number Diff line change
Expand Up @@ -982,7 +982,7 @@
"steppedLine": false,
"targets": [
{
"expr": "sum(rate(thanos_receive_write_samples_bucket{job=~\"$job\", tenant=~\"$tenant\", code=~\"2..\"}[$interval])) by (job, tenant) ",
"expr": "sum(rate(thanos_receive_write_samples_sum{job=~\"$job\", tenant=~\"$tenant\", code=~\"2..\"}[$interval])) by (job, tenant) ",
"format": "time_series",
"intervalFactor": 2,
"legendFormat": "{{tenant}}",
Expand Down Expand Up @@ -1058,7 +1058,7 @@
"steppedLine": false,
"targets": [
{
"expr": "sum(rate(thanos_receive_write_samples_bucket{job=~\"$job\", tenant=~\"$tenant\", code!~\"2..\"}[$interval])) by (tenant, code) ",
"expr": "sum(rate(thanos_receive_write_samples_sum{job=~\"$job\", tenant=~\"$tenant\", code!~\"2..\"}[$interval])) by (tenant, code) ",
"format": "time_series",
"intervalFactor": 2,
"legendFormat": "{{code}} - {{tenant}}",
Expand Down
4 changes: 2 additions & 2 deletions mixin/dashboards/receive.libsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ local utils = import '../lib/utils.libsonnet';
.addPanel(
g.panel('Rate of samples received (per tenant, only 2XX)') +
g.queryPanel(
'sum(rate(thanos_receive_write_samples_bucket{%s}[$interval])) by (%s) ' % [
'sum(rate(thanos_receive_write_samples_sum{%s}[$interval])) by (%s) ' % [
utils.joinLabels([thanos.receive.dashboard.tenantSelector, 'code=~"2.."']),
thanos.receive.dashboard.tenantDimensions,
],
Expand All @@ -164,7 +164,7 @@ local utils = import '../lib/utils.libsonnet';
.addPanel(
g.panel('Rate of samples not written (per tenant and code, non 2XX)') +
g.queryPanel(
'sum(rate(thanos_receive_write_samples_bucket{%s}[$interval])) by (%s) ' % [
'sum(rate(thanos_receive_write_samples_sum{%s}[$interval])) by (%s) ' % [
utils.joinLabels([thanos.receive.dashboard.tenantSelector, 'code!~"2.."']),
tenantWithHttpCodeDimensions,
],
Expand Down

0 comments on commit e41cb39

Please sign in to comment.