-
Notifications
You must be signed in to change notification settings - Fork 19
/
Copy pathelasticsearch-config.yml.k8s_sample
33 lines (33 loc) · 2.25 KB
/
elasticsearch-config.yml.k8s_sample
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
elasticsearch-config.yml: |
---
# Run auto discovery to find pods with label "app=elasticsearch"
# https://docs.newrelic.com/docs/integrations/host-integrations/installation/container-auto-discovery
discovery:
command:
# Use the following optional arguments:
# --namespaces: Comma separated list of namespaces to discover pods on
# --tls: Use secure (TLS) connection
# --port: Port used to connect to the kubelet. Default is 10255
exec: /var/db/newrelic-infra/nri-discovery-kubernetes
match:
label.app: elasticsearch
integrations:
- name: nri-elasticsearch
env:
CLUSTER_ENVIRONMENT: <A way to further specify which cluster we are gathering data for, example: from the pods label called "cluster_name" it would be '${discovery.label.cluster_name}'>
# Use the discovered IP as the host address
HOSTNAME: ${discovery.ip}
# Set the elasticsearch node name to the discovered pod name
LOCAL_HOSTNAME: ${discovery.podName}
USERNAME: <username for accessing Elasticsearch Node>
PASSWORD: <password for the given user.>
PORT: <(Optional) port on which Elasticsearch Node is listening. (default 9200)>
TIMEOUT: <(Optional) timeout in seconds for an API call (default 30)>
USE_SSL: <(Optional) true or false to use SSL. If true Certificate bundle must be supplied. (default false)>
CA_BUNDLE_DIR: <(Optional) Required if use_ssl is true. Directory for certificate authority bundle, must be included if use_ssl is true>
CA_BUNDLE_FILE: <(Optional) Required if use_ssl is true. File for certificate authority bundle, must be included if use_ssl is true>
INDICES_REGEX: <(Optional) Can be used to filter which indicies are collected. If left blank it will be ignored>
COLLECT_INDICES: <(Optional) true or false to collect indices metrics. If true collect indices, else do not. (default true)>
COLLECT_PRIMARIES: <(Optional) true or false to collect primaries metrics. If true collect primaries, else do not. (default true)>
METRICS: 1
MASTER_ONLY: <(Optional) If true metrics will only be collected if the node is an elected master (default false)>