Commit Graph

11 Commits

Author SHA1 Message Date
Ian Wienand 878b20898d Drop Python 2 support
This has bit-rotted as libraries have updated to Python 3 only.

Switch to hacking; some minor changes to regex-strings is all that is
required.

Drop py27 markers and move to Python 3 only.  Update requirements.

Depends-On: https://review.opendev.org/737666
Change-Id: Iabf201965129b3284166e1aedcb9f1c9d6109077
2020-06-24 11:52:23 +10:00
Andy Ladjadj 67f55d53d6 Add capability to use grafana folderid parameter
- retro-compatibility with default folder 'General' == 0
 - add to config file with folderid key in grafana section
 - add to cmd with --grafana-folderid

Change-Id: Iebfc5613f4c622d3d49d2f34df77ad3695f6b046
2019-02-26 21:25:37 +00:00
akrzos 2cee4f2908 Add Grafana URL and API Key to GrafYaml CLI
This will allow the use of GrafYaml called from Ansible without
deploying a GrafYaml config file.  With Ansible we can use the template
module to deploy a jinja2 templated GrafYaml dashboard for more
flexibility.

Change-Id: I61a7142c3177681681dcbfe5c889f4c3d59f8ec4
2018-01-15 09:17:05 -05:00
Mathieu Gagné 0941f4e3b0 Add support for multiple config paths
Help messages mention support for multiple config paths separated by colons.
Yet this feature is not implemented. This change implements it.

Change-Id: Ieb99cba98c9cf775765eacd4ebadfbccfa815a65
2016-06-07 16:44:32 -04:00
Jenkins 84a2b25e06 Merge "Add delete command to CLI" 2015-10-23 14:28:22 +00:00
Paul Belanger 6316206005 Disable cache for cmd testcases
Right now, we don't actually need a cache for our current tests, so
for now we'll disable it.  Future cmd tests, will enable this making
sure we have the proper coverage.

Change-Id: If7a25c3281fd57257473054348555aa06b5b6d95
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2015-10-19 22:09:56 -04:00
Paul Belanger fd76590e4b Add delete command to CLI
Add the ability to delete dashboards based on the provided yaml file.
We also removed the assert_dashboard_exists function, as it didn't
really save us code.

Change-Id: I417a72fcc5252b36cadfe8881b4f5ca6acb7c753
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2015-10-16 11:33:32 -04:00
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 2cb88da1e8 Break out cmd testcases into seperate files
We are currently lacking some basic coverage for grafana-dashboards
command. This break is cosmetic but will allow future patchsets to
expand on it.

Change-Id: Idf80ac28b1d5aafac1b10305db26db4e766838c6
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2015-10-05 13:03:17 -04:00
Paul Belanger 609733c116 Add the ability to parse directories
Change-Id: I0ff6c803608d91e04b8e40750265157d3f4f7530
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2015-10-01 13:36:58 -04:00
Paul Belanger f4b18fdd74 Add validate command
Like JJB, Zuul and Nodepool, we need to have a CLI command to validate
our configuration files.

Change-Id: I4ccac21a2d77917667e1e844ab9ee1f1f281ea9f
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2015-10-01 09:59:21 -04:00