Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
benzekrimaha committed May 10, 2024
1 parent e571a38 commit 3d4f8d5
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 6 deletions.
6 changes: 3 additions & 3 deletions monitoring/dashboard.json
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@
"targets": [
{
"datasource": null,
"expr": "sum(rate(count_items_bucketProcessingDuration_count{namespace=\"${namespace}\", job=~\"$job\"}[$__rate_interval])))",
"expr": "sum(rate(count_items_bucketProcessingDuration_count{namespace=\"${namespace}\", job=~\"${job}\"}[$__rate_interval])))",
"format": "time_series",
"hide": false,
"instant": false,
Expand All @@ -157,7 +157,7 @@
"target": ""
}
],
"title": "Average latencies",
"title": "bucket count duration",
"transformations": [],
"transparent": false,
"type": "timeseries"
Expand All @@ -169,7 +169,7 @@
"sharedCrosshair": false,
"style": "dark",
"tags": [
"Vault"
"S3Utils"
],
"templating": {
"list": []
Expand Down
18 changes: 15 additions & 3 deletions monitoring/dashboard.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,25 @@
)

bucketCountDuration = TimeSeries(
title="Average latencies",
title="bucket count duration",
dataSource="${DS_PROMETHEUS}",
lineInterpolation="smooth",
spanNulls=3*60*1000,
unit=UNITS.SECONDS,
targets=[Target(
expr='sum(rate(count_items_bucketProcessingDuration_count{namespace="${namespace}", job=~"$job"}[$__rate_interval])))',
expr='sum(rate(count_items_bucketProcessingDuration_count{namespace="${namespace}", job=~"${job}"}[$__rate_interval])))',
legendFormat='{{namespace}} - {{job}}'
)],
)

consolidationDuration = TimeSeries(
title="consolidation duration",
dataSource="${DS_PROMETHEUS}",
lineInterpolation="smooth",
spanNulls=3*60*1000,
unit=UNITS.SECONDS,
targets=[Target(
expr='sum(rate(count_items_consolidationDuration_count{namespace="${namespace}", job=~"${job}"}[$__rate_interval]))',
legendFormat='{{namespace}} - {{job}}'
)],
)
Expand All @@ -41,7 +53,7 @@
title="S3Utils service",
editable=True,
refresh="30s",
tags=["Vault"],
tags=["S3Utils"],
timezone="",
inputs=[
DataSourceInput(
Expand Down

0 comments on commit 3d4f8d5

Please sign in to comment.