{"id":29153,"date":"2014-04-29T21:06:08","date_gmt":"2014-04-29T21:06:08","guid":{"rendered":"https:\/\/wordpress.org\/plugins-wp\/statsd\/"},"modified":"2020-08-18T02:10:54","modified_gmt":"2020-08-18T02:10:54","slug":"statsd","status":"publish","type":"plugin","link":"https:\/\/pcd.wordpress.org\/plugins\/statsd\/","author":5099393,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_crdt_document":"","version":"0.2","stable_tag":"0.2","tested":"4.6.30","requires":"3.7","requires_php":"","requires_plugins":"","header_name":"StatsD WordPress Client","header_author":"Aaron Edwards","header_description":"","assets_banners_color":"131313","last_updated":"2020-08-18 02:10:54","external_support_url":"","external_repository_url":"","donate_link":"","header_plugin_uri":"http:\/\/wordpress.org\/extend\/plugins\/statsd\/","header_author_uri":"http:\/\/uglyrobot.com","rating":5,"author_block_rating":0,"active_installs":10,"downloads":3476,"num_ratings":1,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","faq","changelog"],"tags":[],"upgrade_notice":[],"ratings":{"1":0,"2":0,"3":0,"4":0,"5":"1"},"assets_icons":[],"assets_banners":{"banner-772x250.jpg":{"filename":"banner-772x250.jpg","revision":"905061","resolution":"772x250","location":"assets","locale":""}},"assets_blueprints":{},"all_blocks":[],"tagged_versions":["0.1","0.2"],"block_files":[],"assets_screenshots":{"screenshot-1.png":{"filename":"screenshot-1.png","revision":2363520,"resolution":"1","location":"plugin"},"screenshot-2.png":{"filename":"screenshot-2.png","revision":2363520,"resolution":"2","location":"plugin"}},"screenshots":{"1":"Example dashboard created in Graphite with data collected from this plugin.","2":"Track any other application stat in your WordPress site with 1 line of code in your plugin\/theme."},"jetpack_post_was_ever_published":false},"plugin_section":[],"plugin_tags":[33438,3283,441,522,58986],"plugin_category":[36,51,54],"plugin_contributors":[89987],"plugin_business_model":[],"class_list":["post-29153","plugin","type-plugin","status-publish","hentry","plugin_tags-graphite","plugin_tags-metrics","plugin_tags-multisite","plugin_tags-stats","plugin_tags-statsd","plugin_category-analytics","plugin_category-multisite","plugin_category-security-and-spam-protection","plugin_contributors-uglyrobot","plugin_committers-uglyrobot"],"banners":{"banner":"https:\/\/ps.w.org\/statsd\/assets\/banner-772x250.jpg?rev=905061","banner_2x":false,"banner_rtl":false,"banner_2x_rtl":false},"icons":{"svg":false,"icon":"https:\/\/s.w.org\/plugins\/geopattern-icon\/statsd_131313.svg","icon_2x":false,"generated":true},"screenshots":[{"src":"https:\/\/ps.w.org\/statsd\/trunk\/screenshot-1.png?rev=2363520","caption":"Example dashboard created in Graphite with data collected from this plugin."},{"src":"https:\/\/ps.w.org\/statsd\/trunk\/screenshot-2.png?rev=2363520","caption":"Track any other application stat in your WordPress site with 1 line of code in your plugin\/theme."}],"raw_content":"<!--section=description-->\n<p>For live environment no-latency massively-scalable application metric tracking and code profiling via <a href=\"http:\/\/codeascraft.com\/2011\/02\/15\/measure-anything-measure-everything\/\">Etsy's StatsD<\/a> + Graphite.<\/p>\n\n<p>Tracks everything in WordPress and Multisite:<\/p>\n\n<ul>\n<li>Logins (success, fails, logout) <\/li>\n<li>Password resets (attempts\/successes)<\/li>\n<li>User count (guage)<\/li>\n<li>Users (registrations, spam, ham)<\/li>\n<li>Posting (publish, trash, delete)<\/li>\n<li>Commenting (received, approved, trashed, spam, unspam)<\/li>\n<li>Attachments (Add, edit, delete)<\/li>\n<li>XML-RPC (every command individually, you can rollup)<\/li>\n<li>Multisite blog count (guage)<\/li>\n<li>Multiiste blog actions (new, spam, ham, archive, unarchive, delete, undelete)<\/li>\n<li>Page generation times<\/li>\n<li>Query count (type + time when SAVEQUERIES defined)<\/li>\n<li>Remote HTTP requests (count, time - by host)<\/li>\n<li>WP Cron calls<\/li>\n<li>WP Emails<\/li>\n<li>and more!<\/li>\n<\/ul>\n\n<p>Requires <a href=\"https:\/\/github.com\/etsy\/statsd\">StatsD<\/a> on localhost or a server on your private network.<\/p>\n\n<p>You can also call the $statsd global class in other plugin\/theme code for instant tracking of any application metric. See API usage instructions: https:\/\/github.com\/domnikl\/statsd-php\/blob\/develop\/README.md<\/p>\n\n<p>Contribute at <a href=\"https:\/\/github.com\/uglyrobot\/wordpress-statsd\">GitHub<\/a>.<\/p>\n\n<h3>To Do<\/h3>\n\n<p>Want to implement batch collection and send of metrics via one or minimal UDP packets required based on connection time.<\/p>\n\n<!--section=installation-->\n<ol>\n<li>Install <a href=\"https:\/\/github.com\/etsy\/statsd\">StatsD<\/a> on localhost or a server on your private network.<\/li>\n<li>If StatsD is not on localhost, define the local daemon IP in wp-config.php: <code>define( 'STATSD_IP', 'x.x.x.x' );<\/code><\/li>\n<li>Install the plugin<\/li>\n<li>Activate or Network Activate on multisite<\/li>\n<li>That's it!<\/li>\n<\/ol>\n\n<p>See the FAQ for more advanced configuration.<\/p>\n\n<!--section=faq-->\n<p>By default the parent namespace used for stats is \"yourdomain_yourpath.wordpress.<em>\" where yourdomain_yourpath would be \"www_domain_com_blog\" if your site is http:\/\/www.domain.com\/blog\/. You can override the parent namespace via the <code>define('STATSD_NAMESPACE', 'mysite.myserver');<\/code> define in wp-config.php. This one is very important, controls how it shows up in Graphite stats.\nThis should be segmented, left to right general to specific. All \".\" trigger segments. For example:\napplicationname.server like 'wpmudev.app1' or 'edublogs.web4'. That allows for drilling down, but can still wrapup in graphs with 'edublogs.<\/em>' etc.<\/p>\n\n<p>Can also be run as an mu-plugin by dropping statsd.php in <code>\/wp-content\/mu-plugins\/<\/code>.<\/p>\n\n<p>If needed you can overide the default UDP port of 8125 via <code>define('STATSD_PORT', xxxx);<\/code> define.<\/p>\n\n<p>If you have a very high traffic site you can lower the default 0.5 sample rate for per-pageload calls via <code>STATSD_SAMPLE_RATE<\/code>.<\/p>\n\n<p>If you don't want to send HTTP metrics per page URL, you can disable this via SKIP_URL_METRICS<\/p>\n\n<p>Contribute at <a href=\"https:\/\/github.com\/uglyrobot\/wordpress-statsd\">GitHub<\/a>.<\/p>\n\n<!--section=changelog-->\n<h4>0.2<\/h4>\n\n<ul>\n<li>Ability to disable per url metrics for HTTP calls via SKIP_URL_METRICS define - props @Sophie Haskins<\/li>\n<\/ul>\n\n<h4>0.1<\/h4>\n\n<ul>\n<li>Initial Release<\/li>\n<\/ul>","raw_excerpt":"For no-latency massively-scalable WP application metric tracking and code profiling via Etsy&#039;s StatsD + Graphite.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/29153","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=29153"}],"author":[{"embeddable":true,"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/uglyrobot"}],"wp:attachment":[{"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=29153"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=29153"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=29153"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=29153"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=29153"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=29153"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}