Skip to content

Instantly share code, notes, and snippets.

@portante
Created August 1, 2017 21:42
Show Gist options
  • Save portante/99f3b6a130cb6cf0c24711a9cd7ecd70 to your computer and use it in GitHub Desktop.
Save portante/99f3b6a130cb6cf0c24711a9cd7ecd70 to your computer and use it in GitHub Desktop.
Example oc exec to fetch bulk stats from ES in OpenShift (3.4 and later)
root@ip-172-31-49-18: ~ # export espod=logging-es-data-master-siovwe17-7-hxpp9
root@ip-172-31-49-18: ~ # oc exec $espod -- curl -s -k --cert /etc/elasticsearch/secret/admin-cert --key /etc/elasticsearch/secret/admin-key https://localhost:9200/_cat/thread_pool?v\&h=host,bulk.rejected,bulk.queue,bulk.queueSize,bulk.largest,bulk.completed
host bulk.rejected bulk.queue bulk.queueSize bulk.largest bulk.completed
172.20.9.25 0 0 404 0 0
172.20.1.25 0 0 404 4 35
172.20.2.30 0 0 404 4 18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment