Skip to content

A very VERY dumb and insecure "server" to send arbitrary stats to graphite.

License

Notifications You must be signed in to change notification settings

wargarblgarbl/url2graphite

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 

Repository files navigation

url2graphite

A very VERY dumb and insecure "server" to send arbitrary stats to graphite.

Parses the ouput of a curl request, and then forwards it to a graphite instance.

This abuses go tutorials, fmtprint, unix dates, and will probably cause your production systems to catch fire if you ever EVER decide to use this in production.

Options

  -gport string
    	graphite port (default "2003")
  -gurl string
    	url of graphite server (default "192.168.1.138")
  -laddress string
    	local server address
  -lport string
    	local server listen port (default "9090")

There is no security. None. If you wanted to run this somewhere on the public-facing internet, may the gods help you.

To send a request:

curl -s http://host:9090/requestname/requestnamestat/$RANDOM > /dev/null

You have to edit the graphite_ip and listen_port consts to change your settings.

This can't do requests to passworded graphite.

About

A very VERY dumb and insecure "server" to send arbitrary stats to graphite.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published