Add An Infra
This assumes you have already created your Grafana instance.
This process is typically part of the Creating a New Infra Platform process. |
You will need to log in to Grafana with an adminstrative user.
Create the organisation(s)
Name | Purpose | Comments |
---|---|---|
|
Autogenerated dashboards from signal properties mqtt messsages |
Required |
|
Generated dashboards from custom dashboard mqtt messages |
Deprecated: new custom dashboards will probably be created differently, so I won’t document this further |
Make a note of the OrgId. If it is not immediately visible, you can find it under Server Admin > Orgs .
|
Configure the Organisation
In Grafana, first switch to the Organisation if you are not already in it.
Create an API Key for the organisation(s)
-
Go to
Configuration > API Keys > Add API Key
-
Name the key
dashboard_generator
and give itadmin
privileges
Make a note of the generated key; this is the api_key we need for the infra ansible configuration
|
Set the Datasource
-
Go to
Configuration > Datasources > Add data source
-
Select
InfluxDB
-
Set the following configuration:
Field | Comments | Value |
---|---|---|
|
It helps if you include the infra name in this. You can even use the dbname if you want to be super clear |
e.g. |
|
The url for the influx instance. This can vary depending on the age of the infra. As long as it resolves to the correct server it will work. |
e.g. |
|
Leave this as-is |
|
|
The database name in Influx |
Conventionally, |