Skip to content

Commit

Permalink
fix(o11y): fixing lables for chain abstraction Grafana panels (#928)
Browse files Browse the repository at this point in the history
  • Loading branch information
geekbrother authored Feb 4, 2025
1 parent de98805 commit 1584590
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,14 @@ local targets = grafana.targets;
title = 'Gas estimations',
datasource = ds.prometheus,
)
.configure(defaults.configuration.timeseries)
.configure(
defaults.configuration.timeseries
.withSpanNulls(true)
)
.addTarget(targets.prometheus(
datasource = ds.prometheus,
expr = 'sum by(chain_id) (rate(gas_estimation_sum[$__rate_interval])) / sum by(chain_id) (rate(gas_estimation_count[$__rate_interval]))',
legendFormat = 'Gas estimation',
exemplar = false,
legendFormat = '__auto',
))
}
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ local targets = grafana.targets;
.addTarget(targets.prometheus(
datasource = ds.prometheus,
expr = 'sum(increase(ca_insufficient_funds_total{}[$__rate_interval]))',
exemplar = false,
legendFormat = 'Insufficient funds responses counter',
))
}
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ local targets = grafana.targets;
.addTarget(targets.prometheus(
datasource = ds.prometheus,
expr = 'sum by(type) (increase(ca_no_bridging_needed_total{}[$__rate_interval]))',
legendFormat = 'No bridging needed responses counter',
exemplar = false,
legendFormat = '__auto',
))
}
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ local targets = grafana.targets;
.addTarget(targets.prometheus(
datasource = ds.prometheus,
expr = 'sum by(route) (increase(ca_no_routes_found_total{}[$__rate_interval]))',
legendFormat = 'No routes responses counter',
exemplar = false,
legendFormat = '__auto',
))
}

0 comments on commit 1584590

Please sign in to comment.