Steven Fitzpatrick 125ffd7237 LMA Configuration Updates
This change fixes some configurations of LMA CRs and values,
such that logs and metrics are properly visible on kibana
and grafana after workload and workload-config phase.

Also:
- Added dashboards to grafana
- Added a container to kibana which sets up the discover page
- Added the DependsOn directive was added to the workload-lma
  prometheus-elasticsearch-exporter HR
- Added NodePort bindings to LMA services in multi-tenant/lma
  subcluster

Change-Id: I14338f5cab0808654173a09494f5fde540397dcc
2021-07-13 04:45:25 +00:00

44 lines
1.2 KiB
YAML

apiVersion: "helm.toolkit.fluxcd.io/v2beta1"
kind: HelmRelease
metadata:
name: kibana
spec:
releaseName: kibana
interval: 5m
chart:
spec:
sourceRef:
kind: HelmRepository
namespace: helm-chart-collator
name: collator
interval: 1m
timeout: 5m
values:
extraContainers:
- name: index-patterns
image: IMAGE:TAG
command:
- bash
- -c
- |
#!/bin/bash
set -ex
KIBANA_URL=http://localhost:5601
while [[ "$(curl -s -o /dev/null -w '%{http_code}\n' $KIBANA_URL/app/kibana)" != "200" ]]; do
echo "Waiting for API"
sleep 1;
done
curl -XPOST $KIBANA_URL/api/index_patterns/index_pattern \
-H 'kbn-xsrf: true' \
-H 'Content-Type: application/json' \
-d '{ "index_pattern": { "title": "logstash-*", "timeFieldName":"@timestamp" }}'
curl -XPOST $KIBANA_URL/api/kibana/settings/defaultIndex \
-H 'Content-Type: application/json' \
-H 'kbn-xsrf: true' \
-d '{"value" : "logstash-*"}'
tail -f /dev/null