Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
G
gostatsd
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
ale
gostatsd
Commits
ae47e937
Commit
ae47e937
authored
12 years ago
by
Kamil Kisiel
Browse files
Options
Downloads
Patches
Plain Diff
Updated README.md
parent
0f7a8b35
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
README.md
+33
-0
33 additions, 0 deletions
README.md
with
33 additions
and
0 deletions
README.md
+
33
−
0
View file @
ae47e937
...
...
@@ -12,6 +12,38 @@ Building the server
From the
`gostatsd/`
directory run
`go build`
. The binary will be built in place
and called
`gostatsd`
Running the server
------------------
`gostatsd -help`
gives a complete description of available options and their
defaults.
Sending metrics
---------------
The server listens for UDP packets on the address given by the
`-l`
flag,
aggregates them, then sends them to graphite server address given by the
`-g`
flag.
The format of each metric is:
<bucket name>:<value>|<type>\n
*
`<bucket name>`
is a string like
`abc.def.g`
, just like a graphite bucket name
*
`<value>`
is a string representation of a floating point number
*
`<type>`
is one of
`c`
,
`g`
, or
`ms`
for "counter", "gauge", and "timer"
respectively.
A single packet can contain multiple metrics, each ending with a newline.
A simple way to test your installation or send metrics from a script is to use
`echo`
and the
[
netcat
][
netcat
]
utility
`nc`
:
echo 'abc.def.g:10|c' | nc -w1 -u localhost 8125
Monitoring
----------
Currently you can get some basic idea of the status of the server by visiting the
address given by the
`-c`
option with your web browser.
Using the library
-----------------
In your source code:
...
...
@@ -23,3 +55,4 @@ http://go.pkgdoc.org/github.com/kisielk/gostatsd/statsd
[
etsy
]:
http://www.etsy.com
[
statsd
]:
http://www.github.com/etsy/statsd
[
netcat
]:
http://netcat.sourceforge.net/
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment