Skip to content

Commit

Permalink
Bug 1883719: Bulk statistics are recorded under write threadpool
Browse files Browse the repository at this point in the history
Bulk threadpool was renamed to index. See elastic/elasticsearch#29593
  • Loading branch information
lukas-vlcek authored and openshift-cherrypick-robot committed Oct 14, 2020
1 parent b411ff5 commit 4dde968
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
8 changes: 4 additions & 4 deletions files/prometheus_alerts.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,12 @@
"labels":
"severity": "warning"

- "alert": "ElasticsearchIndexingRequestsRejectionJumps"
- "alert": "ElasticsearchWriteRequestsRejectionJumps"
"annotations":
"message": "High Indexing Rejection Ratio at {{ $labels.node }} node in {{ $labels.cluster }} cluster. This node may not be keeping up with the indexing speed."
"summary": "High Indexing Rejection Ratio - {{ $value }}%"
"message": "High Write Rejection Ratio at {{ $labels.node }} node in {{ $labels.cluster }} cluster. This node may not be keeping up with the indexing speed."
"summary": "High Write Rejection Ratio - {{ $value }}%"
"expr": |
round( indexing:reject_ratio:rate2m * 100, 0.001 ) > 5
round( writing:reject_ratio:rate2m * 100, 0.001 ) > 5
"for": "10m"
"labels":
"severity": "warning"
Expand Down
12 changes: 6 additions & 6 deletions files/prometheus_rules.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@
- "name": "logging_elasticsearch.rules"
"rules":
- "expr": |
rate(es_threadpool_threads_count{name="index", type="rejected"}[2m])
"record": "indexing:rejected_requests:rate2m"
rate(es_threadpool_threads_count{name="write", type="rejected"}[2m])
"record": "writing:rejected_requests:rate2m"
- "expr": |
rate(es_threadpool_threads_count{name="index", type="completed"}[2m])
"record": "indexing:completed_requests:rate2m"
rate(es_threadpool_threads_count{name="write", type="completed"}[2m])
"record": "writing:completed_requests:rate2m"
- "expr": |
sum by (cluster, instance, node) (indexing:rejected_requests:rate2m) / on (cluster, instance, node) (indexing:completed_requests:rate2m)
"record": "indexing:reject_ratio:rate2m"
sum by (cluster, instance, node) (writing:rejected_requests:rate2m) / on (cluster, instance, node) (writing:completed_requests:rate2m)
"record": "writing:reject_ratio:rate2m"

0 comments on commit 4dde968

Please sign in to comment.