{"id":18402690,"url":"https://github.com/jasei/net-statsite-client","last_synced_at":"2026-03-11T15:34:51.251Z","repository":{"id":56835199,"uuid":"66652985","full_name":"JaSei/Net-Statsite-Client","owner":"JaSei","description":null,"archived":false,"fork":false,"pushed_at":"2017-03-01T15:03:20.000Z","size":21,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":22,"default_branch":"master","last_synced_at":"2025-02-16T03:44:37.060Z","etag":null,"topics":["module","perl","statsite"],"latest_commit_sha":null,"homepage":null,"language":"Perl","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/JaSei.png","metadata":{"files":{"readme":"README.md","changelog":"Changes","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-08-26T14:13:38.000Z","updated_at":"2019-04-29T09:08:12.000Z","dependencies_parsed_at":"2022-09-02T03:50:30.226Z","dependency_job_id":null,"html_url":"https://github.com/JaSei/Net-Statsite-Client","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JaSei%2FNet-Statsite-Client","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JaSei%2FNet-Statsite-Client/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JaSei%2FNet-Statsite-Client/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JaSei%2FNet-Statsite-Client/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/JaSei","download_url":"https://codeload.github.com/JaSei/Net-Statsite-Client/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248612742,"owners_count":21133363,"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":["module","perl","statsite"],"created_at":"2024-11-06T02:43:11.577Z","updated_at":"2025-12-12T02:47:54.340Z","avatar_url":"https://github.com/JaSei.png","language":"Perl","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Build Status](https://travis-ci.org/avast/Net-Statsite-Client.svg?branch=master)](https://travis-ci.org/avast/Net-Statsite-Client)\n# NAME\n\nNet::Statsite::Client - Object-Oriented Client for [statsite](http://armon.github.io/statsite) server\n\n# SYNOPSIS\n\n    use Net::Statsite::Client;\n    my $statsite = Net::Statsite::Client-\u003enew(\n        host   =\u003e 'localhost',\n        prefix =\u003e 'test',\n    );\n\n    $statsite-\u003eincrement('item'); #increment key test.item\n\n# DESCRIPTION\n\nNet::Statsite::Client is based on [Etsy::StatsD](https://metacpan.org/pod/Etsy::StatsD) but with new - `new` interface and `unique` method.\n\n# METHODS\n\n## new (host =\u003e $host, port =\u003e $port, sample\\_rate =\u003e $sample\\_rate, prefix =\u003e $prefix)\n\nCreate a new instance.\n\n_host_ - hostname of statsite server (default: localhost)\n\n_port_ - port of statsite server (port: 8125)\n\n_sample\\_rate_ - rate of sends metrics (default: 1)\n\n_prefix_ - prefix metric name (default: '')\n\n_proto_ - protocol (default: 'udp')\n\n## timing(STAT, TIME, SAMPLE\\_RATE)\n\nLog timing information (should be in miliseconds)\n\n## increment(STATS, SAMPLE\\_RATE)\n\nIncrement one of more stats counters.\n\n## decrement(STATS, SAMPLE\\_RATE)\n\nDecrement one of more stats counters.\n\n## update(STATS, DELTA, SAMPLE\\_RATE)\n\nUpdate one of more stats counters by arbitrary amounts.\n\n## unique(STATS, ITEM, SAMPLE\\_RATE)\n\nUnique Set\n\nFor example if you need count of unique ip adresses (per flush interval)\n    $stats-\u003eunique('ip.unique', $ip);\n\n## gauge(STATS, VALUE, SAMPLE\\_RATE)\n\nGauge Set (Gauge, similar to  kv  but only the last value per key is retained)\n\n## send(DATA, SAMPLE\\_RATE)\n\nSending logging data; implicitly called by most of the other methods.\n\n# CONTRIBUTING\n\nthe easiest way is use docker ([avastsoftware/perl-extended](https://hub.docker.com/r/avastsoftware/perl-extended/) - with [Carton](https://metacpan.org/pod/Carton) and [Minilla](https://metacpan.org/pod/Minilla))\n\nor [Carton](https://metacpan.org/pod/Carton) and `Minilla` itself (commands after `../perl-extended`) \n\ncarton (aka ruby bundle) for fetch dependency\n\n    docker run -v $PWD:/tmp/app -w /tmp/app avastsoftware/perl-extended carton\n\nand minil test for tests and regenerate meta and readme\n\n    docker run -v $PWD:/tmp/app -w /tmp/app avastsoftware/perl-extended carton exec minil test\n\n# LICENSE\n\nCopyright (C) Avast Software.\n\nThis library is free software; you can redistribute it and/or modify\nit under the same terms as Perl itself.\n\n# AUTHOR\n\nJan Seidl \u003cseidl@avast.com\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjasei%2Fnet-statsite-client","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjasei%2Fnet-statsite-client","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjasei%2Fnet-statsite-client/lists"}