33![ CI] ( https://github.com/tribe29/grafana-checkmk-datasource/actions/workflows/node.js.yml/badge.svg )
44
55This Data Source allows you to query checkmk metrics. It is a complete rewrite
6- of the previous connector to match newer grafana versions.
6+ of the previous connector to match newer grafana versions. This plugin is on
7+ the alpha testing stage.
78
8- Due to the breaking changes in this plugin, it is at the moment a complete
9- separate plugin. Later on we will provide with an update setup.
10-
11- This plugin is still on the prototyping stage. Things will break or change
12- without any notice. Specially your configured panel can break as the internal
13- data-structure that stores them is still changing.
9+ Due to the breaking changes in this plugin, it is a complete separate plugin. We
10+ provide an update utility, although not all features from the previous connector
11+ are available. Those are some single metrics and annotations.
1412
1513This plugin id is: ` tribe-29-grafana-checkmk-datasource `
1614
1715## Requirements
1816
19- You require checkmk on master patched with branch ` sandbox/on/filterSplit ` (but it was most tested on master) and 7.0<=Grafana<8.2
17+ You require checkmk nightly build from the master branch and 7.0<=Grafana<8.2
18+
19+ Since Grafana 8.2, plugins loaded diffently and the connector fails to load.
20+ Please help us with your setup on Issue #52 for us to debug further. We know
21+ that Grafana 8.3.4 on a docker container has worked for us, yet we don't yet
22+ know why.
2023
2124## Getting started
2225
@@ -79,13 +82,13 @@ plugin.
7982Save & Test will check if the User authenticates and the data source is
8083reachable.
8184
82- ## Current state of development
85+ ## Current state
8386
8487- Service graph works on RAW & CEE
8588- Single metric for the moment now works only on CEE
8689- Combined graphs remains CEE only
8790- Dropped "Label Format" option. Prefer Grafana overrrides.
88- - [ ] Annotations are not usable yet
91+ - Annotations are not usable yet
8992
9093### Combined graphs
9194
@@ -96,27 +99,39 @@ reachable.
9699 - Service exact match
97100 - Service Regex
98101 - Host labels multi select
102+ - Host groups
103+ - Service groups
104+ - Host Tags
105+
106+ ### Minor annoyances
99107
100- #### Minor annoyances
101-
102- - Due to limitations of the Grafana UI Select components. Host, Service, Metric
103- & Graph dropdowns do not trigger a search when opening the dropdown. You must
104- type something to trigger the search. Pressing the arrow keys would not
105- trigger. Either write your text or press the space bar to trigge an
106- unconstrained search.
107- - Graph query only re triggers when selecting the graph recipe. That
108- inconveniently means after changing aggregation you need to at least
109- touch/select a "graph" to trigger the query for time series data.
110- - Changing any filters does not trigger a query. That can be changed in the
111- future. For know please press the refresh icon on the top right of the graph
112- to retrigger the query with all your changes applied.
113108- When selecting a Filter. The focus jumps to the next Filter dropdown menu
114109 instead of the more intuitive focus on the selected filter itself.
110+ - Composed single metrics are not available anymore. E.g. from the Filesystem
111+ service "Free space" is a composed metric being the difference between "Total
112+ Size" and "Used Space".
113+
114+ ## Updating from the previous connector
115+
116+ We provide a Python script ` utils/converter.py ` which will update the Grafana
117+ Sqlite database from the old connector setup to the new one. In that process it
118+ will go over all the dashboards and create a new version of them with the
119+ updated connector. PLEASE BACKUP THIS FILE BEFORE UPDATING.
120+
121+ 1 . Install and configure this new connector. Take note of the name you give it
122+ and take note of which name you gave the old connector. In this example we call them "Latest cmk connector" and "checkmk".
123+ 2 . Stop your Grafana instance and backup the file ` grafana.db `
124+ 3 . Use the ` converter.py ` script, it has a ` -h ` option to remind you of the
125+ usage. To update from the previous datasource "checkmk" into this new
126+ connector "Latest cmk connector" on the ` grafana.db ` file, execute:
127+
128+ ``` BASH
129+ python3 converter.py -o " checkmk" -n " Latest cmk connector" -db grafana.db
130+ ```
115131
116- ### Foreseen work under consideration
132+ If any of the two datasources is your default datasource, omit that option on
133+ the command. This script will go over all your dashboards, it might take some
134+ time because it also queries information from your checkmk site, and that
135+ communication takes time.
117136
118- - Use of host tag, including builtin ones
119- - Add a filters for labels and hostgroups
120- - Don't reset/empty fields after a change, if old selections are compatible with
121- change. E.g. Changing hostname should not remove Service "CPU load" if new
122- host also has that service.
137+ 4 . After the update completes start your Grafana server again.
0 commit comments