Skip to content

Instantly share code, notes, and snippets.

@mnikhil-git
Created February 4, 2013 18:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mnikhil-git/4708591 to your computer and use it in GitHub Desktop.
Save mnikhil-git/4708591 to your computer and use it in GitHub Desktop.
another example: where you have different metric regex although appearing in a single dashboard/ganglia json view
$ cd /var/lib/ganglia/conf; cat view_scribe_metrics.json
{
"default_size" : "medium",
"view_name" : "scribe_metrics",
"items" : [
{
"aggregate_graph" : "true",
"graph_type" : "line",
"host_regex" : [
{
"regex" : "mynode[0-9].mydc.mycompany.com"
}
],
"g_title" : "spool_size",
"metric_regex" : [
{
"regex" : ".*.scribe.spool.size"
}
],
"title" : "Aggregated metrics for spool_size ",
"vertical_label" : "",
"glegend" : "show"
},
{
"aggregate_graph" : "true",
"graph_type" : "line",
"host_regex" : [
{
"regex" : "mynode[0-9].mydc.mycompany.com"
}
],
"g_title" : "lb_connections",
"metric_regex" : [
{
"regex" : "scribe.num_lb_connections"
}
],
"title" : "Aggregated metrics for lb_connections ",
"vertical_label" : "",
"glegend" : "show"
}
],
"view_type" : "standard"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment