Skip to content

Carbon proxy that drops/forwards incoming metrics based on the root namespace of the metric key

License

Notifications You must be signed in to change notification settings

samgiles/graphiteauthd

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

32 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

graphiteauthd: Graphite Authentication Proxy

Drops any metrics where the root namespace does not match a sha256 API key.

Simple proof of concept TCP proxy for Graphite metrics, use in production at your own risk ;).

Usage

Usage of graphiteauthd:
  -apikey="MYAPIKEY": API key to accept
  -beconnections=1: Number of concurrent connections to open to the Graphite backend
  -cert="": Path to .pem certificate
  -key="": Path to .pem key file
  -listen=":9090": Address and port to bind listener to
  -remote="": Address and port of remote graphite instance

If cert and key are omitted, this will use a plain TCP connection, else it will listen with TLS enabled.

Build and Test

Build:

go get

Test:

go test
go test -bench .

Current build status: Build Status

TODO

  • Better error handling when the backend connections drop
  • More tests (only the parsing and filtering is tested/benched at this point)

License

MIT - Samuel Giles 2015

About

Carbon proxy that drops/forwards incoming metrics based on the root namespace of the metric key

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages