margaretmm / myblog

my tech blog
0 stars 1 forks source link

使用pgwatch2 的Docker , 监控报表无DB监控数据问题 #3

Open margaretmm opened 6 years ago

margaretmm commented 6 years ago

-----Set up the Influx datasource as default-------

Use the Grafana UI (Admin -> Data sources) or adjust and execute the "pgwatch2/bootstrap/grafana_datasource.sql"

-----------------------------grafana_datasource.sql---------------------------------------- insert into data_source (org_id, version, type, name, access, url, password, "user", database, basic_auth, is_default, json_data, created, updated ) values ( 1, 0, 'influxdb', 'Influx', 'proxy', 'http://localhost:8086', 'root', 'root', 'pgwatch2', 'f', 't', '{}', now(), now() );

原因是可能你改了 数据源,或者默认数据源改成其他数据源了...