{"id":13420425,"url":"https://github.com/jib/libvmod-statsd","last_synced_at":"2025-10-30T16:26:12.808Z","repository":{"id":4364329,"uuid":"5500705","full_name":"jib/libvmod-statsd","owner":"jib","description":"Varnish module to send statistics to statsd","archived":false,"fork":false,"pushed_at":"2018-03-21T14:41:38.000Z","size":58,"stargazers_count":63,"open_issues_count":5,"forks_count":22,"subscribers_count":7,"default_branch":"master","last_synced_at":"2024-05-20T04:11:16.468Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jib.png","metadata":{"files":{"readme":"README.rst","changelog":null,"contributing":null,"funding":null,"license":"COPYING","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2012-08-21T20:39:21.000Z","updated_at":"2023-10-13T18:48:27.000Z","dependencies_parsed_at":"2022-09-15T05:11:02.604Z","dependency_job_id":null,"html_url":"https://github.com/jib/libvmod-statsd","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jib%2Flibvmod-statsd","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jib%2Flibvmod-statsd/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jib%2Flibvmod-statsd/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jib%2Flibvmod-statsd/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jib","download_url":"https://codeload.github.com/jib/libvmod-statsd/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243695456,"owners_count":20332622,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-07-30T22:01:33.422Z","updated_at":"2025-10-30T16:26:07.761Z","avatar_url":"https://github.com/jib.png","language":"C","funding_links":[],"categories":["TODO scan for Android support in followings"],"sub_categories":[],"readme":"============\nvmod_statsd\n============\n\n----------------------\nVarnish Statsd Module\n----------------------\n\n:Author: Jos Boumans\n:Date: 2014-01-14\n:Version: 1.2\n:Manual section: 3\n\nSYNOPSIS\n========\n\n                import statsd;\n\n                sub vcl_init {\n                    # Optional, defaults to localhost:8125\n                    statsd.server( \"statsd.example.com\", \"8125\" );\n                }\n\n                sub vcl_deliver {\n                    statsd.incr(    \"incr\"          );\n                    statsd.gauge(   \"gauge\",    42  );\n                    statsd.timing(  \"timing\",   42  );\n                    statsd.counter( \"counter\",  42  );\n                }\n\nDESCRIPTION\n===========\n\nVarnish Module (vmod) for sending statistics to Statsd.\n\nSee https://github.com/etsy/statsd for documentation on Statsd.\n\nFUNCTIONS\n=========\n\nserver\n------\n\nPrototype::\n\n                server(STRING S, STRING S)\n\nReturn value\n\tNONE\nDescription\n\tSet the address of your Statsd server.\n\tBest used in vcl_init. Defaults to \"localhost\", \"8125\"\n\nExample::\n\n                statsd.server( \"statsd.example.com\", \"8125\" );\n\nprefix\n------\n\nPrototype::\n\n                prefix(STRING S)\n\nReturn value\n\tNONE\nDescription\n\tSet a string to prefix to all the stats you will be sending.\n\tBest used in vcl_init. Defaults to an empty string.\n\nExample::\n\n                # statsd.incr( \"foo\" ) will now send \"dev.foo\" to Statsd\n                statsd.prefix( \"dev.\" );\n\nsuffix\n------\n\nPrototype::\n\n                suffix(STRING S)\n\nReturn value\n\tNONE\nDescription\n\tSet a string to suffix to all the stats you will be sending.\n\tBest used in vcl_init. Defaults to an empty string.\n\nExample::\n\n                # statsd.incr( \"foo\" ) will now send \"foo.dev\" to Statsd\n                statsd.suffix( \".dev\" );\n\nincr\n----\n\nPrototype::\n\n                incr(STRING S)\n\nReturn value\n\tNONE\nDescription\n\tSend a stat counter with value '1' to Statsd. Will be prefixed \u0026 suffixed\n\twith whatever you set statsd.prefix \u0026 statsd.suffix to.\n\nExample::\n\n                statsd.incr( \"foo\" );\n\ncounter\n-------\n\nPrototype::\n\n                counter(STRING S, INT I)\n\nReturn value\n\tNONE\nDescription\n\tSend a stat counter with value I to Statsd. Will be prefixed \u0026 suffixed\n\twith whatever you set statsd.prefix \u0026 statsd.suffix to.\n\nExample::\n\n                statsd.counter( \"foo\", 42 );\n\ntiming\n-------\n\nPrototype::\n\n                timing(STRING S, INT I)\n\nReturn value\n\tNONE\nDescription\n\tSend a stat timer with value I to Statsd. Will be prefixed \u0026 suffixed\n\twith whatever you set statsd.prefix \u0026 statsd.suffix to.\n\nExample::\n\n                statsd.timing( \"foo\", 42 );\n\ngauge\n-----\n\nPrototype::\n\n                gauge(STRING S, INT I)\n\nReturn value\n\tNONE\nDescription\n\tSend a stat gauge with value I to Statsd. Will be prefixed \u0026 suffixed\n\twith whatever you set statsd.prefix \u0026 statsd.suffix to.\n\nExample::\n\n                statsd.gauge( \"foo\", 42 );\n\n\nINSTALLATION\n============\n\nTo install this module, you'll need to install some prerequisites. On Ubuntu,\nyou can get these by running::\n\n $ apt-get install automake libtool python-docutils libvarnishapi-dev make\n\nYou will also need a compiled version of the varnish source code, which you\ncan get from here:\n\n https://www.varnish-cache.org\n\nThe compilation of varnish is similar to this package. Please refer to the\nvarnish documentation for all the options, but briefly, it is::\n\n $ ./autogen.sh\n $ ./configure\n $ make\n\nIf you received this packge without a pre-generated configure script, you will\nhave to generate it using 'autogen.sh'. Otherwise, you can move straight on to\nthe 'configure' section under Usage.\n\nUsage::\n\n # Generate configure script\n ./autogen.sh\n\n # Execute configure script\n ./configure VARNISHSRC=DIR [VMODDIR=DIR]\n\n`VARNISHSRC` is the directory of the Varnish source tree for which to\ncompile your vmod. Both the `VARNISHSRC` and `VARNISHSRC/include`\nwill be added to the include search paths for your module.\n\nOptionally you can also set the vmod install directory by adding\n`VMODDIR=DIR` (defaults to the pkg-config discovered directory from your\nVarnish installation).\n\nMake targets:\n\n* make - builds the vmod\n* make install - installs your vmod in `VMODDIR`\n* make check - runs the unit tests in ``src/tests/*.vtc``\n\n\nSEE ALSO\n========\n\n* https://github.com/etsy/statsd\n* https://www.varnish-cache.org\n* http://jiboumans.wordpress.com/2013/02/27/realtime-stats-from-varnish/\n* https://gist.github.com/jib/5034755\n\nCOPYRIGHT\n=========\n\nThis document is licensed under the same license as the\nlibvmod-statsd project. See LICENSE for details.\n\n* Copyright (c) 2012 Jos Boumans\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjib%2Flibvmod-statsd","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjib%2Flibvmod-statsd","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjib%2Flibvmod-statsd/lists"}