Update scripts README table formatting
This commit is contained in:
@@ -9,7 +9,7 @@ result to Grafana.
|
||||
## Files
|
||||
|
||||
| File | What it is | Edit it? |
|
||||
|---|---|---|
|
||||
| ------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------- |
|
||||
| `configs/grafana/dashboard-base.json` | Hand-authored: BGP table, ports table, throughput graphs, `site`/`device` variables, layout. Has one reserved slot panel (`title: "__WEATHERMAP_SLOT__"`) where the weathermap gets spliced in. | Yes, directly |
|
||||
| `configs/grafana/weathermap-dashboard.json` | Generated build artifact — base + fresh weathermap panel, merged. What actually gets provisioned. | No — regenerate instead |
|
||||
|
||||
@@ -36,7 +36,7 @@ hook), so re-running is a manual step for now.
|
||||
## Credentials
|
||||
|
||||
| Value | Env var | Get it from the UI | Get it via API |
|
||||
|---|---|---|---|
|
||||
| ----------------------------- | ----------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------ |
|
||||
| IPFabric token | `IPFABRIC_TOKEN` | IPFabric → user menu → Settings → API Tokens → Add token | not possible, UI-only |
|
||||
| Grafana service account token | `GRAFANA_TOKEN` | Grafana → Administration → Service accounts → Add → give it **Editor** role → Add token | possible but multi-step (create account, then create token under it) — UI is simpler |
|
||||
| Prometheus datasource UID | `GRAFANA_DATASOURCE_UID` | Grafana → Connections → Data sources → open the one with gnmic data → UID is the last part of the URL | `curl -s -H "Authorization: Bearer $GRAFANA_TOKEN" "$GRAFANA_URL/api/datasources" \| jq '.[] \| {name,uid}'` |
|
||||
@@ -72,7 +72,7 @@ curl -s -X POST -H "Authorization: Bearer $GRAFANA_TOKEN" -H "Content-Type: appl
|
||||
## Troubleshooting
|
||||
|
||||
| Symptom | Cause | Check |
|
||||
|---|---|---|
|
||||
| ---------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------ |
|
||||
| `Refusing to provision: set GRAFANA_DATASOURCE_UID...` | Env var unset | `echo $GRAFANA_DATASOURCE_UID` |
|
||||
| Panel renders with no data | Wrong datasource — can't see gnmic metrics | Explore → run `up` against it, confirm gnmic series come back |
|
||||
| `Base dashboard has no panel titled '__WEATHERMAP_SLOT__'` | Someone edited `dashboard-base.json` and renamed/removed that panel | Check panel `id: 1` still has that exact title |
|
||||
@@ -82,7 +82,7 @@ curl -s -X POST -H "Authorization: Bearer $GRAFANA_TOKEN" -H "Content-Type: appl
|
||||
## Environment variables
|
||||
|
||||
| Variable | Required | Default |
|
||||
|---|---|---|
|
||||
| ------------------------------ | ------------------ | ------------------------------------- |
|
||||
| `IPFABRIC_URL` | yes | — |
|
||||
| `IPFABRIC_TOKEN` | yes | — |
|
||||
| `IPFABRIC_SNAPSHOT` | no | `$last` |
|
||||
|
||||
Reference in New Issue
Block a user