NEWS
BackItUp für InfluxDB
-
@massiveattack dann musst du @simatec mal um Hilfe bitten
-
-
@massiveattack Laut Doku hat sich da nichts in Grafana geändert ...
Der code 404 sagt "not found" aus.https://grafana.com/docs/grafana/latest/http_api/dashboard/#get-dashboard-by-uid
Zeige mal die Config deiner API-Keys und die von Backitup
-
@simatec said in BackItUp für InfluxDB:
Zeige mal die Config deiner API-Keys und die von Backitup
was meinst du mit config? wie?
-
-
@massiveattack Als Grafana User für das Backup bitte nur den Admin von Grafana verwenden ...
Zeige mal, wie du in Grafana den APIKey angelegt hast
-
-
@massiveattack Wie gesagt in Backitup den Admin von Grafana als User eintragen ...
-
@simatec
habe alle user, alle apis gelöscht. nur der "admin" is aktiv, neue api namens "admin" erzeugt, im backitup so eingetragen. leider der selbe fehler... -
@massiveattack Was ist denn in der Backupdatei alles drin?
-
es wird keine erstellt
-
Was geben folgenden Konsolenbefehle bei dir aus?
curl -k -H "Authorization: Bearer deinAPIKey" http://deineIP:3000/api/search
curl -s "http://deineIP:3000/api/datasources" -u admin:deinPasswort
-
@simatec said in BackItUp für InfluxDB:
Was geben folgenden Konsolenbefehle bei dir aus?
curl -k -H "Authorization: Bearer deinAPIKey" http://deineIP:3000/api/search
[{"id":6,"uid":"H0MPaYZRz","title":"ENERGY","uri":"db/energy","url":"/d/H0MPaYZRz/energy","slug":"","type":"dash-db","tags":[],"isStarred":false,"sortMeta":0},{"id":4,"uid":"92wFUskRz","title":"HEATPUMP","uri":"db/heatpump","url":"/d/92wFUskRz/heatpump","slug":"","type":"dash-db","tags":[],"isStarred":false,"sortMeta":0},{"id":5,"uid":"bJgHQszRk","title":"WEATHER","uri":"db/weather","url":"/d/bJgHQszRk/weather","slug":"","type":"dash-db","tags":[],"isStarred":false,"sortMeta":0}]
curl -s "http://deineIP:3000/api/datasources" -u admin:deinPasswort
[{"id":1,"uid":"21vzeokgz","orgId":1,"name":"ioBroker","type":"influxdb","typeName":"InfluxDB","typeLogoUrl":"public/app/plugins/datasource/influxdb/img/influxdb_logo.svg","access":"proxy","url":"http://192.168.0.80:8086","password":"","user":"root","database":"iobroker","basicAuth":false,"isDefault":true,"jsonData":{},"readOnly":false},{"id":2,"uid":"KeyuCGRRz","orgId":1,"name":"MetaQueries","type":"goshposh-metaqueries-datasource","typeName":"goshposh-metaqueries-datasource","typeLogoUrl":"public/img/icn-datasource.svg","access":"proxy","url":"","password":"","user":"","database":"","basicAuth":false,"isDefault":false,"jsonData":{},"readOnly":false}]
-
curl -H "Authorization: Bearer eyJrIjoiU3Zmd0p0N2h5VVhGZW1OSDk2MmJJSjhreWJpNDgyNloiLCJuIjoiYWRtaW4iLCJpZCI6MX0=" http://192.168.0.10 :3000/api/dashboards/home {"meta":{"isHome":true,"canSave":false,"canEdit":true,"canAdmin":false,"canStar":false,"slug":"","url":"","expires":"0001-01-01T00:00:00Z","created":"0001-01-01T00:00:00Z","updated":"0001-01-01T00:00:00Z","updatedBy":"","createdBy":"","version":0,"hasAcl":false,"isFolder":false,"folderId":0,"folderUid":"","folderTitle":"General","folderUrl":"","provisioned":false,"provisionedExternalId":""},"dashboard":{"links":[],"panels":[{"datasource":null,"gridPos":{"h":3,"w":24,"x":0,"y":0},"id":1,"title":"","transparent":false,"type":"welcome"},{"datasource":null,"folderId":0,"gridPos":{"h":15,"w":12,"x":0,"y":4},"headings":true,"id":3,"limit":30,"links":[],"options":{},"query":"","recent":true,"search":false,"starred":true,"tags":[],"title":"Dashboards","type":"dashlist"},{"datasource":null,"gridPos":{"h":15,"w":12,"x":12,"y":4},"id":4,"links":[],"options":{"feedUrl":"https://grafana.com/blog/news.xml"},"title":"Latest from the blog","type":"news"},{"gridPos":{"h":9,"w":24,"x":0,"y":3},"id":123123,"type":"gettingstarted"}],"schemaVersion":22,"tags":[],"templating":{"list":[]},"time":{"from":"now-6h","to":"now"},"timepicker":{"hidden":true,"refresh_intervals":["5s","10s","30s","1m","5m","15m","30m","1h","2h","1d"],"time_options":["5m","15m","1h","6h","12h","24h","2d","7d","30d"],"type":"timepicker"},"timezone":"browser","title":"Home"}}
-
@massiveattack sagte in BackItUp für InfluxDB:
energy
Was gibt folgender Befehl aus?
curl -k -H "Authorization: Bearer deinAPIKEY" http://deineIP/api/dashboards/db/energy
-
{"message":"Not found"}
-
sorry Port vergessen
curl -k -H "Authorization: Bearer deinAPIKEY" http://deineIP:3000/api/dashboards/db/energy
-
ich habe es eh richtig abgefragt mit port, er findet nix
-
@massiveattack
Dann liegt dein Problem in Grafana selber.
Mit dem Befehl solltest du die json deines energy Dashboard als Ausgabe bekommen -
@simatec
ja, aber was genau ist der fehler? ist es ein berechtigungsproblem? kann er die db nicht finde? wo müsste das liegen?