You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-user@lucene.apache.org by Walter Underwood <wu...@wunderwood.org> on 2018/09/26 17:10:38 UTC

Telegraf monitoring for Solr Cluster

I’m still learning Telegraf/InfluxDB, but I like it so far. Does anybody have experience adding simple URL-based probes? For example, I’d like to graph this for each collection.

http://mycluster:8983/solr/mycollection/select?q=${query}&rows=0&wt=json" | jq -r .response.numFound

And this for each core. The script to get the nodes and cores is some scary bash code, I probably should have done this in Python.

curl -s "http://$url_frag/${cores[i]}/replication?_=1535148863458&command=details&wt=json" | jq -r '.details.indexSize' | cut -d ' ' -f 1

The CPU and disk monitoring was easy to set up.

wunder
Walter Underwood
wunder@wunderwood.org
http://observer.wunderwood.org/  (my blog)