# Indexer failures metrics

**URL:** <https://community.graylog.org/t/indexer-failures-metrics/26587>\
**Category:** Graylog Central (peer support)\
**Tags:** alert\
**Created:** [November 17, 2022, 8:06pm UTC](https://community.graylog.org/t/indexer-failures-metrics/26587 "2022-11-17T20:06:27Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![lmontesoro](https://avatars.discourse-cdn.com/v4/letter/l/e99b99/32.png) [@lmontesoro](https://community.graylog.org/u/lmontesoro)\
**Post date:** [November 17, 2022, 8:06pm UTC](https://community.graylog.org/t/indexer-failures-metrics/26587/1 "2022-11-17T20:06:27Z")

</div>

Hi !

I need to generate an alert on the indexer failure count. I found via api “api/system/metrics”, these metrics that do not reflect the actual number of indexer failures:

“org.graylog2.periodical.IndexFailuresPeriodical.queueSize”  
“org.graylog2.outputs.ElasticSearchOutput.failures”

but in api “/system/indexer/failures/count” i see:

 ![image](https://us1.discourse-cdn.com/flex016/uploads/graylog/original/2X/3/3154ef6cc7898f680c2a239729aaa656e59bc097.png)

Any idea what is the metric that corresponds to this api method?

thanks a lot !

---

<div class="post-metadata">

**Author:** ![gsmith](https://sea2.discourse-cdn.com/flex016/user_avatar/community.graylog.org/gsmith/32/1222_2.png) [@gsmith](https://community.graylog.org/u/gsmith)\
**Post date:** [November 19, 2022, 5:26am UTC](https://community.graylog.org/t/indexer-failures-metrics/26587/2 "2022-11-19T05:26:39Z")

</div>

Hello, @lmontesoro

The thing is , those are found in the stream called `Processing and Indexing Failures`, you can create a widget for that stream and perhaps be able to the show “count” from you picture you posted, but any more details I would look into Grafana or if you under 2 Gb a day it free then try out the Operation/enterprise license.

---

<div class="post-metadata">

**Author:** ![lmontesoro](https://avatars.discourse-cdn.com/v4/letter/l/e99b99/32.png) [@lmontesoro](https://community.graylog.org/u/lmontesoro)\
**Post date:** [November 22, 2022, 12:49am UTC](https://community.graylog.org/t/indexer-failures-metrics/26587/3 "2022-11-22T00:49:19Z")

</div>

Hi @gsmith , thanks for your reply!

In my streams, I only found my custom streams. Should I create the “Processing and Indexing Failures” ?

About Grafana, it’s a good approach, but what would be the metric that I should ‘count’ in this case?

thanks!

---

<div class="post-metadata">

**Author:** ![gsmith](https://sea2.discourse-cdn.com/flex016/user_avatar/community.graylog.org/gsmith/32/1222_2.png) [@gsmith](https://community.graylog.org/u/gsmith)\
**Post date:** [November 22, 2022, 12:55am UTC](https://community.graylog.org/t/indexer-failures-metrics/26587/4 "2022-11-22T00:55:13Z")

</div>

> [@lmontesoro](#):
>
> In my streams, I only found my custom streams. Should I create the “Processing and Indexing Failures” ?

That is default , no need to create that stream.

> [@lmontesoro](#):
>
> About Grafana, it’s a good approach, but what would be the metric that I should ‘count’ in this case?

Not sure, I would look under “System/Node” click on the button called " Metric" and find what you want.  
Example:

 ![image](https://us1.discourse-cdn.com/flex016/uploads/graylog/original/2X/c/c65b9e9c8fefea4fb32f702daa4f290c52a9b3f3.png)

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex016/uploads/graylog/original/3X/c/7/c7c09c6b5099570133d6502b83f50ba4430de5b6.png) [@system](https://community.graylog.org/u/system)\
**Post date:** [December 6, 2022, 12:55am UTC](https://community.graylog.org/t/indexer-failures-metrics/26587/5 "2022-12-06T00:55:57Z")

</div>

Closed on December 6, 2022, 12:55am UTC

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.
