<ruby id="bdb3f"></ruby>

    <p id="bdb3f"><cite id="bdb3f"></cite></p>

      <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
        <p id="bdb3f"><cite id="bdb3f"></cite></p>

          <pre id="bdb3f"></pre>
          <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

          <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
          <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

          <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                <ruby id="bdb3f"></ruby>

                合規國際互聯網加速 OSASE為企業客戶提供高速穩定SD-WAN國際加速解決方案。 廣告
                # Nodes Stats 原文鏈接 : [https://www.elastic.co/guide/en/elasticsearch/reference/5.0/cluster-nodes-stats.html](https://www.elastic.co/guide/en/elasticsearch/reference/5.0/cluster-nodes-stats.html) 譯文鏈接 : [http://www.apache.wiki/display/Elasticsearch/Nodes+Stats](http://www.apache.wiki/display/Elasticsearch/Nodes+Stats) 貢獻者 : [那伊抹微笑](/display/~wangyangting) **cluster nodes stats**(集群節點統計信息)**API** 可以獲取集群中一個或者多個節點的統計信息。 ``` curl -XGET 'http://localhost:9200/_nodes/stats' curl -XGET 'http://localhost:9200/_nodes/nodeId1,nodeId2/stats' ``` 第一個命令獲取了集群中所有節點的統計信息。 第二個只選擇獲取了 **nodeId1** 和 **nodeId2** 的節點的統計信息。 所有節點選擇的選項在[這里](https://www.elastic.co/guide/en/elasticsearch/reference/5.0/cluster.html#cluster-nodes)有更詳細的說明。 默認情況下,返回所有的統計信息。您也可以通過組合任何的?`**indices**,``**os**,``**process**,``**jvm**,``**transport**,``**http**,``**fs**,`**`breaker`**和?`**thread_pool** 來限制它們。例如 :?` | 選項 | 描述 | | --- | --- | | `indices` | Indices stats about size, document count, indexing and deletion times, search times, field cache size, merges and flushes | | `fs` | File system information, data path, free disk space, read/write stats (see?[FS information](https://www.elastic.co/guide/en/elasticsearch/reference/5.0/cluster-nodes-stats.html#fs-info "FS informationedit")) | | `http` | HTTP connection information | | `jvm` | JVM stats, memory pool information, garbage collection, buffer pools, number of loaded/unloaded classes | | `os` | Operating system stats, load average, mem, swap (see?[OS statistics](https://www.elastic.co/guide/en/elasticsearch/reference/5.0/cluster-nodes-stats.html#os-stats "Operating System statisticsedit")) | | `process` | Process statistics, memory consumption, cpu usage, open file descriptors (see?[Process statistics](https://www.elastic.co/guide/en/elasticsearch/reference/5.0/cluster-nodes-stats.html#process-stats "Process statisticsedit")) | | `thread_pool` | Statistics about each thread pool, including current size, queue and rejected tasks | | `transport` | Transport statistics about sent and received bytes in cluster communication | | `breaker` | Statistics about the field data circuit breaker | | `discovery` | Statistics about the discovery | | `ingest` | Statistics about ingest preprocessing | ``` # return indices and os curl -XGET 'http://localhost:9200/_nodes/stats/os' # return just os and process curl -XGET 'http://localhost:9200/_nodes/stats/os,process' # specific type endpoint curl -XGET 'http://localhost:9200/_nodes/stats/process' curl -XGET 'http://localhost:9200/_nodes/10.0.0.1/stats/process' ``` 所有的統計信息都可以通過?**`/_nodes/stats/_all`**?或者?`**/_nodes/stats?metric=_all** 來明確的請求。` ## FS information(文件系統的信息) 可以設置 **fs** 標記以獲取與文件系統有關的統計信息 :? | 標記 | 描述 | | --- | --- | | fs.timestamp | Last time the file stores statistics have been refreshed | | fs.total.total_in_bytes | Total size (in bytes) of all file stores | | fs.total.free_in_bytes | Total number of unallocated bytes in all file stores | | fs.total.available_in_bytes | Total number of bytes available to this Java virtual machine on all file stores | | fs.data | List of all file stores | | fs.data.path | Path to the file store | | fs.data.mount | Mount point of the file store (ex: /dev/sda2) | | fs.data.type | Type of the file store (ex: ext4) | | fs.data.total_in_bytes | Total size (in bytes) of the file store | | fs.data.free_in_bytes | Total number of unallocated bytes in the file store | | fs.data.available_in_bytes | Total number of bytes available to this Java virtual machine on this file store | | `fs.data.spins`?(Linux only) | Indicates if the file store is backed by spinning storage.?`null`?means we could not determine it,?`true`means the device possibly spins and?`false`?means it does not (ex: solid-state disks). | | `fs.io_stats.devices`?(Linux only) | Array of disk metrics for each device that is backing an Elasticsearch data path. These disk metrics are probed periodically and averages between the last probe and the current probe are computed. | | `fs.io_stats.devices.device_name`?(Linux only) | The Linux device name. | | `fs.io_stats.devices.operations`?(Linux only) | The total number of read and write operations for the device completed since starting Elasticsearch. | | `fs.io_stats.devices.read_operations`?(Linux only) | The total number of read operations for the device completed since starting Elasticsearch. | | `fs.io_stats.devices.write_operations`?(Linux only) | The total number of write operations for the device completed since starting Elasticsearch. | | `fs.io_stats.devices.read_kilobytes`?(Linux only) | The total number of kilobytes read for the device since starting Elasticsearch. | | `fs.io_stats.devices.write_kilobytes`?(Linux only) | The total number of kilobytes written for the device since starting Elasticsearch. | | `fs.io_stats.operations`?(Linux only) | The total number of read and write operations across all devices used by Elasticsearch completed since starting Elasticsearch. | | `fs.io_stats.read_operations`?(Linux only) | The total number of read operations for across all devices used by Elasticsearch completed since starting Elasticsearch. | | `fs.io_stats.write_operations`?(Linux only) | The total number of write operations across all devices used by Elasticsearch completed since starting Elasticsearch. | | `fs.io_stats.read_kilobytes`?(Linux only) | The total number of kilobytes read across all devices used by Elasticsearch since starting Elasticsearch. | | `fs.io_stats.write_kilobytes`?(Linux only) | The total number of kilobytes written across all devices used by Elasticsearch since starting Elasticsearch. | ## Operating System statistics(操作系統的統計信息) 可以設置 **os** 標記以獲取與操作系統有關的統計信息 :? | 標記 | 描述 | | --- | --- | | os.timestamp | Last time the operating system statistics have been refreshed | | os.cpu.percent | Recent CPU usage for the whole system, or -1 if not supported | | os.cpu.load_average.1m | One-minute load average on the system (field is not present if one-minute load average is not available) | | os.cpu.load_average.5m | Five-minute load average on the system (field is not present if five-minute load average is not available) | | os.cpu.load_average.15m | Fifteen-minute load average on the system (field is not present if fifteen-minute load average is not available) | | os.mem.total_in_bytes | Total amount of physical memory in bytes | | os.mem.free_in_bytes | Amount of free physical memory in bytes | | os.mem.free_percent | Percentage of free memory | | os.mem.used_in_bytes | Amount of used physical memory in bytes | | os.mem.used_percent | Percentage of used memory | | os.swap.total_in_bytes | Total amount of swap space in bytes | | os.swap.free_in_bytes | Amount of free swap space in bytes | | os.swap.used_in_bytes | Amount of used swap space in bytes | ## Process statistics(進程統計信息) 可以設置 **process?**標記以獲取與當前運行中的進程有關的統計信息 :? | 標記 | 描述 | | --- | --- | | process.timestamp | Last time the process statistics have been refreshed | | process.open_file_descriptors | Number of opened file descriptors associated with the current process, or -1 if not supported | | process.max_file_descriptors | Maximum number of file descriptors allowed on the system, or -1 if not supported | | process.cpu.percent | CPU usage in percent, or -1 if not known at the time the stats are computed | | process.cpu.total_in_millis | CPU time (in milliseconds) used by the process on which the Java virtual machine is running, or -1 if not supported | | process.mem.total_virtual_in_bytes | Size in bytes of virtual memory that is guaranteed to be available to the running process | ## Field data statistics(字段數據的統計信息) 您可以獲取關于在節點級別或者索引級別上的字段數據內存使用情況的信息。 ``` # Node Stats curl -XGET 'http://localhost:9200/_nodes/stats/indices/?fields=field1,field2&pretty' # Indices Stat curl -XGET 'http://localhost:9200/_stats/fielddata/?fields=field1,field2&pretty' # You can use wildcards for field names curl -XGET 'http://localhost:9200/_stats/fielddata/?fields=field*&pretty' curl -XGET 'http://localhost:9200/_nodes/stats/indices/?fields=field*&pretty' ``` ## Search groups(搜索組) 您可以獲取關于在這個節點上執行搜索的 **search groups** 的統計信息。 ``` # All groups with all stats curl -XGET 'http://localhost:9200/_nodes/stats?pretty&groups=_all' # Some groups from just the indices stats curl -XGET 'http://localhost:9200/_nodes/stats/indices?pretty&groups=foo,bar' ``` ## Ingest statistics(攝取數據的統計信息) 可以設置 **ingest** 標記以獲取與攝取數據有關的統計信息 :? | 標記 | 描述 | | --- | --- | | ingest.total.count | The total number of document ingested during the lifetime of this node | | ingest.total.time_in_millis | The total time spent on ingest preprocessing documents during the lifetime of this node | | ingest.total.current | The total number of documents currently being ingested. | | ingest.total.failed | The total number ingest preprocessing operations failed during the lifetime of this node | 除了全部的攝取數據統計信息之外,在每一個管道的基礎之上也提供了這些統計信息。
                  <ruby id="bdb3f"></ruby>

                  <p id="bdb3f"><cite id="bdb3f"></cite></p>

                    <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
                      <p id="bdb3f"><cite id="bdb3f"></cite></p>

                        <pre id="bdb3f"></pre>
                        <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

                        <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
                        <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

                        <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                              <ruby id="bdb3f"></ruby>

                              哎呀哎呀视频在线观看