https://github.com/wargarblgarbl/url2graphite
A very VERY dumb and insecure "server" to send arbitrary stats to graphite.
https://github.com/wargarblgarbl/url2graphite
arbitrary-stats graphite insecure stupid
Last synced: 5 months ago
JSON representation
A very VERY dumb and insecure "server" to send arbitrary stats to graphite.
- Host: GitHub
- URL: https://github.com/wargarblgarbl/url2graphite
- Owner: wargarblgarbl
- License: bsd-2-clause
- Created: 2016-02-21T04:30:37.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2018-01-29T05:32:21.000Z (over 8 years ago)
- Last Synced: 2024-06-20T05:02:48.748Z (almost 2 years ago)
- Topics: arbitrary-stats, graphite, insecure, stupid
- Language: Go
- Size: 9.77 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 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.