b865bada8c
This change allows access to InfluxDB via HAProxy on the internal network. If HA is required the Enterprise version of InfluxDB will need to be installed. This could be implemented by customising the InfluxDB Docker file. There are other alternatives to HA, such as the InfluxDB Relay [1]. Support for this is considered to be outside of the scope of this bugfix. [1] https://docs.openstack.org/developer/performance-docs/ methodologies/monitoring/influxha.html Closes-Bug: #1751283 Change-Id: I4624efbd99c0cddd1361f2438866ad3a82e5557b
56 lines
1.7 KiB
YAML
56 lines
1.7 KiB
YAML
---
|
|
project_name: "grafana"
|
|
|
|
grafana_services:
|
|
grafana:
|
|
container_name: grafana
|
|
group: grafana
|
|
enabled: true
|
|
image: "{{ grafana_image_full }}"
|
|
volumes:
|
|
- "{{ node_config_directory }}/grafana/:{{ container_config_directory }}/:ro"
|
|
- "/etc/localtime:/etc/localtime:ro"
|
|
- "grafana:/var/lib/grafana/"
|
|
- "kolla_logs:/var/log/kolla/"
|
|
|
|
####################
|
|
# Database
|
|
####################
|
|
grafana_database_name: "grafana"
|
|
grafana_database_user: "{% if use_preconfigured_databases | bool and use_common_mariadb_user | bool %}{{ database_user }}{% else %}grafana{% endif %}"
|
|
grafana_database_address: "{{ database_address }}:{{ database_port }}"
|
|
|
|
####################
|
|
# Datasource
|
|
####################
|
|
grafana_data_sources:
|
|
influxdb:
|
|
enabled: "{{ enable_influxdb | bool }}"
|
|
data:
|
|
isDefault: yes
|
|
database: "telegraf"
|
|
name: "telegraf"
|
|
type: "influxdb"
|
|
url: "{{ internal_protocol }}://{{ kolla_internal_vip_address }}:{{ influxdb_http_port }}"
|
|
access: "proxy"
|
|
basicAuth: false
|
|
elasticsearch:
|
|
enabled: "{{ enable_elasticsearch | bool }}"
|
|
data:
|
|
name: "elasticsearch"
|
|
type: "elasticsearch"
|
|
access: "proxy"
|
|
url: "{{ internal_protocol }}://{{ kolla_internal_vip_address }}:{{ elasticsearch_port }}"
|
|
database: "flog-*"
|
|
jsonData:
|
|
esVersion: 5
|
|
timeField: "@timestamp"
|
|
|
|
##########
|
|
# Grafana
|
|
##########
|
|
grafana_image: "{{ docker_registry ~ '/' if docker_registry else '' }}{{ docker_namespace }}/{{ kolla_base_distro }}-{{ kolla_install_type }}-grafana"
|
|
grafana_tag: "{{ openstack_release }}"
|
|
grafana_image_full: "{{ grafana_image }}:{{ grafana_tag }}"
|
|
grafana_admin_username: "admin"
|