diff --git a/charts/templates/blackbox-exporter.yaml b/charts/templates/blackbox-exporter.yaml index 9c91fd8..e3c7bfc 100644 --- a/charts/templates/blackbox-exporter.yaml +++ b/charts/templates/blackbox-exporter.yaml @@ -93,6 +93,9 @@ spec: {{- if .Values.contests.bigquery.enabled }} - http://contests/bigquery {{- end }} + {{- if .Values.contests.opensearch.enabled }} + - http://contests/opensearch + {{- end }} {{- if .Values.contests.kafka.enabled }} - http://contests/kafka {{- end }} diff --git a/internal/opensearch/opensearch.go b/internal/opensearch/opensearch.go index ca9db75..c3b2028 100644 --- a/internal/opensearch/opensearch.go +++ b/internal/opensearch/opensearch.go @@ -29,7 +29,7 @@ func Handler(ctx context.Context, client *opensearch.Client) func(http.ResponseW return } defer rs.Body.Close() - log.Info("Successfully created document to opensearch: %v", rs) + log.Info("Successfully created document in opensearch") // Retrieving same document getRequest := opensearchapi.GetRequest{ @@ -42,7 +42,7 @@ func Handler(ctx context.Context, client *opensearch.Client) func(http.ResponseW http.Error(w, fmt.Sprintf("get document: %v", err), http.StatusInternalServerError) return } - log.Info("Successfully read document from opensearch: %v", rs) + log.Info("Successfully read document from opensearch") w.WriteHeader(http.StatusOK) }