Skip to content
Snippets Groups Projects
Commit 50d324d8 authored by Doug Szumski's avatar Doug Szumski
Browse files

Organise and update grafana-conf role variables

parent b191dc70
No related branches found
No related tags found
No related merge requests found
...@@ -10,8 +10,15 @@ grafana_local_admin_user_name: "grafana_admin" ...@@ -10,8 +10,15 @@ grafana_local_admin_user_name: "grafana_admin"
# https://github.com/stackhpc/grafana-reference-dashboards.git # https://github.com/stackhpc/grafana-reference-dashboards.git
grafana_monitoring_node_dashboard_repo: grafana_monitoring_node_dashboard_repo:
# Dashboard repo version. Optional, defaults to 'HEAD'.
grafana_monitoring_node_dashboard_repo_version:
# Path to which Grafana dashboards will be cloned to a monitoring node # Path to which Grafana dashboards will be cloned to a monitoring node
grafana_monitoring_node_dashboard_repo_path: "{{ source_checkout_path ~ '/grafana' }}" grafana_monitoring_node_dashboard_repo_checkout_path: "{{ source_checkout_path ~ '/grafana-dashboards' }}"
# The path, relative to the grafana_monitoring_node_dashboard_repo_checkout_path
# containing the dashboards. Eg. /prometheus/control_plane
grafana_monitoring_node_dashboard_repo_path:
# The Grafana organisation for the control plane. Note that for Monasca # The Grafana organisation for the control plane. Note that for Monasca
# Grafana with domain support the format is: # Grafana with domain support the format is:
...@@ -35,8 +42,4 @@ grafana_control_plane_organisation: "control_plane" ...@@ -35,8 +42,4 @@ grafana_control_plane_organisation: "control_plane"
# #
grafana_datasources: {} grafana_datasources: {}
# The path, relative to the grafana_monitoring_node_dashboard_repo_path
# containing the dashboards. Eg. /prometheus/control_plane
grafana_monitoring_node_dashboard_path:
############################################################################### ###############################################################################
...@@ -33,8 +33,9 @@ ...@@ -33,8 +33,9 @@
grafana_conf_grafana_admin_user: "{{ grafana_local_admin_user_name }}" grafana_conf_grafana_admin_user: "{{ grafana_local_admin_user_name }}"
grafana_conf_grafana_admin_pass: "{{ grafana_admin_password }}" grafana_conf_grafana_admin_pass: "{{ grafana_admin_password }}"
grafana_conf_grafana_dashboard_repo: grafana_conf_grafana_dashboard_repo:
path: "{{ grafana_monitoring_node_dashboard_repo }}" repo: "{{ grafana_monitoring_node_dashboard_repo }}"
checkout_path: "{{ grafana_monitoring_node_dashboard_repo_path }}" version: "{{ grafana_monitoring_node_dashboard_repo_version }}"
relative_path: "{{ grafana_monitoring_node_dashboard_path }}" checkout_path: "{{ grafana_monitoring_node_dashboard_repo_checkout_path }}"
relative_path: "{{ grafana_monitoring_node_dashboard_repo_path }}"
grafana_conf_grafana_url: "http://{{ kolla_internal_vip_address }}:3000" grafana_conf_grafana_url: "http://{{ kolla_internal_vip_address }}:3000"
grafana_conf_grafana_datasources: "{{ grafana_datasources }}" grafana_conf_grafana_datasources: "{{ grafana_datasources }}"
...@@ -10,7 +10,14 @@ ...@@ -10,7 +10,14 @@
# https://github.com/stackhpc/grafana-reference-dashboards.git # https://github.com/stackhpc/grafana-reference-dashboards.git
#grafana_monitoring_node_dashboard_repo: #grafana_monitoring_node_dashboard_repo:
# Dashboard repo version. Optional, defaults to 'HEAD'.
#grafana_monitoring_node_dashboard_repo_version:
# Path to which Grafana dashboards will be cloned to a monitoring node # Path to which Grafana dashboards will be cloned to a monitoring node
#grafana_monitoring_node_dashboard_repo_checkout_path:
# The path, relative to the grafana_monitoring_node_dashboard_repo_checkout_path
# containing the dashboards. Eg. /prometheus/control_plane
#grafana_monitoring_node_dashboard_repo_path: #grafana_monitoring_node_dashboard_repo_path:
# The Grafana organisation for the control plane. Note that for Monasca # The Grafana organisation for the control plane. Note that for Monasca
...@@ -18,8 +25,8 @@ ...@@ -18,8 +25,8 @@
# organisation_name@openstack_domain # organisation_name@openstack_domain
#grafana_control_plane_organisation: #grafana_control_plane_organisation:
# A list of datasources to configure. See the stackhpc.grafana-conf role # A dict of datasources to configure. See the stackhpc.grafana-conf role
# for a list of supported datasources. Example: # for all supported datasources. Example:
# #
# grafana_datasources: # grafana_datasources:
# monasca_api: # monasca_api:
...@@ -35,10 +42,6 @@ ...@@ -35,10 +42,6 @@
# #
#grafana_datasources: #grafana_datasources:
# The path, relative to the grafana_monitoring_node_dashboard_repo_path
# containing the dashboards. Eg. /prometheus/control_plane
#grafana_monitoring_node_dashboard_path:
############################################################################### ###############################################################################
# Dummy variable to allow Ansible to accept this file. # Dummy variable to allow Ansible to accept this file.
workaround_ansible_issue_8743: yes workaround_ansible_issue_8743: yes
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment