Question

In Statsd client, how do I combine two graphs to show it as a single one? enter image description here

Like this?

Was it helpful?

Solution

I'm just playing around with graphite and statsd right now, so I am no expert, but I might be missing something here...why would you combine it in statsd? It seems you would want it to be combined in the Graphite UI, which will let you combine multiple stats onto a single graph. In fact, I think you could create a graph with both of these metrics present and then save the graph to "My Graphs" to pull up later.

As far as statsd is concerned, you are just writing out two separate metrics, one being a counter called NumWarnings and another called Deployed. To get a graph like the one above, I supposed you'd need to assign an arbitrary value to Deployed as a counter for each deployment (100 seems like a good number).

OTHER TIPS

For people discovering this later: with graphite if you drag a graph with the mouse and hold it over another one for a few seconds, a green box will appear saying "Drop to Merge". Drop the graph when that appears and it will merge the two graphs into one.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top