Merge "Update Grafana OpenSearch datasource configuration"

This commit is contained in:
Zuul 2024-04-15 15:13:25 +00:00 committed by Gerrit Code Review
commit 065820aeba
2 changed files with 14 additions and 3 deletions

@ -65,9 +65,9 @@ grafana_data_sources:
access: "proxy"
url: "{{ opensearch_internal_endpoint }}"
jsonData:
flavor: "elasticsearch"
database: "[flog-]YYYY.MM.DD"
version: "7.0.0"
flavor: "OpenSearch"
database: "{{ opensearch_log_index_prefix }}-*"
version: "2.11.1"
timeField: "@timestamp"
##########

@ -0,0 +1,11 @@
---
fixes:
- |
Updates the default Grafana OpenSearch datasource configuration to use
values for OpenSearch that work out of the box. Replaces the Elasticsearch
values that were previously being used. The new configuration can be
applied by deleting your datasource and reconfiguring Grafana through kolla
ansible. In order to prevent dashboards from breaking when the datasource
is deleted, one should use `datasource variables
<https://grafana.com/docs/grafana/latest/dashboards/variables/add-template-variables/#add-a-data-source-variable>`__
in Grafana. See bug `2039500 <https://bugs.launchpad.net/kolla-ansible/+bug/2039500>`__.