grafana fixes
This commit is contained in:
parent
dda2eb921a
commit
697c814648
@ -22,3 +22,7 @@ bun start
|
|||||||
The provided docker-compose file sets up a PostgreSQL server and a Grafana instance.
|
The provided docker-compose file sets up a PostgreSQL server and a Grafana instance.
|
||||||
There is also a Grafana dashboard JSON file for an example use of the data.
|
There is also a Grafana dashboard JSON file for an example use of the data.
|
||||||
Make sure to import the `server/schema.sql` into PostgreSQL before using it.
|
Make sure to import the `server/schema.sql` into PostgreSQL before using it.
|
||||||
|
You can import the datasource into grafana with the command:
|
||||||
|
```sh
|
||||||
|
curl -X "POST" "http://localhost:3000/api/datasources" -H "Content-Type: application/json" --user admin:admin --data-binary @grafana-datasource.json
|
||||||
|
```
|
||||||
|
@ -846,7 +846,7 @@
|
|||||||
"timepicker": {},
|
"timepicker": {},
|
||||||
"timezone": "browser",
|
"timezone": "browser",
|
||||||
"title": "Field Day Contest",
|
"title": "Field Day Contest",
|
||||||
"uid": "fdpbhdsbrhs74f",
|
"uid": "arrlfielddaycontest",
|
||||||
"version": 11,
|
"version": 11,
|
||||||
"weekStart": ""
|
"weekStart": ""
|
||||||
}
|
}
|
||||||
|
26
grafana-datasource.json
Normal file
26
grafana-datasource.json
Normal file
@ -0,0 +1,26 @@
|
|||||||
|
{
|
||||||
|
"id": 1,
|
||||||
|
"uid": "edpbbm8hqv9j4e",
|
||||||
|
"orgId": 1,
|
||||||
|
"name": "PostgreSQL",
|
||||||
|
"type": "grafana-postgresql-datasource",
|
||||||
|
"typeName": "PostgreSQL",
|
||||||
|
"typeLogoUrl": "public/app/plugins/datasource/grafana-postgresql-datasource/img/postgresql_logo.svg",
|
||||||
|
"access": "proxy",
|
||||||
|
"url": "postgres:5432",
|
||||||
|
"user": "fdlogup",
|
||||||
|
"secureJsonData": {"password": "fdlogup"},
|
||||||
|
"database": "",
|
||||||
|
"basicAuth": false,
|
||||||
|
"isDefault": true,
|
||||||
|
"jsonData": {
|
||||||
|
"connMaxLifetime": 14400,
|
||||||
|
"database": "fdlogup",
|
||||||
|
"maxIdleConns": 100,
|
||||||
|
"maxIdleConnsAuto": true,
|
||||||
|
"maxOpenConns": 100,
|
||||||
|
"postgresVersion": 1600,
|
||||||
|
"sslmode": "disable"
|
||||||
|
},
|
||||||
|
"readOnly": false
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user