Search
Grafana - Manage changes between multiple environments
cross-posted from: https://lemmy.ml/post/5653264
I'm using Grafana for one of my hobby projects which is also deployed to a public-facing server.
I am the only user of Grafana as it is supposed to be read-only for anonymous access.
My current workflow is:
- Run Grafana locally.
- Make changes to local dashboards, data-sources, ...
- Stop local Grafana.
- Stop remote Grafana.
- Copy local
grafana.db
to the remote machine.- Start remote Grafana.
- Goto (1)
However this feels terribly inefficient and stupid to my mind 😅
To automate parts of this process, I tried gdg and grafana-backup-tool.
I couldn't get the former to work w/ my workflow (local storage) as it barfed at the very start w/ the infamous "invalid cross-device link" Go error.
The latter seems to work but only partially; for example organisations are not exported.
Prometheus - Convert series to gauge
Update
Turned out I didn't need to convert any series to gauges at all!
The problem was that I had botched my Prometheus configuration and it wasn't ingesting the probe results properly 🤦♂️ Once I fixed that, I got all the details I needed.
For posterity you can view lemmy-meter's configuration on github.
cross-posted from: https://lemmy.ml/post/5114491
I'm using blackbox_exporter to monitor a dozen of websites' performance. And that is working just fine for measuring RTT and error rates.
I'm thinking about creating a single gauge for each website indicating whether it is up or down.
I haven't been able to find any convincing resource as to if it is mathematically correct to convert such series to guages/counters - let alone how to do that.
So my questions are
- Have I missed a relevant optio