This Graphite pack provides the ability to add events to graphite
To build and run from the command line:
- Clone this repo
- Run
dep ensure
(must have dep installed ) - Run
go build
- Run
FLYTE_API=http://localhost:8080/ GRAPHITE_HOST=http://localhost:8090 FLYTE_LABELS="env=lab" ./flyte-graphite
- Fill in this command with the relevant API url environment variables
To build and run from docker
- Run
docker build -t flyte-graphite .
- Run
docker run -e FLYTE_API=http://localhost:8080/ -e GRAPHITE_HOST=http://localhost:8090 -e FLYTE_LABELS="env=lab"
- All of these environment variables need to be set
This command adds a single event to graphite
"input": {
"tags":"tags",
"data":"data",
"what":"what"
}
This command returns either a AddEventsSuccess
or AddEventsFailure
"payload": {
"tags":"tags",
"data":"data",
"what":"what"
}
"payload": {
"tags":"tags",
"data":"data",
"what":"what"
"error":"status code 500"
}