Grafana
Introduction
This is a quick page to note about setup of Grafana
CA Cert
The CA Cert is configured against the datasource. You cut and paste the rootCA.pem. Otherwise you get the error
client: failed to call resources: error querying resource: Post \"https://192.168.1.220:9090/api/v1/labels\": tls: failed to verify certificate: x509: certificate signed by unknown authority
Data Frames
Gosh it is all lingo. This is what grafana refers to for it internal layout.
{
"status": "success",
"data": {
"resultType": "matrix",
"result": [
{
"metric": {
"__name__": "caddy_requests_by_5min",
"bucket": "1752712500",
"instance": "192.168.1.220:8080",
"job": "bibble-caddy-exporter",
"site": "wiki.bibble.co.nz"
},
"values": [
[
1752719700,
"123"
]
]
},
{
"metric": {
"__name__": "caddy_requests_by_5min",
"bucket": "1752712800",
"instance": "192.168.1.220:8080",
"job": "bibble-caddy-exporter",
"site": "wiki.bibble.co.nz"
},
"values": [
[
1752719700,
"118"
]
]
},
]
}
}
View a data frame this would look like this.
Time (Unix) | Value | Bucket | Site | Instance | Job |
---|---|---|---|---|---|
1752719700 | 123 | 1752712500 | wiki.bibble.co.nz | 192.168.1.220:8080 | bibble-caddy-exporter |
1752719700 | 118 | 1752712800 | wiki.bibble.co.nz | 192.168.1.220:8080 | bibble-caddy-exporter |