Create grafana section for configuration
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
This commit is contained in:
parent
4b14f334f6
commit
d6063d84e4
@ -1,15 +1,5 @@
|
|||||||
[DEFAULT]
|
[DEFAULT]
|
||||||
|
|
||||||
#
|
|
||||||
# From grafyaml
|
|
||||||
#
|
|
||||||
|
|
||||||
# URL for grafana server. (string value)
|
|
||||||
#url = http://grafana.example.org
|
|
||||||
|
|
||||||
# API key for access grafana. (string value)
|
|
||||||
#apikey =
|
|
||||||
|
|
||||||
#
|
#
|
||||||
# From oslo.log
|
# From oslo.log
|
||||||
#
|
#
|
||||||
@ -95,3 +85,16 @@
|
|||||||
# The format for an instance UUID that is passed with the log message.
|
# The format for an instance UUID that is passed with the log message.
|
||||||
# (string value)
|
# (string value)
|
||||||
#instance_uuid_format = "[instance: %(uuid)s] "
|
#instance_uuid_format = "[instance: %(uuid)s] "
|
||||||
|
|
||||||
|
|
||||||
|
[<oslo_config.cfg.OptGroup object at 0x274f350>]
|
||||||
|
|
||||||
|
#
|
||||||
|
# From grafyaml
|
||||||
|
#
|
||||||
|
|
||||||
|
# URL for grafana server. (string value)
|
||||||
|
#url = http://grafana.example.org
|
||||||
|
|
||||||
|
# API key for access grafana. (string value)
|
||||||
|
#apikey =
|
||||||
|
@ -28,11 +28,13 @@ grafana_opts = [
|
|||||||
help='API key for access grafana.'),
|
help='API key for access grafana.'),
|
||||||
]
|
]
|
||||||
|
|
||||||
grafana_group = None
|
grafana_group = cfg.OptGroup(
|
||||||
|
name='grafana', title='Grafana options')
|
||||||
list_opts = lambda: [(grafana_group, grafana_opts), ]
|
list_opts = lambda: [(grafana_group, grafana_opts), ]
|
||||||
|
|
||||||
CONF = cfg.CONF
|
CONF = cfg.CONF
|
||||||
CONF.register_opts(grafana_opts)
|
CONF.register_group(grafana_group)
|
||||||
|
CONF.register_opts(grafana_opts, group='grafana')
|
||||||
|
|
||||||
|
|
||||||
class Builder(object):
|
class Builder(object):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user