Update Grafana OpenSearch datasource configuration

Updates the Grafana OpenSearch datasource configuration to use values
for OpenSearch that work out of the box.

Closes-Bug: #2039500
Change-Id: Id9c7e59e6ae1dd98176c68b14a2aff1985306751
This commit is contained in:
Dawud 2024-03-15 10:49:51 +00:00
parent 21543fefb9
commit 9afc9da226
No known key found for this signature in database
2 changed files with 14 additions and 3 deletions

View File

@ -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"
##########

View File

@ -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>`__.