From f4e7b3af7fdf35f223a67e9a6e240841ce321017 Mon Sep 17 00:00:00 2001 From: Mathias Ewald Date: Mon, 24 Jul 2017 20:38:48 +0000 Subject: [PATCH] Add Elasticsearch to Grafana This patch adds Elasticsearch to Grafana as a data source Change-Id: I7c6452bba47274f9d971b8000e9d3e911617874d --- ansible/roles/grafana/defaults/main.yml | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/ansible/roles/grafana/defaults/main.yml b/ansible/roles/grafana/defaults/main.yml index 76b9046c7b..67c9cab08e 100644 --- a/ansible/roles/grafana/defaults/main.yml +++ b/ansible/roles/grafana/defaults/main.yml @@ -34,6 +34,17 @@ grafana_data_sources: url: "{{ internal_protocol }}://{{ api_interface_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