-
Story
-
Resolution: Done
-
Major
-
None
In order to view these aggregated, we'll add to our grafana dashboard.
First we'll add dashboard variables tracking product, metric_id and billing_provider label values from swatch_tallies_total, using a query such as label_values(
swatch_tally_tallied_usage_total, product).
Then we'll add a row for the "Metered end-to-end stats", and place a "Stat" panel inside. The stat panel should be set to repeat for each product, and it should show:
Metered $metric_id: $value
Tallied $metric_id: $value
Covered by contract $metric_id: $value
Billing Pending $metric_id: $value
Remitted $metric_id: $value
We also need a graph to display the values for each day. A query like this can be used, setting the date range to 90 days:
sum(increase(swatch_tally_tallied_usage_total[1d])) by (product, metric_id, billing_provider_id)
Done:
- Dashboard visible in grafana.
- is blocked by
-
SWATCH-2297 Add a metric for ingested usage data from Prometheus
-
- Closed
-
-
SWATCH-2299 Add a metric for usage tallied
-
- Closed
-
-
SWATCH-2300 Add a metric for usage covered by a contract
-
- Closed
-
-
SWATCH-2301 Add a metric for usage considered billable
-
- Closed
-
-
SWATCH-2302 Add a metric to swatch-producer-aws for metered usage
-
- Closed
-
-
SWATCH-2303 Add a metric to swatch-producer-azure for metered usage
-
- Closed
-
-
SWATCH-2304 Add a metric for usage aggregated per hour
-
- Closed
-