Release Notes

Parameter | Description |
name | Exporter name, which should meet the following requirements: The name should be unique. The name should conform to the following regular expression: '^[a-z0-9]([-a-z0-9]*[a-z0-9])?(\\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*$'. |
username | Username for ElasticSearch. |
password | Password for ElasticSearch. |
address | Connection address for ElasticSearch. |
tag | Custom labels for metrics. |
Exporter config | all nodes: Check to query statistical information of all nodes in a cluster. Uncheck to query only connected nodes. indexes status: Check to query index statistics of all in a cluster. indexes config: Check to query statistical information of all index configurations in a cluster. shard: Check to query index statistics of all in a cluster, including shard level statistics (equivalent to checking index status). snapshot: Check to query cluster snapshot statistics. cluster config: Check to query cluster configuration statistics. |
<proto>://<user>:<password>@<host>:<port>, such as http://admin:pass@localhost:9200.apiVersion: v1kind: Secretmetadata:name: es-secret-testnamespace: es-demotype: OpaquestringData:esURI: you-guess # Corresponding Elasticsearch URI
apiVersion: apps/v1kind: Deploymentmetadata:labels:k8s-app: es-exporter # Adjust to the corresponding name based on business requirementsname: es-exporter # Adjust to the corresponding name based on business requirementsnamespace: es-demospec:replicas: 1selector:matchLabels:k8s-app: es-exporter # Adjust to the corresponding name based on business requirementstemplate:metadata:labels:k8s-app: es-exporter # Adjust to the corresponding name based on business requirementsspec:containers:- env:- name: ES_URIvalueFrom:secretKeyRef:name: es-secret-test # Corresponds to the name of the Secret in the previous stepkey: esURI # Corresponds to the Secret Key in the previous step- name: ES_ALLvalue: "true"image: ccr.ccs.tencentyun.com/rig-agent/es-exporter:1.1.0imagePullPolicy: IfNotPresentname: es-exporterports:- containerPort: 9114name: metric-portsecurityContext:privileged: falseterminationMessagePath: /dev/termination-logterminationMessagePolicy: FilednsPolicy: ClusterFirstimagePullSecrets:- name: qcloudregistrykeyrestartPolicy: AlwaysschedulerName: default-schedulersecurityContext: {}terminationGracePeriodSeconds: 30
ES_ALL to collect all monitoring metrics of Elasticsearch, which can be adjusted through the corresponding parameters. For detailed exporter parameters, please refer to elasticsearch_exporter.
curl command with the address exposed by the exporter in the command line window, and you can get the corresponding Elasticsearch metrics normally. If no corresponding data is returned, please check whether the connection string is correct as shown below:curl localhost:9114/metrics

PodMonitor via service discovery to define the collection task. The YAML example is as follows:apiVersion: monitoring.coreos.com/v1kind: PodMonitormetadata:name: es-exporter # Enter a unique namenamespace: cm-prometheus # Pay-as-you-go instance: namespace of the cluster; Annual and monthly subscription instances (no longer available): namespace is fixed, do not changespec:namespaceSelector:matchNames:- es-demopodMetricsEndpoints:- interval: 30spath: /metricsport: metric-portselector:matchLabels:k8s-app: es-exporter


Apakah halaman ini membantu?
Anda juga dapat Menghubungi Penjualan atau Mengirimkan Tiket untuk meminta bantuan.
masukan