Giter Site home page Giter Site logo

ezienecker / grafana-sidecar-folder-sample Goto Github PK

View Code? Open in Web Editor NEW
15.0 15.0 2.0 324 KB

Installs the web dashboarding system Grafana with sidecar support. Additionally add dashboards from configmaps to specific folders in grafana.

grafana grafana-dashboard helm helm-chart monitoring

grafana-sidecar-folder-sample's Introduction

Hi there ๐Ÿ‘‹

grafana-sidecar-folder-sample's People

Contributors

ezienecker avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

grafana-sidecar-folder-sample's Issues

dashboards not being assigned to folders

hi,
thanks for the guide,
I still have a problem maybe you will know how to fix

I add the config like you wrote

          dashboardProviders:
            dashboardproviders.yaml:
              apiVersion: 1
              providers:
              - name: "Inventory Summary"
                orgId: 1
                folder: "edge"
                type: file
                disableDeletion: false
                editable: false
                options:
                  path: /tmp/dashboards/inventory

and add the anotatin to the cm

apiVersion: v1
kind: ConfigMap
metadata:
  name: inventory-dashboards
  labels:
    grafana_dashboard: "1"
  annotations:
    k8s-sidecar-target-directory: "/tmp/dashboards/inventory"
data:
{{ (.Files.Glob "custom-dashboards/inventory/*.json" ).AsConfig | indent 2 }}

and the logs seem right

Working on configmap staging/inventory-dashboards
Found a folder override annotation, placing the inventory-dashboards in: /tmp/dashboards/inventory
File in configmap Inventory_Summary.json ADDED

but when I go to the UI I see only empty folders (except the general)

what can it be that I am missing?

Error ```insufficient privileges``` when using configmap

Hi

I tried it this way, but I'm struggling a bit.

This is my config map:
https://github.com/tuxpeople/k8s-homelab/blob/master/cluster/apps/media/plex-exporter/grafana-dashboard.yaml

And this my Grafana deployment:
https://github.com/tuxpeople/k8s-homelab/blob/master/cluster/apps/monitoring/grafana/helm-release.yaml

I'm ending up with this error, saying me that grafana has not sufficient permissions on a folder Grafana created itself:

$ kubectl logs -n monitoring grafana-c6df564f9-ks4mr -c grafana-sc-dashboard 
[...]
[2021-10-25 11:49:41] Working on ADDED configmap media/plex-exporter-dashboard
[2021-10-25 11:49:41] Found a folder override annotation, placing the plex-exporter-dashboard in: /var/lib/grafana/dashboards/fun
[2021-10-25 11:49:41] Error: insufficient privileges to create /var/lib/grafana/dashboards/fun. Skipping plex-exporter-dashboard.json.
[2021-10-25 11:49:41] Received unknown exception: unsupported operand type(s) for |=: 'bool' and 'NoneType'

Traceback (most recent call last):
  File "/app/resources.py", line 237, in _watch_resource_loop
    _watch_resource_iterator(*args)
  File "/app/resources.py", line 216, in _watch_resource_iterator
    files_changed |= _process_config_map(dest_folder, item, resource, unique_filenames, enable_5xx,
  File "/app/resources.py", line 126, in _process_config_map
    files_changed |= _iterate_data(
  File "/app/resources.py", line 153, in _iterate_data
    files_changed |= _update_file(
TypeError: unsupported operand type(s) for |=: 'bool' and 'NoneType'
[...]

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.