Add Grafana dashboards as IaC (local + cloud) #26
No reviewers
Labels
No labels
IaC
admin
agent-containers
automation
blockchain
cleanup
data
documentation
hardware
hotfix
infrastructure
maintenance
metrics
ml
monitoring
networking
resilience
security
tailscale
trading
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
midwitmoneymgmt/m3-infra!26
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "27-grafana-dashboards-iac"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
What
Adds three official Grafana dashboards as Infrastructure-as-Code, deployed to both the local Grafana instance (
10.121.25.33:3000) and Grafana Cloud (alexcaswen.grafana.net) from the same JSON source files.Dashboards
Changes
versions.tf:
grafana/grafanaprovider (~> 3.0)local(monitoring container) andcloud(Grafana Cloud)grafana.tf:
GRAFANA_LOCAL_AUTH,GRAFANA_CLOUD_AUTH)M3 Infrastructurefolder created on both instancesgrafana_dashboardresources, all referencing the same JSON filesdashboards/*.json:
incus.json— official Incus dashboard (104KB)erigon.json— official Erigon dashboard, sanitized to replace hardcoded datasource UID per erigontech/erigon#6994bitcoin.json— Bitcoin exporter dashboardSetup Required Before Merge
10.121.25.33:3000)alexcaswen.grafana.net)GRAFANA_LOCAL_AUTH= local Grafana service account tokenGRAFANA_CLOUD_AUTH= Grafana Cloud service account token-var="grafana_local_auth=$GRAFANA_LOCAL_AUTH" -var="grafana_cloud_auth=$GRAFANA_CLOUD_AUTH"to thetofu planandtofu applycommands in.gitlab-ci.ymlFuture
grafana_rule_groupresourcesgrafana_notification_policyRelated: #27
added 1 commit
da183908- Fix: add empty defaults to Grafana auth variablesCompare with previous version
added 1 commit
e0a9761e- Fix variable description to match corrected Grafana IPCompare with previous version
added 1 commit
b58b1b70- Use uppercase variable names to match CI variable naming conventionCompare with previous version
added 1 commit
d8740a1e- Update provider blocks to reference uppercase variable namesCompare with previous version
added 1 commit
81c249db- Fix erigon dashboard: ASCII-safe UTF-8 encodingCompare with previous version
added 1 commit
77ca1190- Fix incus dashboard: ASCII-safe UTF-8 encodingCompare with previous version
added 1 commit
a4c614d1- Fix dashboard JSONs: ensure ASCII-safe UTF-8 encodingCompare with previous version
added 1 commit
5094bec6- Fetch dashboards from canonical sources instead of storing JSONCompare with previous version
added 1 commit
20df5020- Remove stored dashboard JSONs (now fetched at plan time)Compare with previous version
added 1 commit
e1735182- Remove erigon dashboard JSONCompare with previous version
added 1 commit
bac0f6dc- Remove incus dashboard JSONCompare with previous version
added 1 commit
0ee0567c- Add hashicorp/http provider for dashboard data sourcesCompare with previous version
added 1 commit
cdef4468- Revert to file() for dashboard JSONsCompare with previous version
added 1 commit
d3c05005- Remove hashicorp/http provider (no longer needed)Compare with previous version
added 1 commit
deb2222e- Add new directoryCompare with previous version
added 1 commit
503150c9- Upload New FileCompare with previous version
added 1 commit
2cae7021- Edit 11274_revlatest.jsonCompare with previous version
added 1 commit
ab10cc7d- Upload New FileCompare with previous version
added 1 commit
4a81a697- Edit 19727_revlatest.jsonCompare with previous version
added 1 commit
9991fea4- Upload New FileCompare with previous version
mentioned in commit
aa7f1a93d5mentioned in merge request !27