chronograf icon indicating copy to clipboard operation
chronograf copied to clipboard

define dashboards via a directory/file structure.

Open james-lawrence opened this issue 9 years ago • 6 comments

be nice to be able to define dashboards into a folder that gets loaded at startup. version control/ease of deployment. reduces operational cost of running the tick stack such as ensuring db backups/restores etc.

../dashboards/example/dashboard.meta
../dashboards/example/graph1.graph
../dashboards/example/graph2.graph
../dashboards/example/graph3.graph
../dashboards/example/table1.table

james-lawrence avatar Apr 11 '17 12:04 james-lawrence

noticed the canned directory, that is more or less what I was interested in being able to define but have it be a directory the user can specify and add files to.

james-lawrence avatar Oct 23 '17 15:10 james-lawrence

Hi @james-lawrence, I'm happy to hear that!

Chronograf as the --canned-path= command line options (or $CANNED_PATH env var) to help you define where those files go:

https://docs.influxdata.com/chronograf/v1.3/administration/configuration/#c-canned-path

goller avatar Oct 26 '17 13:10 goller

@james-lawrence a workaround for the version control would be to GET the resources you want saved from the server.

You can use $HOST/docs for documentation on the ReST API also https://github.com/influxdata/chronograf/blob/master/docs is a good reference

nhaugo avatar Oct 26 '17 13:10 nhaugo

Hi @james-lawrence , it's been a while, but, I've just submitted PR #2593 that allows dashboards to be hosted from files!

goller avatar Dec 15 '17 15:12 goller

Cool, will take a look. Was looking into updating chronograph today. And reconfiguring it, will check this out sometime the next two weeks.

On Dec 15, 2017 10:01 AM, "Chris Goller" [email protected] wrote:

Hi @james-lawrence https://github.com/james-lawrence , it's been a while, but, I've just submitted PR #2593 https://github.com/influxdata/chronograf/pull/2593 that allows dashboards to be hosted from files!

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/influxdata/chronograf/issues/1243#issuecomment-352026897, or mute the thread https://github.com/notifications/unsubscribe-auth/ACtFn-auJ1YMih7Am4r8baSyK0OQRSopks5tAomugaJpZM4M6BRT .

james-lawrence avatar Dec 15 '17 16:12 james-lawrence

• We will need the ability to define a data source from a file • Both this new file and the org file will need to support pulling in env variables • The org file should be able to reference source definitions • Also ensure that sources can have kapaictors added to them • Deprecate the --new-sources command line flag

nhaugo avatar Dec 19 '17 19:12 nhaugo