Skip to content

Commit

Permalink
Merge pull request #96 from maheshopsmx/v4.1.2
Browse files Browse the repository at this point in the history
remove watiing for Kibana and also kibana in inegrator - OP-19381
  • Loading branch information
saitejaopsmx authored Feb 10, 2023
2 parents 4e27fe2 + fe363a4 commit 0b9e1ef
Showing 1 changed file with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -70,19 +70,19 @@ data:
OESPLATFORM=$(grep oes-platform /tmp/live.status | awk '{print $2}')
{{- if and (.Values.global.enableCentralMonitoring) (.Values.enableCentralLogging) }}
ELASTICSEARCH=$(grep elasticsearch-master-0 /tmp/live.status | awk '{print $2}')
KIBANA=$(grep kibana /tmp/live.status | awk '{print $2}')
#KIBANA=$(grep kibana /tmp/live.status | awk '{print $2}')
PROMETHEUS=$(grep prometheus-server /tmp/live.status | awk '{print $2}')
{{- else if .Values.global.enableCentralMonitoring }}
PROMETHEUS=$(grep prometheus-server /tmp/live.status | awk '{print $2}')
{{- else if .Values.enableCentralLogging }}
ELASTICSEARCH=$(grep elasticsearch-master /tmp/live.status | awk '{print $2}')
KIBANA=$(grep kibana /tmp/live.status | awk '{print $2}')
ELASTICSEARCH=$(grep elasticsearch-master-0 /tmp/live.status | awk '{print $2}')
#KIBANA=$(grep kibana /tmp/live.status | awk '{print $2}')
{{- end }}
wait_period=$(($wait_period+10))
{{- if and (.Values.global.enableCentralMonitoring) (.Values.enableCentralLogging) }}
if [ "$ELASTICSEARCH" == "true" ] && [ "$KIBANA" == "true" ] && [ "$PROMETHEUS" == "true" ] && [ "$OESPLATFORM" == "true" ] && [ "$OESUI" == "true" ] && [ "$OESGATE" == "true" ] && [ "$ARGOCDSERVER" == "true" ] && [ "$validate" == "200" ] && [ "$OESSAPOR" == "true" ];
if [ "$ELASTICSEARCH" == "true" ] && [ "$PROMETHEUS" == "true" ] && [ "$OESPLATFORM" == "true" ] && [ "$OESUI" == "true" ] && [ "$OESGATE" == "true" ] && [ "$ARGOCDSERVER" == "true" ] && [ "$validate" == "200" ] && [ "$OESSAPOR" == "true" ];
{{- else if .Values.enableCentralLogging }}
if [ "$ELASTICSEARCH" == "true" ] && [ "$KIBANA" == "true" ] && [ "$OESPLATFORM" == "true" ] && [ "$OESUI" == "true" ] && [ "$OESGATE" == "true" ] && [ "$ARGOCDSERVER" == "true" ] && [ "$validate" == "200" ] && [ "$OESSAPOR" == "true" ];
if [ "$ELASTICSEARCH" == "true" ] && [ "$OESPLATFORM" == "true" ] && [ "$OESUI" == "true" ] && [ "$OESGATE" == "true" ] && [ "$ARGOCDSERVER" == "true" ] && [ "$validate" == "200" ] && [ "$OESSAPOR" == "true" ];
{{- else if .Values.global.enableCentralMonitoring }}
if [ "$PROMETHEUS" == "true" ] && [ "$OESPLATFORM" == "true" ] && [ "$OESUI" == "true" ] && [ "$OESGATE" == "true" ] && [ "$ARGOCDSERVER" == "true" ] && [ "$validate" == "200" ] && [ "$OESSAPOR" == "true" ];
{{- else }}
Expand Down Expand Up @@ -149,7 +149,7 @@ data:
## create Elasticsearch datasource
curl -s --location --request POST 'http://oes-platform:8095/platformservice/v6/datasource' \
--header 'Content-Type: application/json' \
--data-raw '{"datasourceType":"ELASTICSEARCH","name":"opsmx-elastic","configurationFields":{"endPoint":"http://elasticsearch-master:9200","username":"","password":"","kibanaEndPoint":"http://{{ .Release.Name }}-kibana:5601","kibanaUsername":"","kibanaPassword":""}}'
--data-raw '{"datasourceType":"ELASTICSEARCH","name":"opsmx-elastic","configurationFields":{"endPoint":"http://elasticsearch-master:9200","username":"","password":"","kibanaEndPoint":"","kibanaUsername":"","kibanaPassword":""}}'
## Create prometheus datasource
curl -s --location --request POST 'http://oes-platform:8095/platformservice/v6/datasource' \
--header 'Content-Type: application/json' \
Expand Down Expand Up @@ -180,7 +180,7 @@ data:
## create Elasticsearch datasource
curl -s --location --request POST 'http://oes-platform:8095/platformservice/v6/datasource' \
--header 'Content-Type: application/json' \
--data-raw '{"datasourceType":"ELASTICSEARCH","name":"opsmx-elastic","configurationFields":{"endPoint":"http://elasticsearch-master:9200","username":"","password":"","kibanaEndPoint":"http://{{ .Release.Name }}-kibana:5601","kibanaUsername":"","kibanaPassword":""}}'
--data-raw '{"datasourceType":"ELASTICSEARCH","name":"opsmx-elastic","configurationFields":{"endPoint":"http://elasticsearch-master:9200","username":"","password":"","kibanaEndPoint":"","kibanaUsername":"","kibanaPassword":""}}'
## create LOG template
curl -s --location --header "x-spinnaker-user:admin" --request POST 'http://oes-autopilot:8090/autopilot/api/v5/global/logTemplate' \
--header 'Content-Type: application/json' \
Expand Down

0 comments on commit 0b9e1ef

Please sign in to comment.