github.com/verrazzano/verrazzano@v1.7.0/platform-operator/thirdparty/manifests/prometheus-operator/opensearch_monitor.yaml (about) 1 # Copyright (c) 2022, 2023, Oracle and/or its affiliates. 2 # Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl. 3 4 {{ if .isOpenSearchEnabled }} 5 apiVersion: monitoring.coreos.com/v1 6 kind: ServiceMonitor 7 metadata: 8 name: opensearch 9 namespace: {{ .monitoringNamespace }} 10 labels: 11 release: prometheus-operator 12 spec: 13 namespaceSelector: 14 matchNames: 15 - {{ .loggingNamespace }} 16 selector: {} 17 endpoints: 18 - path: /_prometheus/metrics 19 enableHttp2: false 20 tlsConfig: 21 ca: 22 secret: 23 name: opensearch-monitor-certs 24 key: ca.crt 25 cert: 26 secret: 27 name: opensearch-monitor-certs 28 key: tls.crt 29 keySecret: 30 name: opensearch-monitor-certs 31 key: tls.key 32 insecureSkipVerify: true 33 scheme: https 34 relabelings: 35 - sourceLabels: 36 - __meta_kubernetes_pod_name 37 regex: opensearch.* 38 action: keep 39 - sourceLabels: 40 - __meta_kubernetes_pod_container_port_number 41 regex: "9200" 42 action: keep 43 - sourceLabels: 44 - __meta_kubernetes_namespace 45 action: replace 46 targetLabel: namespace 47 - sourceLabels: 48 - __meta_kubernetes_pod_name 49 action: replace 50 targetLabel: kubernetes_pod_name 51 - action: replace 52 targetLabel: verrazzano_cluster 53 replacement: local 54 {{ end }}