Merge "Add docs for grafana-dashboards command"

This commit is contained in:
Jenkins 2015-10-01 14:25:55 +00:00 committed by Gerrit Code Review
commit a61e30d33b
4 changed files with 62 additions and 9 deletions

View File

@ -0,0 +1,53 @@
=================
grafana-dashboard
=================
SYNOPSIS
========
``grafana-dashboard`` [options] <command> [<args>...]
DESCRIPTION
===========
``grafana-dashboard`` is a CLI command to update Grafana dashboards from yaml
files.
OPTIONS
=======
-h, --help Show the help.
--config-dir DIR Path to a config directory to pull \*.conf files from. This
file set is sorted, so as to provide a predictable parse
order if individual options are over-ridden. The set is
parsed after the file(s) specified via previous
--config-file, arguments hence over-ridden options in the
directory take precedence.
--config-file PATH Path to a config file to use. Multiple config files can be
specified, with values in later files taking precedence. The
default files used are: None.
-d, --debug Print debugging output(set logging level to DEBUG
instead of default WARNING level).
-v, --verbose Print more verbose output (set logging level to INFO
instead of default WARNING level).
--version Show program's version number and exit.
COMMANDS
========
Update Command
--------------
``grafana-dashboard`` [options] update <path>
Updates each specified dashboard to the lastest layout from parsed yaml files.
FILES
=====
/etc/grafyaml/grafyaml.conf
AUTHOR
======
.. include:: ../../AUTHORS

View File

@ -1,20 +1,18 @@
.. grafyaml documentation master file, created by
sphinx-quickstart on Tue Jul 9 22:26:36 2013.
You can adapt this file completely to your liking, but it should at least
contain the root `toctree` directive.
Welcome to grafyaml's documentation!
========================================================
====================================
Contents:
.. include:: ../../README.rst
Contents
========
.. toctree::
:maxdepth: 2
readme
installation
usage
contributing
grafana-dashboard
Indices and tables
==================

View File

@ -1 +0,0 @@
.. include:: ../../README.rst

View File

@ -36,5 +36,8 @@ oslo.config.opts =
grafyaml.builder = grafana_dashboards.builder:list_opts
grafyaml.cache = grafana_dashboards.cache:list_opts
[pbr]
warnerrors = True
[upload_sphinx]
upload-dir = doc/build/html