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