grafana-rrd-server
grafana-rrd-server copied to clipboard
Can not get any data inside Grafana
Hi,
thanks for this tool.
I could successfully add the grafana-rrd-server as a new Data-Source in Grafana v7.3.2.
But when I want to add a query, there are no entries shown.

I used even your sample files for testing, but still no success. Here my configuration:
copied example files directly to the server (for testing purposes) name@server:~/go/bin$ ls annotations.csv grafana-rrd-server percent-idle.rrd percent-user.rrd sample.rrd
starting grafana-rrd-server name@server:~/go/bin$ sudo ./grafana-rrd-server -p 9000 -s 60 -r ./ -a ./annotations.csv
On a manual call with a webbrowser at the /search site: http://192.168.x.17:9000/search the grafana-rrd-server gives following output:
name@server:~/go/bin$ ./grafana-rrd-server -p 9000 -s 60 -r ./ -a ./annotations.csv ERROR: Cannot decode the request EOF Updating search cache.
As URL for the Grafana Simple JSON Datasource I used "192.168.x.17:9000". Must there be defined any name behind the port? Can you give me any hints? Thanks!
I'm having a similar issue. I'm not getting anything from /search except for a []
I'm stuck because it seems not to pick up the rrd files. Any input would be great.
I'm running on Ubuntu 18
I get the same issue on centos8 when call /search request
I am now using another software: https://github.com/famzah/rrd-json-grafana-ds/ But I had a similar issue with this software: https://github.com/famzah/rrd-json-grafana-ds/issues/2 In short: I could solve the problem by using another webbrowser Chrome. After configuring in Chrome it worked also in Firefox. For further information please have a look at the second link.
I am now using another software: https://github.com/famzah/rrd-json-grafana-ds/ But I had a similar issue with this software: famzah/rrd-json-grafana-ds#2 In short: I could solve the problem by using another webbrowser Chrome. After configuring in Chrome it worked also in Firefox. For further information please have a look at the second link.
Thanks for reply. I solve issue by using docker image juliogonzalez/grafana-rrd-server or using release 0.5.0 but rrd server don't read last point from rrd ( but rrdtool does it) and I have delay 5 min in graphics in grafana. Do you get same problem with rrd-json-grafana-ds?
Thanks for reply. I solve issue by using docker image juliogonzalez/grafana-rrd-server or using release 0.5.0 but rrd server don't read last point from rrd ( but rrdtool does it) and I have delay 5 min in graphics in grafana. Do you get same problem with rrd-json-grafana-ds?
I was able to use the docker image to solve the problem, but would prefer not to have that overhead. I don't mind the 5 minute delay so that's not an issue for me. I'm using nginx so had quite a few issues with rrd-json-grafana-ds. In any case I'm here and now with the docker image using this. If I can provide any details to help troubleshoot let me know.
At least I know my data source and rrd files were all working as they should.
same here
thanks for the hint to get back to 0.0.5, it works.
the main change in HEAD seems the addition of a cache
it seems to fail for everyone.
The problem appears to be that search for an empty string returns an empty list, instead of all keys, which one would expect. This patch fixes the problem:
diff --git a/rrdserver.go b/rrdserver.go
index 4c9980b..4252b27 100644
--- a/rrdserver.go
+++ b/rrdserver.go
@@ -197,11 +197,9 @@ func search(w http.ResponseWriter, r *http.Request) {
var result = []string{}
- if target != "" {
- for _, path := range searchCache.Get() {
- if strings.Contains(path, target) {
- result = append(result, path)
- }
+ for _, path := range searchCache.Get() {
+ if target == "" || strings.Contains(path, target) {
+ result = append(result, path)
}
}