-1

Given that I have Graphite installed within Docker, does anyone know of a very simple graphite tutorial somewhere that shows how to feed in data, then plot the data on a graph in Graphite Webapp? I mean the very basic things and not the endless configurations and pages after pages of setting various components up.

I know there is the actual Graphite documentation but it is setup after setup after setup of the various components. It is enough to drive anyone away from using Graphite.

Given that Graphite is running within Docker, as a start I just need to know the step of feeding in data using text, display the data in Graphite Web App, and query the data back.

stackoverblown
  • 734
  • 5
  • 10

1 Answers1

2

I suppose that you containerized and configured all the graphite components.

First, be sure that you published plaintext and pickle port if you plan to feed graphite from the local or external host. (default: 2003-2004 )

After that, according to the documentation you can perform a simple Netcat command to send metrics over TCP/UDP to carbon with the format <metric path> <metric value> <metric timestamp>

while true; do
echo "local.random.diceroll $RANDOM `date +%s`" | nc -q 1 ${SERVER} ${PORT}
done

You should see in graphite-web GUI the path local/rando/diceroll generated with a graph of random integers.

Ref: https://graphite.readthedocs.io/en/latest/feeding-carbon.html

GoA Oz
  • 328
  • 1
  • 13
  • https://github.com/go-graphite/docker-go-graphite if you want to have full stack carbon-go without graphite-web ( you can still plug an external graphite-web throught carbonserver on the port 8080 if enabled). – GoA Oz May 27 '21 at 15:07
  • https://github.com/go-graphite/docker-go-graphite/blob/master/conf/etc/go-carbon/go-carbon.conf line 207. Now in graphite-web, put the env vars GRAPHITE_CLUSTER_SERVERS=carbonhost:8080 to plug it – GoA Oz May 27 '21 at 15:10