Skip to content

agardnerIT/perses-python-cli

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

perses-python-cli

Python CLI to create and manage Perses dashboards.

Available Parameters

  • --dashboard-name
  • --dashboard-path (optional. defaults to current directory)
  • --project-name (optional. defaults to proj1)
  • --dashboard-version (optional. defaults to 0)
  • --duration (optional. defaults to 1h)
  • --refresh-interval (optional. defaults to 0s)
  • --dry-run (optional. defaults to False)
  • --debug (optional. defaults to False)
  • --version (prints version of this CLI and exits)

Examples

Create a dashboard

This is the minimal working example. Relies on above defaults.

  • Download binary from releases.
  • Rename it to persescli
  • Make it executable and add to PATH.

Create a dashboard called foo and save it as ./foo.json

./persescli --dashboard-name foo

Create dashboard which belongs to project1, defaults to a duration of 6h and a refresh interval of 10s:

./persescli --dashboard-name=foo --project-name=project1 --duration=6h --refresh-interval=10s

About

Python CLI to create and manage Perses dashboards

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages