perl-Net-Dogstatsd-1.0.3-alt1.noarch.rpm


Advertisement

Description

perl-Net-Dogstatsd - Perl client to Datadog's dogstatsd metrics collector

Property Value
Distribution ALT Linux Sisyphus
Repository Autoimports noarch
Package name perl-Net-Dogstatsd
Package version 1.0.3
Package release alt1
Package architecture noarch
Package type rpm
Installed size 59.20 KB
Download size 59.20 KB
Official Mirror ftp.altlinux.org
This module allows you to send multiple types of metrics to the Datadog service
via dogstatsd, a local daemon installed by Datadog agent package.
_use Net::Dogstatsd;
_# Create an object to communicate with Dogstatsd, using default server/port settings.
_my $dogstatsd = Net::Dogstatsd->new(
__host    => 'localhost',  #optional. Default = 127.0.0.1
__port    => '8125',       #optional. Default = 8125
__verbose => 0,            #optional. Default = 0
_);
_
_# Set, and print, the 'verbose' option value.
_$dogstatsd->verbose(1);
_print "In verbose mode." if $dogstatsd->verbose();
_
_# Before we can start sending metrics, we have to get or create a socket to dogstatsd
_my $socket = $dogstatsd->get_socket();
_
_# Counter metrics can be incremented or decremented
_# By default, they will be incremented or decremented by 1, unless the optional
_# 'value' parameter is passed
_$dogstatsd->increment(
__name  => 'test_metric.sample_counter',
__value => $increment_value, #optional; default = 1
__tags  => [ 'env:production', db ], #optional
_);
_
_$dogstatsd->decrement(
__name  => $metric_name,
__value => $decrement_value, #optional; default = 1
__tags  => [ 'env:devel', web ], #optional
_);
_
_
_# Gauge metrics can be used for capturing value of something over time
_# Example: Gas gauge, inventory level, free memory
_$dogstatsd->gauge(
__name  => 'test_metric.inventory_level',
__value => $gauge_value, #required - must be a number
__tags  => [ 'warehouse:us' ], #optional
_);
_
_
_# Histogram metrics measure the statistical distribution of a set of values.
_# Provides min/max/avg as well as 75th, 85th, 95th and 99th percentiles.
_# NOTE: do not use this for timers. Use timer() instead.
_$dogstatsd->histogram(
__name  => $metric_name,
__value => $value,
__tags  => [ 'tag1', 'tag2:value', 'tag3' ], #optional
_);
_
_
_# Timers are a special type of histogram.
_$dogstatsd->timer(
__name  => $metric_name,
__value => $metric_value,
__unit  => $metric_unit, # 'ms' (milliseconds) or 's|sec' (seconds)
__tags  => [ 'tag1', 'tag2:value', 'tag3' ], #optional
_);
_
_
_# Set metrics are special counters that can track unique elements in a group.
_# Example: the number of unique visitors currently on a website
_$dogstatsd->sets(
__name  => 'unique.site_visitors',
__value => $account_id,
__tags  => [ 'referer:Google' ], #optional
_);
_

Alternatives

Package Version Architecture Repository
perl-Net-Dogstatsd - - -

Requires

Name Value
/usr/share/perl5 -
perl(Data/Dumper.pm) -
perl(Data/Validate/Type.pm) -
perl(IO/Socket/INET.pm) -
perl(Try/Tiny.pm) -
rpmlib(PayloadIsLzma) -

Provides

Name Value
perl(Net/Dogstatsd.pm) = 1.0.003
perl-Net-Dogstatsd = 1.0.3-alt1

Download

Type URL
Binary Package perl-Net-Dogstatsd-1.0.3-alt1.noarch.rpm
Source Package perl-Net-Dogstatsd-1.0.3-alt1.src.rpm

Install Howto

  1. Add the following line to /etc/apt/sources.list:
    
    rpm [Sisyphus] http://ftp.altlinux.org/pub/distributions/ALTLinux/autoimports/Sisyphus noarch autoimports
    rpm [Sisyphus] http://ftp.altlinux.org/pub/distributions/ALTLinux/autoimports/Sisyphus noarch autoimports
    
  2. Update the package index:
    # sudo apt-get update
  3. Install perl-Net-Dogstatsd rpm package:
    # sudo apt-get install perl-Net-Dogstatsd

Files

Path
/usr/share/doc/perl-Net-Dogstatsd-1.0.3/Changes
/usr/share/doc/perl-Net-Dogstatsd-1.0.3/LICENSE
/usr/share/doc/perl-Net-Dogstatsd-1.0.3/README.md
/usr/share/doc/perl-Net-Dogstatsd-1.0.3/examples/examples.pl
/usr/share/perl5/Net/Dogstatsd.pm

See Also

Package Description
perl-Net-Domain-ES-ccTLD-0.05-alt1.noarch.rpm Lookup for country names given the TLD code (.en Espa.ol!)
perl-Net-Domain-ExpireDate-1.19-alt2.noarch.rpm - obtain expiration date of domain names
perl-Net-Domain-Info-0.02-alt1.noarch.rpm request for domain information like whois, dns, seo
perl-Net-Domain-Match-0.2.3-alt1.noarch.rpm Class to extract domain names from text
perl-Net-Domain-Regex-0.2.1-alt1.noarch.rpm Class to extract domain names from text
perl-Net-Domain-Registration-Check-0.04-alt1.noarch.rpm Fast check on availability of domain registration
perl-Net-Domain-TMCH-0.18-alt1.noarch.rpm Trademark Clearing House
perl-Net-Dopplr-0.7-alt1.noarch.rpm interface with Dopplr.com's web service
perl-Net-Dopplr-scripts-0.7-alt1.noarch.rpm Net-Dopplr scripts
perl-Net-Douban-1.14-alt1.noarch.rpm Perl client wrapper for Chinese website douban.com API
perl-Net-Doveadm-0.01-alt1.noarch.rpm Dovecot.s administrative interface protocol
perl-Net-Download-XMLScripted-XMLScripted-0.1-alt1.noarch.rpm Perl XML scripted download program
perl-Net-DownloadMirror-0.10-alt1.noarch.rpm perl module Net-DownloadMirror
perl-Net-Dropbox-1.091510-alt1.noarch.rpm Communicate with local Dropbox daemon
perl-Net-Dropbox-API-1.9-alt1_11.noarch.rpm A dropbox API interface
Advertisement
Advertisement