Skip to content

Commit

Permalink
fix: show separate metrics per replica (#307)
Browse files Browse the repository at this point in the history
* fix: show separate metrics per replica

* chore: remove unused refid
  • Loading branch information
chris13524 authored Jan 21, 2024
1 parent 8cbe602 commit f304db5
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 16 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,8 @@ local targets = grafana.targets;
)
.configure(defaults.configuration.timeseries)
.addTarget(targets.prometheus(
datasource = ds.prometheus,
expr = 'publishing_workers_count',
legendFormat = 'Running workers',
refId = "pub_workers_count",
datasource = ds.prometheus,
expr = 'publishing_workers_count',
legendFormat = 'r{{aws_ecs_task_revision}}',
))
}
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ local targets = grafana.targets;
)
.configure(defaults.configuration.timeseries)
.addTarget(targets.prometheus(
datasource = ds.prometheus,
expr = 'sum(rate(publishing_workers_errors_total{}[$__rate_interval]))',
refId = "availability",
datasource = ds.prometheus,
expr = 'rate(publishing_workers_errors_total{}[$__rate_interval])',
legendFormat = 'r{{aws_ecs_task_revision}}',
))
}
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ local targets = grafana.targets;
)
.configure(defaults.configuration.timeseries)
.addTarget(targets.prometheus(
datasource = ds.prometheus,
expr = 'sum(publishing_queue_processing_size{})',
refId = "pub_processing_size",
datasource = ds.prometheus,
expr = 'publishing_queue_processing_size',
legendFormat = "r{{aws_ecs_task_revision}}"
))
}
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ local targets = grafana.targets;
)
.configure(defaults.configuration.timeseries)
.addTarget(targets.prometheus(
datasource = ds.prometheus,
expr = 'sum(rate(publishing_queue_published_count_total{}[$__rate_interval]))',
refId = "pub_published_count",
datasource = ds.prometheus,
expr = 'rate(publishing_queue_published_count_total{}[$__rate_interval])',
legendFormat = "r{{aws_ecs_task_revision}}"
))
}
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ local targets = grafana.targets;
)
.configure(defaults.configuration.timeseries)
.addTarget(targets.prometheus(
datasource = ds.prometheus,
expr = 'sum(publishing_queue_queued_size{})',
refId = "pub_msgs_queue_size",
datasource = ds.prometheus,
expr = 'publishing_queue_queued_size',
legendFormat = "r{{aws_ecs_task_revision}}"
))
}

0 comments on commit f304db5

Please sign in to comment.