# pt-stalk usage questions

**URL:** <https://forums.percona.com/t/pt-stalk-usage-questions/3752>\
**Category:** Percona Toolkit\
**Created:** [September 18, 2014, 9:07am UTC](https://forums.percona.com/t/pt-stalk-usage-questions/3752 "2014-09-18T09:07:03Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![krishna](https://avatars.discourse-cdn.com/v4/letter/k/71c47a/32.png) [@krishna](https://forums.percona.com/u/krishna)\
**Post date:** [September 18, 2014, 9:07am UTC](https://forums.percona.com/t/pt-stalk-usage-questions/3752/1 "2014-09-18T09:07:03Z")

</div>

Hi Team,

Could anyone give me more examples wrt pt-stalk with examples and options like --cycles --deamonize --function --match --threshold --disc-pct-free —retention-time including the output would be more clear. I have been through the link [url][http://www.percona.com/doc/percona-toolkit/2.2/pt-stalk.html[/url]](http://www.percona.com/doc/percona-toolkit/2.2/pt-stalk.html%5B/url%5D) but require more clarification with examples. Please Help!!

Best Regards,  
Krishna

---

<div class="post-metadata">

**Author:** ![krishna](https://avatars.discourse-cdn.com/v4/letter/k/71c47a/32.png) [@krishna](https://forums.percona.com/u/krishna)\
**Post date:** [October 2, 2014, 8:11am UTC](https://forums.percona.com/t/pt-stalk-usage-questions/3752/2 "2014-10-02T08:11:09Z")

</div>

Hi Tom,

Thanks for the detailed explanation that is being shared, the recorded webinar was wonderful. However, would like to know more about pt-stalk --threshold information. The information available in the blog is not enough for me. I would need more examples such that I can check as below using pt-stalk:

1. What is the importance of threshold.
2. When threshold is given as 10, does that mean 10 connections are opened or collect the information keeping in view when 10 threads are running.
3. In general the default value of threshold is 25 or how much.
4. What does connections imply in this case here. Is it connections to DB or what?
5. How can we best use the option threshold to capture the average throughput, let me know if there is any other option through which we can get them.
6. Can we get the details related to dashboard, ganglia and mysql services running using any of the options in pt-stalk please specify.

Please suggest!

Best Regards,  
Krishna

---

<div class="post-metadata">

**Author:** ![krishna](https://avatars.discourse-cdn.com/v4/letter/k/71c47a/32.png) [@krishna](https://forums.percona.com/u/krishna)\
**Post date:** [October 2, 2014, 9:50am UTC](https://forums.percona.com/t/pt-stalk-usage-questions/3752/3 "2014-10-02T09:50:07Z")

</div>

Thanks Tom,

Been through the documentation as I mentioned in the first email, but need more clarity on that. Hence, look forward to hear from PT Toolkit expert to help me find answer to my queries.

Best Regards,  
KP

---

<div class="post-metadata">

**Author:** ![mirfan](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.percona.com/mirfan/32/16890_2.png) [@mirfan](https://forums.percona.com/u/mirfan)\
**Post date:** [October 4, 2014, 3:18am UTC](https://forums.percona.com/t/pt-stalk-usage-questions/3752/4 "2014-10-04T03:18:33Z")

</div>

Let me show you couple of examples of [pt-stalk](http://www.percona.com/doc/percona-toolkit/2.2/pt-stalk.html)  
sudo ./pt-stalk --no-stalk --iterations=2 --sleep=30 --dest=$PTDEST – --user=root --pass=;

Here --no-stalk will start collecting data immediately and --iterations tells how many times to collect diagnostic data while --sleep tells how long to sleep (in seconds) between each data collection cycle and --daemonize will run the job in background continuously and start collecting data when pt-stalk triggers on specified condition. You will find full documentation in pt-stalk doc here [URL][http://www.percona.com/doc/percona-toolkit/2.2/pt-stalk.html[/URL]](http://www.percona.com/doc/percona-toolkit/2.2/pt-stalk.html%5B/URL%5D)

To get an example of --function along pt-stalk you will find good example of it in my post here [url][http://www.percona.com/blog/2014/05/02/how-to-identify-and-cure-mysql-replication-slave-lag/[/url]](http://www.percona.com/blog/2014/05/02/how-to-identify-and-cure-mysql-replication-slave-lag/%5B/url%5D)

Hope that helps.

---

<div class="post-metadata">

**Author:** ![krishna](https://avatars.discourse-cdn.com/v4/letter/k/71c47a/32.png) [@krishna](https://forums.percona.com/u/krishna)\
**Post date:** [October 21, 2014, 4:23pm UTC](https://forums.percona.com/t/pt-stalk-usage-questions/3752/5 "2014-10-21T16:23:08Z")

</div>

Thanks Irfan, It did help.
