metric-collector-for-apache-cassandra icon indicating copy to clipboard operation
metric-collector-for-apache-cassandra copied to clipboard

K8s generated version of the Overview dashboard should reference the dependency on grafana-polystat-panel plugin

Open jakerobb opened this issue 5 years ago • 0 comments

dashboards/k8s-build/generated/grafana/overview.dashboard.yaml looks like this (I've omitted the JSON chunk for brevity):

apiVersion: integreatly.org/v1alpha1
kind: GrafanaDashboard
metadata:
  labels:
    app: grafana
  name: overview
spec:
  json: "{ ... }"
  name: overview.json
  url: https://raw.githubusercontent.com/datastax/metric-collector-for-apache-cassandra/master/dashboards/grafana/generated-dashboards/overview.json

But when you load the resulting dashboard, the polystat panel contains an error stating that you're missing a plugin. To resolve, the generated YAML should look like this (note three additional lines at the end):

apiVersion: integreatly.org/v1alpha1
kind: GrafanaDashboard
metadata:
  labels:
    app: grafana
  name: overview
spec:
  json: "{ ... }"
  name: overview.json
  url: https://raw.githubusercontent.com/datastax/metric-collector-for-apache-cassandra/master/dashboards/grafana/generated-dashboards/overview.json
  plugins:
    - name: grafana-polystat-panel
      version: 1.2.2

jakerobb avatar Nov 13 '20 16:11 jakerobb