Can you update dashboard panels through HTTP requests?

Hi,
I updated the config file to point to 3000 and restarted the service on the server. Still no dice with the dashboard…
Thanks, Noelle

What do the last few lines of your Grafana log file tell you now?

Does the service appear to be actually starting?

Are you able to get a login prompt when you point a browser at
http://gra.fana.ser.ver:3000 ?

Do you have any manually configured dashboards on the server - do they display
okay in a browser, before adding the complexity of an auto-provisoned one?

Antony.

This is what we’re seeing from the log file.

image

It seems the provisioning isn’t working properly because it can’t find the dashboard folder but we can’t figure out why. I’m attaching images of the paths portions of our default.ini and custom.ini.

Default:
image

Custom:
image

I’m also attaching a screenshot of the grafana folders. We added the dashboard json file to the var/lib/grafana/dasboards path but I don’t know if that is properly set up?

image
image

We have our dashboard.yaml file in the provisioning/dashboards folder but since the provisioning is ending prior to reaching this folder it isn’t being referenced. I’m not sure it is set up correctly either.

image
image

Any insight?

My guess is that the problem is a combination of:

a) some paths being specified using / as the separator and some using \

b) some paths being absolute (starting with \ or /) and some being relative
(not starting with \ or /)

c) the fact that you’re on a Windows system and most of the documentation
assumes Linux.

So, as a starting point, try making all the paths consistent - use / as the
separator throughout, with no instances of , and also make them all relative
(ie: remove any / at the start of the path name).

If that doesn’t work, try making all paths absolute (ie: starting with
C:/Grafana/…) and see if that gets you any further.

Regards,

Antony.

t=2019-07-15T08:48:17-0600 lvl=info msg="Config loaded from" logger=settings file=C:\\Grafana/conf/defaults.ini
t=2019-07-15T08:48:17-0600 lvl=info msg="Config loaded from" logger=settings file=C:\\Grafana\\conf\\custom.ini
t=2019-07-15T08:48:17-0600 lvl=info msg="Path Home" logger=settings path=C:\\Grafana
t=2019-07-15T08:48:17-0600 lvl=info msg="Path Data" logger=settings path=C:\\Grafana\\data
t=2019-07-15T08:48:17-0600 lvl=info msg="Path Logs" logger=settings path=C:\\Grafana\\data\\log
t=2019-07-15T08:48:17-0600 lvl=info msg="Path Plugins" logger=settings path=C:\\Grafana\\data\\plugins
t=2019-07-15T08:48:17-0600 lvl=info msg="Path Provisioning" logger=settings path=C:\\Grafana\\conf\\provisioning
t=2019-07-15T08:48:17-0600 lvl=info msg="App mode development" logger=settings
t=2019-07-15T08:48:17-0600 lvl=info msg="Ldap enabled, reading config file" logger=ldap file=C:\\Grafana\\conf\\ldap.toml
t=2019-07-15T08:48:17-0600 lvl=info msg="Initializing HTTPServer" logger=server
t=2019-07-15T08:48:17-0600 lvl=info msg="Initializing SqlStore" logger=server
t=2019-07-15T08:48:17-0600 lvl=info msg="Connecting to DB" logger=sqlstore dbtype=mysql
t=2019-07-15T08:48:17-0600 lvl=info msg="Starting DB migration" logger=migrator
t=2019-07-15T08:48:17-0600 lvl=info msg="Initializing SearchService" logger=server
t=2019-07-15T08:48:17-0600 lvl=info msg="Initializing RenderingService" logger=server
t=2019-07-15T08:48:17-0600 lvl=info msg="Initializing AlertingService" logger=server
t=2019-07-15T08:48:17-0600 lvl=info msg="Initializing DatasourceCacheService" logger=server
t=2019-07-15T08:48:17-0600 lvl=info msg="Initializing HooksService" logger=server
t=2019-07-15T08:48:17-0600 lvl=info msg="Initializing InternalMetricsService" logger=server
t=2019-07-15T08:48:17-0600 lvl=info msg="Initializing CleanUpService" logger=server
t=2019-07-15T08:48:17-0600 lvl=info msg="Initializing NotificationService" logger=server
t=2019-07-15T08:48:17-0600 lvl=info msg="Initializing ProvisioningService" logger=server
t=2019-07-15T08:48:17-0600 lvl=info msg="Initializing PluginManager" logger=server
t=2019-07-15T08:48:17-0600 lvl=info msg="Starting plugin search" logger=plugins
t=2019-07-15T08:48:17-0600 lvl=info msg="Registering plugin" logger=plugins name="Datatable Panel"
t=2019-07-15T08:48:17-0600 lvl=info msg="Registering plugin" logger=plugins name="D3 Gauge"
t=2019-07-15T08:48:17-0600 lvl=info msg="Registering plugin" logger=plugins name="Azure Data Explorer Datasource"
t=2019-07-15T08:48:17-0600 lvl=info msg="Registering plugin" logger=plugins name=Drill
t=2019-07-15T08:48:18-0600 lvl=info msg="Registering plugin" logger=plugins name=SimpleSql
t=2019-07-15T08:48:18-0600 lvl=info msg="Registering plugin" logger=plugins name=Diagram
t=2019-07-15T08:48:18-0600 lvl=info msg="Registering plugin" logger=plugins name=Discrete
t=2019-07-15T08:48:18-0600 lvl=info msg="Registering plugin" logger=plugins name=Plotly
t=2019-07-15T08:48:18-0600 lvl=info msg="Registering plugin" logger=plugins name=Heatmap
t=2019-07-15T08:48:18-0600 lvl=info msg="Initializing TracingService" logger=server
t=2019-07-15T08:48:18-0600 lvl=eror msg="can't read dashboard provisioning files from directory" logger=provisioning.dashboard path=C:\\Grafana\\conf\\provisioning/dashboards
t=2019-07-15T08:48:18-0600 lvl=info msg="Initializing Stream Manager"
t=2019-07-15T08:48:18-0600 lvl=info msg="HTTP Server Listen" logger=http.server address=0.0.0.0:80 protocol=http subUrl= socket=

We’re having trouble locating where the

logger=provisioning.dashboard path=C:\Grafana\conf\provisioning/dashboards

portion of this message is coming from. We don’t have the provisioning/dashboards pathway set anywhere in either of our custom or default ini files. We can’t find where it is trying to access that pathway since it isn’t specified in either of those files but we believe that is the issue.