elasticsearch-exporter v1.7.0 runs as a sidecar, scrapes localhost:9200, exposes elasticsearch_* metrics on :9114. ServiceMonitor re-enabled. Alert rules updated to use elasticsearch_* metric names. Flags: --es.all --es.indices --es.shards --collector.clustersettings
24 lines
392 B
YAML
24 lines
392 B
YAML
apiVersion: v1
|
|
kind: Service
|
|
metadata:
|
|
name: opensearch
|
|
namespace: data
|
|
labels:
|
|
app: opensearch
|
|
spec:
|
|
selector:
|
|
app: opensearch
|
|
ports:
|
|
- name: http
|
|
port: 9200
|
|
targetPort: 9200
|
|
protocol: TCP
|
|
- name: transport
|
|
port: 9300
|
|
targetPort: 9300
|
|
protocol: TCP
|
|
- name: metrics
|
|
port: 9114
|
|
targetPort: 9114
|
|
protocol: TCP
|