Skip to content
dan edited this page Jun 14, 2013 · 1 revision

Thanks to this great plugin, I'm able to monitor ElasticSearch metrics, here are some of my examples:

ElasticSearch Checks

 check_http_json-string!9200!_cluster/health!status!green
 
 check_http_json!9200!_cluster/nodes/_local/stats!-e cluster_name -R NameofYourCluster
 
 check_http_json!9200!_cluster/nodes/_local/stats!-E indices.cache.field_size_in_bytes -w 1000000 -c 2000000
 
 check_http_json!9200!_cluster/nodes/_local/stats!-E indices.cache.filter_size_in_bytes -w 200000 -c 400000
 
 check_http_json!9200!_cluster/nodes/_local/stats!-E indices.docs.count -w 50000 -c 100000
 
 check_http_json!9200!_cluster/nodes/_local/stats!-E indices.docs.deleted -w 500 -c 1000
 
 check_http_json!9200!_cluster/nodes/_local/stats!-E indices.flush.total -w 10000 -c 20000
 
 check_http_json!9200!_cluster/nodes/_local/stats!-E indices.flush.total_time_in_millis -w 10000 -c 20000
 
 check_http_json!9200!_cluster/nodes/_local/stats!-E indices.store.size_in_bytes -w 100000000 -c 200000000
 
 check_http_json!9200!_cluster/nodes/_local/stats!-E indices.search.fetch_time_in_millis -w 20000 -c 40000
 
 check_http_json!9200!_cluster/nodes/_local/stats!-E indices.search.query_time_in_millis -w 50000 -c 1000000
 
 check_http_json-int!9200!_cluster/health!number_of_nodes!2:!1:

ElasticSearch Command Definitions

define command {
    command_name    check_http_json-string
    command_line    $USER2$/check_http_json.rb -u 'http://$HOSTNAME$:$ARG1$/$ARG2$' -e '$ARG3$' -r '$ARG4$'
}

define command {
    command_name    check_http_json
    command_line    $USER2$/check_http_json.rb -u 'http://$HOSTNAME$:$ARG1$/$ARG2$' $ARG3$ 
}

define command{
    command_name    check_http_json-int
    command_line    $USER2$/check_http_json.rb -u 'http://$HOSTNAME$:$ARG1$/$ARG2$' -e '$ARG3$' -w '$ARG4$' -c '$ARG5$'
}

Thanks again, Aled

Clone this wiki locally