Grafana versions supporting Macropower Analytics Plugin
Hello,
Does Grafana 11.1.0 OSS support working of Macropower Analytics Plugin 2.1.0? I tried using default GO Analytics Server, but it looks like it doesn't keep/store collected analytics properly. When I try to send metrics from plugin widget, after scraping Analytics Server with Prometheus I don't see proper analytics as I expected. I even tested pushing metrics using CURL and it didn't resulted as I expected (curl -ik -H "Content-Type: application/json" https://mydomain:8080/write -XPOST -d '{"datasource": {"type": "prometheus", "uid": "1smKE39nk"}, "gridPos": {"h": 8, "w": 12, "x": 0, "y": 0}, "id": 2, "options": {"analyticsOptions": { "server": "https://mydomain:8080/write", "dashboard": "$__dashboard", "showDetails": true, "postStart": true, "postEnd": false, "postHeartbeat": false, "heartbeatInterval": 60, "heartbeatAlways": false, "flatten": false}}, "title": "Analytics", "type": "macropower-analytics-panel"}').
The payload you're sending here does not look correct at all, it seems like you're trying to send the JSON for adding/configuring a panel to the /write endpoint. The /write endpoint only accepts telemetry payloads: https://github.com/MacroPower/macropower-analytics-panel/blob/master/server/payload/payload.go#L11
That said, I think the last major version of Grafana I tested with was 10.x so it's possible that something is broken in 11.x