cstanislawski / grafana-db-exporter

Export your ClickOps'ed Grafana dashboards into the repository
Apache License 2.0
1 stars 0 forks source link

add periodic sync mode #24

Open cstanislawski opened 2 months ago

cstanislawski commented 2 months ago

currently grafana-db-exporter only supports single docker run / cronjob (job) mode, it needs to be evaluated whether the continuous mode mode can be supported, i.e. we should periodically check for changes/track dashboards and upload any changes to the repo

this would have to support:

Additionally to consider:

mode name to be decided, proposals: proactive, reactive, continuous, stream, live, watch, dynamic

cstanislawski commented 2 months ago

having slept with it I think continuous mode is the most accurate & self-descriptive

cstanislawski commented 1 month ago

having thought about it I don't think it's worth implementing as the continuous mode would just go to sleep for most of the run time, so it'd be a cronjob that is running continuously

it'd also require architecture, whereas you can just run the exporter every h or so if you really need it

seems like an antipattern - closing

cstanislawski commented 1 month ago

I forgot that docker doesn't support cron-like functionality and people would have to jump through hoops to make it work

The point about this feature not being needed in terms of k8s clusters still stands though

cstanislawski commented 3 weeks ago

I think considering that most of the time the exporter will sleep, a better name for this mode will be periodic