# Get Perf Counters for ElasticSearch Nodes using JSON

**URL:** <https://discuss.elastic.co/t/get-perf-counters-for-elasticsearch-nodes-using-json/18712>\
**Category:** Elasticsearch\
**Created:** [July 17, 2014, 12:14am UTC](https://discuss.elastic.co/t/get-perf-counters-for-elasticsearch-nodes-using-json/18712 "2014-07-17T00:14:00Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![krishna\_2](https://avatars.discourse-cdn.com/v4/letter/k/bbce88/32.png) [@krishna\_2](https://discuss.elastic.co/u/krishna_2)\
**Post date:** [July 17, 2014, 12:14am UTC](https://discuss.elastic.co/t/get-perf-counters-for-elasticsearch-nodes-using-json/18712/1 "2014-07-17T00:14:00Z")

</div>

Hi

I need to read the Performance counters (OS CPU%,JVM Memory,Disk Free  
Space,Iops) of the elastic search nodes using JSON in my C#.NET  
application. To do that first I need the JSON query to get the counters  
like the ones that appear under "Nodes" section in Marvel webpage.

Does anyone know how to get that? I know it should be something like we get  
when we click "Inspect" element in marvel. (something like below) but I  
don't see any "Inspect" element for the "nodes" section.

The following JSON query seems to be for Document section.

GET .marvel-2014.07.16/\_search?pretty  
{  
"facets": {  
"0": {  
"date\_histogram": {  
"key\_field": "@timestamp",  
"value\_field": "total.search.query\_total",  
"interval": "1m"  
},  
"global": true,  
"facet\_filter": {  
"fquery": {  
"query": {  
"filtered": {  
"query": {  
"query\_string": {  
"query": "\_type:indices\_stats"  
} ....................  
...............................

Appreciate if anyone can provide some pointers on this?

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/8e44e3d3-a4c4-4f7b-a278-7cebd7f31845%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/8e44e3d3-a4c4-4f7b-a278-7cebd7f31845%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [July 17, 2014, 12:16am UTC](https://discuss.elastic.co/t/get-perf-counters-for-elasticsearch-nodes-using-json/18712/2 "2014-07-17T00:16:14Z")

</div>

You will want the cat API to start, then check out the cluster one next.

> **[Elasticsearch Platform — Find real-time answers at scale](https://www.elastic.co)**
>
> Power insights and outcomes with the Elasticsearch Platform and AI. See into your data and find answers that matter with enterprise solutions designed to help you build, observe, and protect. Try Elasticsearch free today.

Regards,  
Mark Walkom

Infrastructure Engineer  
Campaign Monitor  
email: [markw@campaignmonitor.com](mailto:markw@campaignmonitor.com)  
web: [www.campaignmonitor.com](http://www.campaignmonitor.com)

On 17 July 2014 10:14, Krishna [nvamshikrishna@gmail.com](mailto:nvamshikrishna@gmail.com) wrote:

> Hi
> 
> I need to read the Performance counters (OS CPU%,JVM Memory,Disk Free  
> Space,Iops) of the Elasticsearch nodes using JSON in my C#.NET  
> application. To do that first I need the JSON query to get the counters  
> like the ones that appear under "Nodes" section in Marvel webpage.
> 
> Does anyone know how to get that? I know it should be something like we  
> get when we click "Inspect" element in marvel. (something like below) but I  
> don't see any "Inspect" element for the "nodes" section.
> 
> The following JSON query seems to be for Document section.
> 
> GET .marvel-2014.07.16/\_search?pretty  
> {  
> "facets": {  
> "0": {  
> "date\_histogram": {  
> "key\_field": "@timestamp",  
> "value\_field": "total.search.query\_total",  
> "interval": "1m"  
> },  
> "global": true,  
> "facet\_filter": {  
> "fquery": {  
> "query": {  
> "filtered": {  
> "query": {  
> "query\_string": {  
> "query": "\_type:indices\_stats"  
> } ....................  
> ...............................
> 
> Appreciate if anyone can provide some pointers on this?
> 
> --  
> You received this message because you are subscribed to the Google Groups  
> "elasticsearch" group.  
> To unsubscribe from this group and stop receiving emails from it, send an  
> email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> To view this discussion on the web visit  
> [https://groups.google.com/d/msgid/elasticsearch/8e44e3d3-a4c4-4f7b-a278-7cebd7f31845%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/8e44e3d3-a4c4-4f7b-a278-7cebd7f31845%40googlegroups.com)  
> [https://groups.google.com/d/msgid/elasticsearch/8e44e3d3-a4c4-4f7b-a278-7cebd7f31845%40googlegroups.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/8e44e3d3-a4c4-4f7b-a278-7cebd7f31845%40googlegroups.com?utm_medium=email&utm_source=footer)  
> .  
> For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/CAEM624bR975QP3WmVLTPDHXGT-DZxrNyOtWGxM%3Dn%3DzPQUH3MzA%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CAEM624bR975QP3WmVLTPDHXGT-DZxrNyOtWGxM%3Dn%3DzPQUH3MzA%40mail.gmail.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![otisg](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/otisg/32/492_2.png) [@otisg](https://discuss.elastic.co/u/otisg)\
**Post date:** [July 19, 2014, 4:29am UTC](https://discuss.elastic.co/t/get-perf-counters-for-elasticsearch-nodes-using-json/18712/3 "2014-07-19T04:29:46Z")

</div>

Are you looking for something  
like [Elastic — The Search AI Company | Elastic](http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/cluster-stats.html)  
?

## Otis

Performance Monitoring \* Log Analytics \* Search Analytics  
Solr & Elasticsearch Support \* [http://sematext.com/](http://sematext.com/)

On Wednesday, July 16, 2014 8:14:00 PM UTC-4, Krishna wrote:

> Hi
> 
> I need to read the Performance counters (OS CPU%,JVM Memory,Disk Free  
> Space,Iops) of the Elasticsearch nodes using JSON in my C#.NET  
> application. To do that first I need the JSON query to get the counters  
> like the ones that appear under "Nodes" section in Marvel webpage.
> 
> Does anyone know how to get that? I know it should be something like we  
> get when we click "Inspect" element in marvel. (something like below) but I  
> don't see any "Inspect" element for the "nodes" section.
> 
> The following JSON query seems to be for Document section.
> 
> GET .marvel-2014.07.16/\_search?pretty  
> {  
> "facets": {  
> "0": {  
> "date\_histogram": {  
> "key\_field": "@timestamp",  
> "value\_field": "total.search.query\_total",  
> "interval": "1m"  
> },  
> "global": true,  
> "facet\_filter": {  
> "fquery": {  
> "query": {  
> "filtered": {  
> "query": {  
> "query\_string": {  
> "query": "\_type:indices\_stats"  
> } ....................  
> ...............................
> 
> Appreciate if anyone can provide some pointers on this?

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/83d395c5-2312-4b20-8a4f-6b708e0c3ed3%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/83d395c5-2312-4b20-8a4f-6b708e0c3ed3%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![krishna\_2](https://avatars.discourse-cdn.com/v4/letter/k/bbce88/32.png) [@krishna\_2](https://discuss.elastic.co/u/krishna_2)\
**Post date:** [July 22, 2014, 6:00pm UTC](https://discuss.elastic.co/t/get-perf-counters-for-elasticsearch-nodes-using-json/18712/4 "2014-07-22T18:00:06Z")

</div>

Thanks Otis, I am looking for Node level stats (Each nodes's  
CPU/Memory/Disk space etc). Looks like cluster API gives cluster level  
stats. I also looked at the above reply by Mark but looks like results from  
CAT apis are a bit difficult to parse using JSON as mentioned in  
[elasticsearch.org](http://elasticsearch.org). I was trying to use Query DSL to get Perf results in  
JSON format for each node but not successful so far yet.

Any hints would be appreciated.

On Friday, July 18, 2014 9:29:46 PM UTC-7, Otis Gospodnetic wrote:

> Are you looking for something like  
> [Elasticsearch Platform — Find real-time answers at scale | Elastic](http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/cluster-stats.html)  
> ?
> 
> ## Otis
> 
> Performance Monitoring \* Log Analytics \* Search Analytics  
> Solr & Elasticsearch Support \* [http://sematext.com/](http://sematext.com/)
> 
> On Wednesday, July 16, 2014 8:14:00 PM UTC-4, Krishna wrote:
> 
> > Hi
> > 
> > I need to read the Performance counters (OS CPU%,JVM Memory,Disk Free  
> > Space,Iops) of the Elasticsearch nodes using JSON in my C#.NET  
> > application. To do that first I need the JSON query to get the counters  
> > like the ones that appear under "Nodes" section in Marvel webpage.
> > 
> > Does anyone know how to get that? I know it should be something like we  
> > get when we click "Inspect" element in marvel. (something like below) but I  
> > don't see any "Inspect" element for the "nodes" section.
> > 
> > The following JSON query seems to be for Document section.
> > 
> > GET .marvel-2014.07.16/\_search?pretty  
> > {  
> > "facets": {  
> > "0": {  
> > "date\_histogram": {  
> > "key\_field": "@timestamp",  
> > "value\_field": "total.search.query\_total",  
> > "interval": "1m"  
> > },  
> > "global": true,  
> > "facet\_filter": {  
> > "fquery": {  
> > "query": {  
> > "filtered": {  
> > "query": {  
> > "query\_string": {  
> > "query": "\_type:indices\_stats"  
> > } ....................  
> > ...............................
> > 
> > Appreciate if anyone can provide some pointers on this?

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/e4912754-0328-46ab-a770-04dba20fae06%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/e4912754-0328-46ab-a770-04dba20fae06%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [July 6, 2017, 1:14am UTC](https://discuss.elastic.co/t/get-perf-counters-for-elasticsearch-nodes-using-json/18712/5 "2017-07-06T01:14:10Z")

</div>

Closed on July 6, 2017, 1:14am UTC


