Giter VIP home page Giter VIP logo

dashboard's People

Contributors

alanb128 avatar balena-ci avatar chrisys avatar nucleardreamer avatar phil-d-wilson avatar rahul-thakoor avatar tmigone avatar

Stargazers

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

Watchers

 avatar  avatar  avatar  avatar

dashboard's Issues

Continuously look for new measurements and fields

Currently the dashboard block has to be restarted in order to force a scan for new measurements and fields. We should poll this on some interval or hook if possible, to add new information to the dashboards as soon as it is available.

Add a "data summary" panel

As a user I want to be shown my RAW data when I open the auto-generated dashboard, so that I can see what the values look like, and work out how I want to visualise it.

Upgrade Grafana version to 7.3.0

The current Grafana version (7.1.3) is very old. Some plugins I want to use, eg marcusolsson-json-datasource is not compatible with this version of Grafana.

For my purposes, version 7.3.0 suffices, but Grafana itself is already on 8.2.2. An upgrade to that version might need additional changes, whereas an upgrade to 7.3.0 should work with this changing the version in download.sh.
There are also later 7.x versions, but I have not tried whether they will work.

Failed to generate API key

There is an edge case which can cause dashboard to fail to generate a dashboard, due to a failure to create an API key.

Repro steps

  • Deploy an app using dashboard
  • Move a device from an app already using dashboard

Expected behaviour

The device moves to the new app, downloads the containers and generates a dashboard

Actual behaviour

Starting dashboard sync, checking APIs...
Could not generate API key (this is bad)
APIs available, proceeding...
Synchronizing dashboard for mqtt_consumer
Traceback (most recent call last):
  File "/usr/src/app/update-dashboards.py", line 17, in <module>
    grafana_dash_gen.sync_dashboard(measurement)
  File "/usr/src/app/grafana_dash_gen.py", line 99, in sync_dashboard
    if self.load_existing_dashboard(data['name']):
  File "/usr/src/app/grafana_dash_gen.py", line 156, in load_existing_dashboard
    req.add_header('Authorization', 'Bearer ' + self.apikey)
TypeError: can only concatenate str (not "NoneType") to str

Create workflow for providing provisioned dashboards

Allow users to supplement the auto-generated dashboards with their own pre-created ones. In the case of Grafana this can be implemented by providing .json dashboard files within the provisioning/dashboards folder.

How to provision dashboard with own configuration files, when using dashboard image

Hi,

I'm currently doing the following in a docker-compose file:

...
  dashboard:
    image: bh.cr/balenalabs/dashboard
    restart: always
    hostname: dashboard
    volumes:
        - 'dashboard-data:/data'
    ports:
        - '80'
  browser:
    image: bh.cr/balenalabs/browser-aarch64 # where <arch> is one of aarch64, arm32 or amd64
    privileged: true # required for UDEV to find plugged in peripherals such as a USB mouse
    ports:
        - '5011' # management API (optional)
        - '35173' # Chromium debugging port (optional)
    volumes:
      - 'settings:/data' # Only required if using PERSISTENT flag (see below)
    environment:
      - LAUNCH_URL=http://dashboard
...

I can see in the Dockerfile for bh.cr/balenalabs/dashboard, there is the following line:

COPY ./provisioning /usr/share/grafana/conf/provisioning

I'm unsure with docker, how I specify my own yml files, when using your image, or is that not possible?

I did try cloning and modifying this repo, and referencing it from my docker-compose.yml, however I seemed to get issues -

[Logs]    [2023-10-05T14:51:56.378Z] [dashboard] sh: /lib/aarch64-linux-gnu/libc.so.6: version `GLIBC_2.33' not found (required by sh)

Many thanks!

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.