Uploaded image for project: 'Subscription Watch'
  1. Subscription Watch
  2. SWATCH-2306

Create grafana dashboard for PAYG metrics

XMLWordPrintable

      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.

              jcarvaja@redhat.com Jose Carvajal Hilario
              khowell@redhat.com Kevin Howell
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: