Skip to content

Commit

Permalink
fix(dashboards): use rate_interval instead of interval (#278)
Browse files Browse the repository at this point in the history
* fix(dashboards): use rate_interval instead of interval

* address pr comments

* Update src/grafana_dashboards/alertmanager_rev5.json.tmpl

Co-authored-by: Mateusz Kulewicz <[email protected]>

* Update src/grafana_dashboards/alertmanager_rev5.json.tmpl

Co-authored-by: Mateusz Kulewicz <[email protected]>

* Update src/grafana_dashboards/alertmanager_rev5.json.tmpl

Co-authored-by: Mateusz Kulewicz <[email protected]>

* Update src/grafana_dashboards/alertmanager_rev5.json.tmpl

Co-authored-by: Mateusz Kulewicz <[email protected]>

* try to fix charmcraft pack

* add charm-binary-python-packages to fix build

---------

Co-authored-by: Mateusz Kulewicz <[email protected]>
  • Loading branch information
lucabello and mmkay authored Aug 12, 2024
1 parent 0e63574 commit aa12877
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 23 deletions.
2 changes: 1 addition & 1 deletion charmcraft.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,4 @@ bases:
channel: "20.04"
parts:
charm:
charm-binary-python-packages: [ops, PyYAML, cryptography, jsonschema]
charm-binary-python-packages: [ops, PyYAML, cryptography, jsonschema, pydantic, maturin]
Original file line number Diff line number Diff line change
Expand Up @@ -807,14 +807,14 @@
"steppedLine": false,
"targets": [
{
"expr": "sum(histogram_quantile(0.9,rate(alertmanager_notification_latency_seconds_bucket{instance=~\"$instance\"}[$__interval]))) by (integration)",
"expr": "sum(histogram_quantile(0.9,rate(alertmanager_notification_latency_seconds_bucket{instance=~\"$instance\"}[$__rate_interval]))) by (integration)",
"format": "time_series",
"intervalFactor": 1,
"legendFormat": "0.9q {{ integration }}",
"refId": "B"
},
{
"expr": "sum(histogram_quantile(0.99,rate(alertmanager_notification_latency_seconds_bucket{instance=~\"$instance\"}[$__interval]))) by (integration)",
"expr": "sum(histogram_quantile(0.99,rate(alertmanager_notification_latency_seconds_bucket{instance=~\"$instance\"}[$__rate_interval]))) by (integration)",
"format": "time_series",
"interval": "",
"intervalFactor": 1,
Expand Down Expand Up @@ -4700,7 +4700,7 @@
"steppedLine": false,
"targets": [
{
"expr": "histogram_quantile(1,rate(alertmanager_oversize_gossip_message_duration_seconds_bucket{instance=~\"$instance\"}[$__interval]))",
"expr": "histogram_quantile(1,rate(alertmanager_oversize_gossip_message_duration_seconds_bucket{instance=~\"$instance\"}[$__rate_interval]))",
"format": "time_series",
"hide": false,
"intervalFactor": 1,
Expand Down Expand Up @@ -4802,7 +4802,7 @@
"steppedLine": false,
"targets": [
{
"expr": "histogram_quantile(1,rate(alertmanager_oversize_gossip_message_duration_seconds_bucket{instance=~\"$instance\"}[$__interval]))",
"expr": "histogram_quantile(1,rate(alertmanager_oversize_gossip_message_duration_seconds_bucket{instance=~\"$instance\"}[$__rate_interval]))",
"format": "time_series",
"hide": false,
"intervalFactor": 1,
Expand Down Expand Up @@ -4904,7 +4904,7 @@
"steppedLine": false,
"targets": [
{
"expr": "histogram_quantile(1,rate(alertmanager_oversize_gossip_message_duration_seconds_bucket{instance=~\"$instance\"}[$__interval]))",
"expr": "histogram_quantile(1,rate(alertmanager_oversize_gossip_message_duration_seconds_bucket{instance=~\"$instance\"}[$__rate_interval]))",
"format": "time_series",
"hide": false,
"intervalFactor": 1,
Expand Down Expand Up @@ -5006,7 +5006,7 @@
"steppedLine": false,
"targets": [
{
"expr": "histogram_quantile(1,rate(alertmanager_oversize_gossip_message_duration_seconds_bucket{instance=~\"$instance\"}[$__interval]))",
"expr": "histogram_quantile(1,rate(alertmanager_oversize_gossip_message_duration_seconds_bucket{instance=~\"$instance\"}[$__rate_interval]))",
"format": "time_series",
"hide": false,
"intervalFactor": 1,
Expand Down Expand Up @@ -5987,7 +5987,7 @@
"steppedLine": false,
"targets": [
{
"expr": "histogram_quantile(1,rate(alertmanager_nflog_query_duration_seconds_bucket{instance=~\"$instance\"}[$__interval]))",
"expr": "histogram_quantile(1,rate(alertmanager_nflog_query_duration_seconds_bucket{instance=~\"$instance\"}[$__rate_interval]))",
"format": "time_series",
"intervalFactor": 1,
"legendFormat": "Nf log query duration",
Expand Down Expand Up @@ -6088,7 +6088,7 @@
"steppedLine": false,
"targets": [
{
"expr": "histogram_quantile(1,rate(alertmanager_nflog_query_duration_seconds_bucket{instance=~\"$instance\"}[$__interval]))",
"expr": "histogram_quantile(1,rate(alertmanager_nflog_query_duration_seconds_bucket{instance=~\"$instance\"}[$__rate_interval]))",
"format": "time_series",
"intervalFactor": 1,
"legendFormat": "Nf log query duration",
Expand Down Expand Up @@ -6189,7 +6189,7 @@
"steppedLine": false,
"targets": [
{
"expr": "histogram_quantile(1,rate(alertmanager_nflog_query_duration_seconds_bucket{instance=~\"$instance\"}[$__interval]))",
"expr": "histogram_quantile(1,rate(alertmanager_nflog_query_duration_seconds_bucket{instance=~\"$instance\"}[$__rate_interval]))",
"format": "time_series",
"intervalFactor": 1,
"legendFormat": "Nf log query duration",
Expand Down Expand Up @@ -6290,7 +6290,7 @@
"steppedLine": false,
"targets": [
{
"expr": "histogram_quantile(1,rate(alertmanager_nflog_query_duration_seconds_bucket{instance=~\"$instance\"}[$__interval]))",
"expr": "histogram_quantile(1,rate(alertmanager_nflog_query_duration_seconds_bucket{instance=~\"$instance\"}[$__rate_interval]))",
"format": "time_series",
"intervalFactor": 1,
"legendFormat": "Nf log query duration",
Expand Down Expand Up @@ -6793,7 +6793,7 @@
"steppedLine": false,
"targets": [
{
"expr": "rate(alertmanager_nflog_snapshot_duration_seconds_sum{instance=~\"$instance\"}[$__interval]) / rate(alertmanager_nflog_snapshot_duration_seconds_sum{instance=~\"$instance\"}[$__interval])",
"expr": "rate(alertmanager_nflog_snapshot_duration_seconds_sum{instance=~\"$instance\"}[$__rate_interval]) / rate(alertmanager_nflog_snapshot_duration_seconds_sum{instance=~\"$instance\"}[$__rate_interval])",
"format": "time_series",
"hide": false,
"intervalFactor": 1,
Expand Down Expand Up @@ -6895,7 +6895,7 @@
"steppedLine": false,
"targets": [
{
"expr": "rate(alertmanager_nflog_snapshot_duration_seconds_sum{instance=~\"$instance\"}[$__interval]) / rate(alertmanager_nflog_snapshot_duration_seconds_sum{instance=~\"$instance\"}[$__interval])",
"expr": "rate(alertmanager_nflog_snapshot_duration_seconds_sum{instance=~\"$instance\"}[$__rate_interval]) / rate(alertmanager_nflog_snapshot_duration_seconds_sum{instance=~\"$instance\"}[$__rate_interval])",
"format": "time_series",
"hide": false,
"intervalFactor": 1,
Expand Down Expand Up @@ -6997,7 +6997,7 @@
"steppedLine": false,
"targets": [
{
"expr": "rate(alertmanager_nflog_snapshot_duration_seconds_sum{instance=~\"$instance\"}[$__interval]) / rate(alertmanager_nflog_snapshot_duration_seconds_sum{instance=~\"$instance\"}[$__interval])",
"expr": "rate(alertmanager_nflog_snapshot_duration_seconds_sum{instance=~\"$instance\"}[$__rate_interval]) / rate(alertmanager_nflog_snapshot_duration_seconds_sum{instance=~\"$instance\"}[$__rate_interval])",
"format": "time_series",
"hide": false,
"intervalFactor": 1,
Expand Down Expand Up @@ -7099,7 +7099,7 @@
"steppedLine": false,
"targets": [
{
"expr": "rate(alertmanager_nflog_snapshot_duration_seconds_sum{instance=~\"$instance\"}[$__interval]) / rate(alertmanager_nflog_snapshot_duration_seconds_sum{instance=~\"$instance\"}[$__interval])",
"expr": "rate(alertmanager_nflog_snapshot_duration_seconds_sum{instance=~\"$instance\"}[$__rate_interval]) / rate(alertmanager_nflog_snapshot_duration_seconds_sum{instance=~\"$instance\"}[$__rate_interval])",
"format": "time_series",
"hide": false,
"intervalFactor": 1,
Expand Down Expand Up @@ -8459,7 +8459,7 @@
"steppedLine": false,
"targets": [
{
"expr": "histogram_quantile(1,rate(alertmanager_silences_query_duration_seconds_bucket{instance=~\"$instance\"}[$__interval]))",
"expr": "histogram_quantile(1,rate(alertmanager_silences_query_duration_seconds_bucket{instance=~\"$instance\"}[$__rate_interval]))",
"format": "time_series",
"hide": false,
"intervalFactor": 1,
Expand Down Expand Up @@ -8561,7 +8561,7 @@
"steppedLine": false,
"targets": [
{
"expr": "histogram_quantile(1,rate(alertmanager_silences_query_duration_seconds_bucket{instance=~\"$instance\"}[$__interval]))",
"expr": "histogram_quantile(1,rate(alertmanager_silences_query_duration_seconds_bucket{instance=~\"$instance\"}[$__rate_interval]))",
"format": "time_series",
"hide": false,
"intervalFactor": 1,
Expand Down Expand Up @@ -8663,7 +8663,7 @@
"steppedLine": false,
"targets": [
{
"expr": "histogram_quantile(1,rate(alertmanager_silences_query_duration_seconds_bucket{instance=~\"$instance\"}[$__interval]))",
"expr": "histogram_quantile(1,rate(alertmanager_silences_query_duration_seconds_bucket{instance=~\"$instance\"}[$__rate_interval]))",
"format": "time_series",
"hide": false,
"intervalFactor": 1,
Expand Down Expand Up @@ -8765,7 +8765,7 @@
"steppedLine": false,
"targets": [
{
"expr": "histogram_quantile(1,rate(alertmanager_silences_query_duration_seconds_bucket{instance=~\"$instance\"}[$__interval]))",
"expr": "histogram_quantile(1,rate(alertmanager_silences_query_duration_seconds_bucket{instance=~\"$instance\"}[$__rate_interval]))",
"format": "time_series",
"hide": false,
"intervalFactor": 1,
Expand Down Expand Up @@ -10103,7 +10103,7 @@
"steppedLine": false,
"targets": [
{
"expr": "rate(process_cpu_seconds_total{instance=~\"$instance\"}[$__interval])",
"expr": "rate(process_cpu_seconds_total{instance=~\"$instance\"}[$__rate_interval])",
"format": "time_series",
"groupBy": [
{
Expand Down Expand Up @@ -10247,7 +10247,7 @@
"steppedLine": false,
"targets": [
{
"expr": "rate(process_cpu_seconds_total{instance=~\"$instance\"}[$__interval])",
"expr": "rate(process_cpu_seconds_total{instance=~\"$instance\"}[$__rate_interval])",
"format": "time_series",
"groupBy": [
{
Expand Down Expand Up @@ -10391,7 +10391,7 @@
"steppedLine": false,
"targets": [
{
"expr": "rate(process_cpu_seconds_total{instance=~\"$instance\"}[$__interval])",
"expr": "rate(process_cpu_seconds_total{instance=~\"$instance\"}[$__rate_interval])",
"format": "time_series",
"groupBy": [
{
Expand Down Expand Up @@ -10535,7 +10535,7 @@
"steppedLine": false,
"targets": [
{
"expr": "rate(process_cpu_seconds_total{instance=~\"$instance\"}[$__interval])",
"expr": "rate(process_cpu_seconds_total{instance=~\"$instance\"}[$__rate_interval])",
"format": "time_series",
"groupBy": [
{
Expand Down

0 comments on commit aa12877

Please sign in to comment.