Skip to content

Latest commit

 

History

History
40 lines (34 loc) · 1.33 KB

File metadata and controls

40 lines (34 loc) · 1.33 KB

Syntax Things

servers.csc.aws1prdcsc{9,1[012]}_csprod_ctgrd_com.cpu_wio

this would also work

servers.csc.aws1prdcsc{9,10,11,12}_csprod_ctgrd_com.cpu_wio

Reformat Legend names to remove FQDN and show last value in legend.

legendValue(aliasSub(servers.pmz.aws1prdpmz1_webprod_ctgrd_com.mongo.opcounters.*,".*aws1([^_]*).*mongo.opcounters.(\w*)", "\1-\2"),"last")

Reformat Legend names to remove FQDN

aliasSub(servers.pmz.aws1prdpmz3_webprod_ctgrd_com.mongo.opcounters.*,".*aws1([^_]*).*mongo.opcounters.(\w*)", "\1-\2")

whispher file resizing..

find fxpp-bid503* -type f -name "dsp_*"  -exec whisper-resize.py {} 60s:2d 15m:31d --nobackup \;

CURL Request

curl  -gks "https://$GRAPHITE/render?from=-2hours&format=csv&target=ganglia.FOPP-EMX0-LAB1.fopp-emx0000_lab1_fanops_net.load_one“
curl  -gks "https://$GRAPHITE/render?from=-2hours&format=json&target=ganglia.FOPP-EMX0-LAB1.fopp-emx0000_lab1_fanops_net.load_one"

Send a metric to carbon

echo "local.random.diceroll 4 `date +%s`" | nc  graphite 3003
echo "ganglia.FDTP-NRT0-IAD3.fdtp-nrt0000_iad3_fanops_net.load_five 1 `date +%s`" | nc  graphite 3003

TCP Dump to watch for metrics

tcpdump  -nn -A  not dst port 22 and not src port 22 and tcp | grep dc.sum.IAD2.FRP.BID.bids_requested