Commit Graph

8 Commits

Author SHA1 Message Date
Paul Belanger 4e643e5d06 Replace oslo_config dependency with argparse
This is for the same reasoning as oslo_log. We don't want to depending
on OpenStack libraries.

Change-Id: I34e66af578d3f4b5ac5e710554aad91524285816
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2015-10-09 10:12:57 -04:00
Paul Belanger 3a66817727 Replace oslo_log dependency with standard logging
When I first started grafyaml, I wanted to better understand how
existing OpenStack libraries worked. So, with that in mind, I choose
oslo_log as the logging class for this program.  However, now that we
have imported it under openstack-infra, we don't really want to depend
on OpenStack libraries, incase there is a breakage.  The main reason
for this, if OpenStack libraries break, we still want the
infrastructure to work so we can fix the problem.

Change-Id: Iee9b1d9d9abb4da4d285531b64a7e2505240be12
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2015-10-06 09:15:20 -04:00
Paul Belanger 103a882cbf Add caching support
Like we do with JJB, we create a md5sum of the dashboard then cache
it.  This is a simple way to determine if a yaml file has changed.

Change-Id: If7b80b84c5bbcb0d30b0325bae6b8e726bb2f41b
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2015-09-29 11:34:31 -04:00
Paul Belanger 8029107fc8 The apikey is now optional
Grafana 2.1.0 added basic auth support. With that in mind, the api key
is now optional.

Change-Id: Ie186fa9ce48ca4ae222f75345e9b660f5ffa2909
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2015-09-23 14:55:34 -04:00
Paul Belanger 54a434732c Re-run tox -egenconfig to fix oslo.config bug
Change-Id: Iee4b41269c6343f0c2bfa36a7a5d570e5bcb179d
Depends-On: I946d55fcd713369dda4cdf490391a75901bded22
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2015-06-22 10:31:28 -04:00
Paul Belanger d6063d84e4 Create grafana section for configuration
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2015-05-06 16:45:17 -04:00
Paul Belanger 4b14f334f6 Add oslo.log for logging
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2015-05-06 16:01:03 -04:00
Paul Belanger 804f133d33 Add configuration file
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2015-05-06 15:40:12 -04:00