← Back to team overview

graphite-dev team mailing list archive

[Question #216474]: Graphite Plot Stable On DTrace Script

 

New question #216474 on Graphite:
https://answers.launchpad.net/graphite/+question/216474

I Use this script on FreeBSD

#!/usr/sbin/dtrace -s
#pragma D option quiet

dtrace:::BEGIN
{
	printf("Sampling... Hit Ctrl-C to end.\n");
}

profile:::profile-1000hz
{
	@count[stringof(curlwpsinfo->pr_clname)]
	    = lquantize(curlwpsinfo->pr_pri, 0, 170, 10);
}

I send it with this syntaks
echo "dtrace.Ghost.kernel.entry 15 `date +s`" | nc 192.168.101.174 2003

In graphite on ubuntu the script was send, but the plot is nothing, so i configure example-client on ubuntu, add this script
lines.append("dtrace.Ghost.kernel.entry %s %d" % (loadavg[1],now))

The plot came out, but it is stable on 0.04, sometimes the plot up and down, 

What my mistake? 


-- 
You received this question notification because you are a member of
graphite-dev, which is an answer contact for Graphite.