mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-02-23 13:26:02 +00:00
parent
856235fac2
commit
1b0c93b07c
@ -38,7 +38,6 @@ buildRestTests.expectedUnconvertedCandidates = [
|
|||||||
'reference/aggregations/metrics/tophits-aggregation.asciidoc',
|
'reference/aggregations/metrics/tophits-aggregation.asciidoc',
|
||||||
'reference/cluster/allocation-explain.asciidoc',
|
'reference/cluster/allocation-explain.asciidoc',
|
||||||
'reference/cluster/nodes-info.asciidoc',
|
'reference/cluster/nodes-info.asciidoc',
|
||||||
'reference/cluster/nodes-stats.asciidoc',
|
|
||||||
'reference/cluster/pending.asciidoc',
|
'reference/cluster/pending.asciidoc',
|
||||||
'reference/cluster/state.asciidoc',
|
'reference/cluster/state.asciidoc',
|
||||||
'reference/cluster/stats.asciidoc',
|
'reference/cluster/stats.asciidoc',
|
||||||
|
@ -9,9 +9,10 @@ the cluster nodes statistics.
|
|||||||
|
|
||||||
[source,js]
|
[source,js]
|
||||||
--------------------------------------------------
|
--------------------------------------------------
|
||||||
curl -XGET 'http://localhost:9200/_nodes/stats'
|
GET /_nodes/stats
|
||||||
curl -XGET 'http://localhost:9200/_nodes/nodeId1,nodeId2/stats'
|
GET /_nodes/nodeId1,nodeId2/stats
|
||||||
--------------------------------------------------
|
--------------------------------------------------
|
||||||
|
// CONSOLE
|
||||||
|
|
||||||
The first command retrieves stats of all the nodes in the cluster. The
|
The first command retrieves stats of all the nodes in the cluster. The
|
||||||
second command selectively retrieves nodes stats of only `nodeId1` and
|
second command selectively retrieves nodes stats of only `nodeId1` and
|
||||||
@ -66,12 +67,15 @@ of `indices`, `os`, `process`, `jvm`, `transport`, `http`,
|
|||||||
[source,js]
|
[source,js]
|
||||||
--------------------------------------------------
|
--------------------------------------------------
|
||||||
# return just indices
|
# return just indices
|
||||||
curl -XGET 'http://localhost:9200/_nodes/stats/indices'
|
GET /_nodes/stats/indices
|
||||||
|
|
||||||
# return just os and process
|
# return just os and process
|
||||||
curl -XGET 'http://localhost:9200/_nodes/stats/os,process'
|
GET /_nodes/stats/os,process
|
||||||
|
|
||||||
# return just process for node with IP address 10.0.0.1
|
# return just process for node with IP address 10.0.0.1
|
||||||
curl -XGET 'http://localhost:9200/_nodes/10.0.0.1/stats/process'
|
GET /_nodes/10.0.0.1/stats/process
|
||||||
--------------------------------------------------
|
--------------------------------------------------
|
||||||
|
// CONSOLE
|
||||||
|
|
||||||
All stats can be explicitly requested via `/_nodes/stats/_all` or `/_nodes/stats?metric=_all`.
|
All stats can be explicitly requested via `/_nodes/stats/_all` or `/_nodes/stats?metric=_all`.
|
||||||
|
|
||||||
@ -283,20 +287,23 @@ the current running process:
|
|||||||
[[node-indices-stats]]
|
[[node-indices-stats]]
|
||||||
=== Indices statistics
|
=== Indices statistics
|
||||||
|
|
||||||
You can get information about indices stats on node level or on index level.
|
You can get information about indices stats on `node`, `indices`, or `shards` level.
|
||||||
|
|
||||||
[source,js]
|
[source,js]
|
||||||
--------------------------------------------------
|
--------------------------------------------------
|
||||||
# Node level
|
# Fielddata summarised by node
|
||||||
curl -XGET 'http://localhost:9200/_nodes/stats/indices/fielddata?fields=field1,field2&pretty'
|
GET /_nodes/stats/indices/fielddata?fields=field1,field2
|
||||||
|
|
||||||
# Index level
|
# Fielddata summarised by node and index
|
||||||
curl -XGET 'http://localhost:9200/_stats/fielddata/?fields=field1,field2&pretty'
|
GET /_nodes/stats/indices/fielddata?level=indices&fields=field1,field2
|
||||||
|
|
||||||
|
# Fielddata summarised by node, index, and shard
|
||||||
|
GET /_nodes/stats/indices/fielddata?level=shards&fields=field1,field2
|
||||||
|
|
||||||
# You can use wildcards for field names
|
# You can use wildcards for field names
|
||||||
curl -XGET 'http://localhost:9200/_nodes/stats/indices/fielddata?fields=field*&pretty'
|
GET /_nodes/stats/indices/fielddata?fields=field*
|
||||||
curl -XGET 'http://localhost:9200/_stats/fielddata/?fields=field*&pretty'
|
|
||||||
--------------------------------------------------
|
--------------------------------------------------
|
||||||
|
// CONSOLE
|
||||||
|
|
||||||
Supported metrics are:
|
Supported metrics are:
|
||||||
|
|
||||||
@ -328,11 +335,12 @@ on this node.
|
|||||||
[source,js]
|
[source,js]
|
||||||
--------------------------------------------------
|
--------------------------------------------------
|
||||||
# All groups with all stats
|
# All groups with all stats
|
||||||
curl -XGET 'http://localhost:9200/_nodes/stats?pretty&groups=_all'
|
GET /_nodes/stats?groups=_all
|
||||||
|
|
||||||
# Some groups from just the indices stats
|
# Some groups from just the indices stats
|
||||||
curl -XGET 'http://localhost:9200/_nodes/stats/indices?pretty&groups=foo,bar'
|
GET /_nodes/stats/indices?groups=foo,bar
|
||||||
--------------------------------------------------
|
--------------------------------------------------
|
||||||
|
// CONSOLE
|
||||||
|
|
||||||
[float]
|
[float]
|
||||||
[[ingest-stats]]
|
[[ingest-stats]]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user