isaozler / grafana-shift-selector

The shift selector allows you to adjust the time range of your grafana dashboard to one specific shift or a range of shifts.
Apache License 2.0
8 stars 6 forks source link

How to use your plugin #1

Closed KOCIU22 closed 2 years ago

KOCIU22 commented 2 years ago

Hello i don't have much experience with mysql can you explain how to use your plugin i have prepare datasource with values but what too do next ? meybe you can prepare some short movie about configuration in grafana ?

image

image

Best Regard Luke

baur commented 2 years ago

Please, look read README file

The plugin works fine! you can use constant variables without a database

Just add the next variable:

image with next value:

{
  "static": {
    "shifts": [
      {
        "group": "Group 1",
        "group_uuid": "group_uuid_1",
        "uuid": "shift_uuid_1",
        "label": "Morning Custom",
        "startTime": "06:00:00",
        "endTime": "14:00:00",
        "order": 1
      },
      {
        "group": "Group 2",
        "group_uuid": "group_uuid_2",
        "uuid": "shift_uuid_2",
        "label": "Afternoon Custom",
        "startTime": "14:00:00",
        "endTime": "22:00:00",
        "order": 1
      },
      {
        "group": "Group 2",
        "group_uuid": "group_uuid_2",
        "uuid": "shift_uuid_3",
        "label": "Night Custom",
        "startTime": "22:00:00",
        "endTime": "06:00:00",
        "order": 2
      }
    ]
  }
}