summaryrefslogtreecommitdiffstats
path: root/src/go/collectors/go.d.plugin/modules/elasticsearch/metadata.yaml
blob: 9ee892948b107caf756536f5a64fbd6f09e64a5e (plain)
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
plugin_name: go.d.plugin
modules:
  - &module
    meta: &meta
      id: collector-go.d.plugin-elasticsearch
      module_name: elasticsearch
      plugin_name: go.d.plugin
      monitored_instance:
        name: Elasticsearch
        link: https://www.elastic.co/elasticsearch/
        icon_filename: elasticsearch.svg
        categories:
          - data-collection.search-engines
      keywords:
        - elastic
        - elasticsearch
        - opensearch
        - search engine
      related_resources:
        integrations:
          list:
            - plugin_name: apps.plugin
              module_name: apps
            - plugin_name: cgroups.plugin
              module_name: cgroups
      info_provided_to_referring_integrations:
        description: ""
      most_popular: true
    overview:
      data_collection:
        metrics_description: |
          This collector monitors the performance and health of the Elasticsearch cluster.
        method_description: |
          It uses [Cluster APIs](https://www.elastic.co/guide/en/elasticsearch/reference/current/cluster.html) to collect metrics.
          
          Used endpoints:
          
          | Endpoint               | Description          | API                                                                                                         |
          |------------------------|----------------------|-------------------------------------------------------------------------------------------------------------|
          | `/`                    | Node info            |                                                                                                             |
          | `/_nodes/stats`        | Nodes metrics        | [Nodes stats API](https://www.elastic.co/guide/en/elasticsearch/reference/current/cluster-nodes-stats.html) |
          | `/_nodes/_local/stats` | Local node metrics   | [Nodes stats API](https://www.elastic.co/guide/en/elasticsearch/reference/current/cluster-nodes-stats.html) |
          | `/_cluster/health`     | Cluster health stats | [Cluster health API](https://www.elastic.co/guide/en/elasticsearch/reference/current/cluster-health.html)   |
          | `/_cluster/stats`      | Cluster metrics      | [Cluster stats API](https://www.elastic.co/guide/en/elasticsearch/reference/current/cluster-stats.html)     |
      supported_platforms:
        include: []
        exclude: []
      multi_instance: true
      additional_permissions:
        description: ""
      default_behavior:
        auto_detection:
          description: |
            By default, it detects instances running on localhost by attempting to connect to port 9200:
            
            - http://127.0.0.1:9200
            - https://127.0.0.1:9200
        limits:
          description: |
            By default, this collector monitors only the node it is connected to. To monitor all cluster nodes, set the `cluster_mode` configuration option to `yes`.
        performance_impact:
          description: ""
    setup:
      prerequisites:
        list: []
      configuration:
        file:
          name: "go.d/elasticsearch.conf"
        options:
          description: |
            The following options can be defined globally: update_every, autodetection_retry.
          folding:
            title: Config options
            enabled: true
          list:
            - name: update_every
              description: Data collection frequency.
              default_value: 5
              required: false
            - name: autodetection_retry
              description: Recheck interval in seconds. Zero means no recheck will be scheduled.
              default_value: 0
              required: false
            - name: url
              description: Server URL.
              default_value: http://127.0.0.1:9200
              required: true
            - name: cluster_mode
              description: Controls whether to collect metrics for all nodes in the cluster or only for the local node.
              default_value: "false"
              required: false
            - name: collect_node_stats
              description: Controls whether to collect nodes metrics.
              default_value: "true"
              required: false
            - name: collect_cluster_health
              description: Controls whether to collect cluster health metrics.
              default_value: "true"
              required: false
            - name: collect_cluster_stats
              description: Controls whether to collect cluster stats metrics.
              default_value: "true"
              required: false
            - name: collect_indices_stats
              description: Controls whether to collect indices metrics.
              default_value: "false"
              required: false
            - name: timeout
              description: HTTP request timeout.
              default_value: 2
              required: false
            - name: username
              description: Username for basic HTTP authentication.
              default_value: ""
              required: false
            - name: password
              description: Password for basic HTTP authentication.
              default_value: ""
              required: false
            - name: proxy_url
              description: Proxy URL.
              default_value: ""
              required: false
            - name: proxy_username
              description: Username for proxy basic HTTP authentication.
              default_value: ""
              required: false
            - name: proxy_password
              description: Password for proxy basic HTTP authentication.
              default_value: ""
              required: false
            - name: method
              description: HTTP request method.
              default_value: "GET"
              required: false
            - name: body
              description: HTTP request body.
              default_value: ""
              required: false
            - name: headers
              description: HTTP request headers.
              default_value: ""
              required: false
            - name: not_follow_redirects
              description: Redirect handling policy. Controls whether the client follows redirects.
              default_value: no
              required: false
            - name: tls_skip_verify
              description: Server certificate chain and hostname validation policy. Controls whether the client performs this check.
              default_value: no
              required: false
            - name: tls_ca
              description: Certification authority that the client uses when verifying the server's certificates.
              default_value: ""
              required: false
            - name: tls_cert
              description: Client TLS certificate.
              default_value: ""
              required: false
            - name: tls_key
              description: Client TLS key.
              default_value: ""
              required: false
        examples:
          folding:
            title: Config
            enabled: true
          list:
            - name: Basic single node mode
              description: A basic example configuration.
              folding:
                enabled: false
              config: |
                jobs:
                  - name: local
                    url: http://127.0.0.1:9200
            - name: Cluster mode
              description: Cluster mode example configuration.
              config: |
                jobs:
                  - name: local
                    url: http://127.0.0.1:9200
                    cluster_mode: yes
            - name: HTTP authentication
              description: Basic HTTP authentication.
              config: |
                jobs:
                  - name: local
                    url: http://127.0.0.1:9200
                    username: username
                    password: password
            - name: HTTPS with self-signed certificate
              description: Elasticsearch with enabled HTTPS and self-signed certificate.
              config: |
                jobs:
                  - name: local
                    url: https://127.0.0.1:9200
                    tls_skip_verify: yes
            - name: Multi-instance
              description: |
                > **Note**: When you define multiple jobs, their names must be unique.
                
                Collecting metrics from local and remote instances.
              config: |
                jobs:
                  - name: local
                    url: http://127.0.0.1:9200
                
                  - name: remote
                    url: http://192.0.2.1:9200
    troubleshooting:
      problems:
        list: []
    alerts:
      - name: elasticsearch_node_indices_search_time_query
        link: https://github.com/netdata/netdata/blob/master/src/health/health.d/elasticsearch.conf
        metric: elasticsearch.node_indices_search_time
        info: search performance is degraded, queries run slowly.
      - name: elasticsearch_node_indices_search_time_fetch
        link: https://github.com/netdata/netdata/blob/master/src/health/health.d/elasticsearch.conf
        metric: elasticsearch.node_indices_search_time
        info: search performance is degraded, fetches run slowly.
      - name: elasticsearch_cluster_health_status_red
        link: https://github.com/netdata/netdata/blob/master/src/health/health.d/elasticsearch.conf
        metric: elasticsearch.cluster_health_status
        info: cluster health status is red.
      - name: elasticsearch_cluster_health_status_yellow
        link: https://github.com/netdata/netdata/blob/master/src/health/health.d/elasticsearch.conf
        metric: elasticsearch.cluster_health_status
        info: cluster health status is yellow.
      - name: elasticsearch_node_index_health_red
        link: https://github.com/netdata/netdata/blob/master/src/health/health.d/elasticsearch.conf
        metric: elasticsearch.node_index_health
        info: node index $label:index health status is red.
    metrics:
      folding:
        title: Metrics
        enabled: false
      description: ""
      availability: []
      scopes:
        - name: node
          description: These metrics refer to the cluster node.
          labels:
            - name: cluster_name
              description: |
                Name of the cluster. Based on the [Cluster name setting](https://www.elastic.co/guide/en/elasticsearch/reference/current/important-settings.html#cluster-name).
            - name: node_name
              description: |
                Human-readable identifier for the node. Based on the [Node name setting](https://www.elastic.co/guide/en/elasticsearch/reference/current/important-settings.html#node-name).
            - name: host
              description: |
                Network host for the node, based on the [Network host setting](https://www.elastic.co/guide/en/elasticsearch/reference/current/important-settings.html#network.host).
          metrics:
            - name: elasticsearch.node_indices_indexing
              description: Indexing Operations
              unit: operations/s
              chart_type: line
              dimensions:
                - name: index
            - name: elasticsearch.node_indices_indexing_current
              description: Indexing Operations Current
              unit: operations
              chart_type: line
              dimensions:
                - name: index
            - name: elasticsearch.node_indices_indexing_time
              description: Time Spent On Indexing Operations
              unit: milliseconds
              chart_type: line
              dimensions:
                - name: index
            - name: elasticsearch.node_indices_search
              description: Search Operations
              unit: operations/s
              chart_type: stacked
              dimensions:
                - name: queries
                - name: fetches
            - name: elasticsearch.node_indices_search_current
              description: Search Operations Current
              unit: operations
              chart_type: stacked
              dimensions:
                - name: queries
                - name: fetches
            - name: elasticsearch.node_indices_search_time
              description: node_indices_search_time
              unit: milliseconds
              chart_type: stacked
              dimensions:
                - name: queries
                - name: fetches
            - name: elasticsearch.node_indices_refresh
              description: Refresh Operations
              unit: operations/s
              chart_type: line
              dimensions:
                - name: refresh
            - name: elasticsearch.node_indices_refresh_time
              description: Time Spent On Refresh Operations
              unit: milliseconds
              chart_type: line
              dimensions:
                - name: refresh
            - name: elasticsearch.node_indices_flush
              description: Flush Operations
              unit: operations/s
              chart_type: line
              dimensions:
                - name: flush
            - name: elasticsearch.node_indices_flush_time
              description: Time Spent On Flush Operations
              unit: milliseconds
              chart_type: line
              dimensions:
                - name: flush
            - name: elasticsearch.node_indices_fielddata_memory_usage
              description: Fielddata Cache Memory Usage
              unit: bytes
              chart_type: area
              dimensions:
                - name: used
            - name: elasticsearch.node_indices_fielddata_evictions
              description: Fielddata Evictions
              unit: operations/s
              chart_type: line
              dimensions:
                - name: evictions
            - name: elasticsearch.node_indices_segments_count
              description: Segments Count
              unit: segments
              chart_type: line
              dimensions:
                - name: segments
            - name: elasticsearch.node_indices_segments_memory_usage_total
              description: Segments Memory Usage Total
              unit: bytes
              chart_type: line
              dimensions:
                - name: used
            - name: elasticsearch.node_indices_segments_memory_usage
              description: Segments Memory Usage
              unit: bytes
              chart_type: stacked
              dimensions:
                - name: terms
                - name: stored_fields
                - name: term_vectors
                - name: norms
                - name: points
                - name: doc_values
                - name: index_writer
                - name: version_map
                - name: fixed_bit_set
            - name: elasticsearch.node_indices_translog_operations
              description: Translog Operations
              unit: operations
              chart_type: area
              dimensions:
                - name: total
                - name: uncommitted
            - name: elasticsearch.node_indices_translog_size
              description: Translog Size
              unit: bytes
              chart_type: area
              dimensions:
                - name: total
                - name: uncommitted
            - name: elasticsearch.node_file_descriptors
              description: Process File Descriptors
              unit: fd
              chart_type: line
              dimensions:
                - name: open
            - name: elasticsearch.node_jvm_heap
              description: JVM Heap Percentage Currently in Use
              unit: percentage
              chart_type: area
              dimensions:
                - name: inuse
            - name: elasticsearch.node_jvm_heap_bytes
              description: JVM Heap Commit And Usage
              unit: bytes
              chart_type: area
              dimensions:
                - name: committed
                - name: used
            - name: elasticsearch.node_jvm_buffer_pools_count
              description: JVM Buffer Pools Count
              unit: pools
              chart_type: line
              dimensions:
                - name: direct
                - name: mapped
            - name: elasticsearch.node_jvm_buffer_pool_direct_memory
              description: JVM Buffer Pool Direct Memory
              unit: bytes
              chart_type: area
              dimensions:
                - name: total
                - name: used
            - name: elasticsearch.node_jvm_buffer_pool_mapped_memory
              description: JVM Buffer Pool Mapped Memory
              unit: bytes
              chart_type: area
              dimensions:
                - name: total
                - name: used
            - name: elasticsearch.node_jvm_gc_count
              description: JVM Garbage Collections
              unit: gc/s
              chart_type: stacked
              dimensions:
                - name: young
                - name: old
            - name: elasticsearch.node_jvm_gc_time
              description: JVM Time Spent On Garbage Collections
              unit: milliseconds
              chart_type: stacked
              dimensions:
                - name: young
                - name: old
            - name: elasticsearch.node_thread_pool_queued
              description: Thread Pool Queued Threads Count
              unit: threads
              chart_type: stacked
              dimensions:
                - name: generic
                - name: search
                - name: search_throttled
                - name: get
                - name: analyze
                - name: write
                - name: snapshot
                - name: warmer
                - name: refresh
                - name: listener
                - name: fetch_shard_started
                - name: fetch_shard_store
                - name: flush
                - name: force_merge
                - name: management
            - name: elasticsearch.node_thread_pool_rejected
              description: Thread Pool Rejected Threads Count
              unit: threads
              chart_type: stacked
              dimensions:
                - name: generic
                - name: search
                - name: search_throttled
                - name: get
                - name: analyze
                - name: write
                - name: snapshot
                - name: warmer
                - name: refresh
                - name: listener
                - name: fetch_shard_started
                - name: fetch_shard_store
                - name: flush
                - name: force_merge
                - name: management
            - name: elasticsearch.node_cluster_communication_packets
              description: Cluster Communication
              unit: pps
              chart_type: line
              dimensions:
                - name: received
                - name: sent
            - name: elasticsearch.node_cluster_communication_traffic
              description: Cluster Communication Bandwidth
              unit: bytes/s
              chart_type: line
              dimensions:
                - name: received
                - name: sent
            - name: elasticsearch.node_http_connections
              description: HTTP Connections
              unit: connections
              chart_type: line
              dimensions:
                - name: open
            - name: elasticsearch.node_breakers_trips
              description: Circuit Breaker Trips Count
              unit: trips/s
              chart_type: stacked
              dimensions:
                - name: requests
                - name: fielddata
                - name: in_flight_requests
                - name: model_inference
                - name: accounting
                - name: parent
        - name: cluster
          description: These metrics refer to the cluster.
          labels:
            - name: cluster_name
              description: |
                Name of the cluster. Based on the [Cluster name setting](https://www.elastic.co/guide/en/elasticsearch/reference/current/important-settings.html#cluster-name).
          metrics:
            - name: elasticsearch.cluster_health_status
              description: Cluster Status
              unit: status
              chart_type: line
              dimensions:
                - name: green
                - name: yellow
                - name: red
            - name: elasticsearch.cluster_number_of_nodes
              description: Cluster Nodes Count
              unit: nodes
              chart_type: line
              dimensions:
                - name: nodes
                - name: data_nodes
            - name: elasticsearch.cluster_shards_count
              description: Cluster Shards Count
              unit: shards
              chart_type: line
              dimensions:
                - name: active_primary
                - name: active
                - name: relocating
                - name: initializing
                - name: unassigned
                - name: delayed_unaasigned
            - name: elasticsearch.cluster_pending_tasks
              description: Cluster Pending Tasks
              unit: tasks
              chart_type: line
              dimensions:
                - name: pending
            - name: elasticsearch.cluster_number_of_in_flight_fetch
              description: Cluster Unfinished Fetches
              unit: fetches
              chart_type: line
              dimensions:
                - name: in_flight_fetch
            - name: elasticsearch.cluster_indices_count
              description: Cluster Indices Count
              unit: indices
              chart_type: line
              dimensions:
                - name: indices
            - name: elasticsearch.cluster_indices_shards_count
              description: Cluster Indices Shards Count
              unit: shards
              chart_type: line
              dimensions:
                - name: total
                - name: primaries
                - name: replication
            - name: elasticsearch.cluster_indices_docs_count
              description: Cluster Indices Docs Count
              unit: docs
              chart_type: line
              dimensions:
                - name: docs
            - name: elasticsearch.cluster_indices_store_size
              description: Cluster Indices Store Size
              unit: bytes
              chart_type: line
              dimensions:
                - name: size
            - name: elasticsearch.cluster_indices_query_cache
              description: Cluster Indices Query Cache
              unit: events/s
              chart_type: line
              dimensions:
                - name: hit
                - name: miss
            - name: elasticsearch.cluster_nodes_by_role_count
              description: Cluster Nodes By Role Count
              unit: nodes
              chart_type: line
              dimensions:
                - name: coordinating_only
                - name: data
                - name: data_cold
                - name: data_content
                - name: data_frozen
                - name: data_hot
                - name: data_warm
                - name: ingest
                - name: master
                - name: ml
                - name: remote_cluster_client
                - name: voting_only
        - name: index
          description: These metrics refer to the index.
          labels:
            - name: cluster_name
              description: |
                Name of the cluster. Based on the [Cluster name setting](https://www.elastic.co/guide/en/elasticsearch/reference/current/important-settings.html#cluster-name).
            - name: index
              description: Name of the index.
          metrics:
            - name: elasticsearch.node_index_health
              description: Index Health
              unit: status
              chart_type: line
              dimensions:
                - name: green
                - name: yellow
                - name: red
            - name: elasticsearch.node_index_shards_count
              description: Index Shards Count
              unit: shards
              chart_type: line
              dimensions:
                - name: shards
            - name: elasticsearch.node_index_docs_count
              description: Index Docs Count
              unit: docs
              chart_type: line
              dimensions:
                - name: docs
            - name: elasticsearch.node_index_store_size
              description: Index Store Size
              unit: bytes
              chart_type: line
              dimensions:
                - name: store_size
  - <<: *module
    meta:
      <<: *meta
      id: collector-go.d.plugin-opensearch
      monitored_instance:
        name: OpenSearch
        link: https://opensearch.org/
        icon_filename: opensearch.svg
        categories:
          - data-collection.search-engines