Skip to content

Instantly share code, notes, and snippets.

@woledzki
Last active December 20, 2015 04:28
Show Gist options
  • Save woledzki/6070738 to your computer and use it in GitHub Desktop.
Save woledzki/6070738 to your computer and use it in GitHub Desktop.
Hoborglabs Dashboard example widget configs
{
"name": "Graphite Panel Example",
"tick": 60,
"size": "autoHeight span12",
"php": "Hoborg/Widget/Graphite/Graph/Panel.php",
"conf": {
"from": "60min",
"graphiteUrl": "http://graphs.mycompany.net/",
"height": 136,
"width": 600,
"options": {
"fontSize": 16,
"drawNullAsZero": 1
},
"targets": [
{
"label": "release",
"target": "events.release.lamp.release",
"lineWidth": 4,
"drawAsInfinite": 1,
"color": "#FFFFFF"
},
{
"label": "Some line",
"target": "sumSeries(lamp.sites.mysite.source.desktop,lamp.sites.mysite.source.mobile)",
"movingAverage": 16,
"lineWidth": 3,
"color": "#BB7C41"
},
{
"label": "Requests",
"target": "lamp.sites.mysite.requests",
"movingAverage": 16,
"lineWidth": 3,
"color": "#AA9DA4"
}
]
}
}
{
"name": "Lamp Sites",
"tick": 72,
"size": "autoHeight span18",
"php": "Hoborg/Widget/Graphite/Table/Trend.php",
"config": {
"graphiteUrl": "http://graphs.mycompany.net/",
"columns": [
{
"name": "Code Errors",
"width": 176,
"_defaults": {
"from": "-2min",
"image": {
"drawNullAsZero": 1,
"from": "60min",
"movingAverage": 3,
"lineWidth": 2,
"baseline": 5,
"width": 90,
"height": 32
}
}
},
{
"name": "Code Warns",
"width": 176,
"_defaults": {
"from": "-2min",
"image": {
"drawNullAsZero": 1,
"from": "60min",
"lineWidth": 2,
"baseline": 5,
"width": 90,
"height": 32
}
}
},
{
"name": "Error Pages",
"width": 176,
"_defaults": {
"from": "-2min",
"image": {
"drawNullAsZero": 1,
"from": "60min",
"movingAverage": 6,
"lineWidth": 2,
"baseline": 5,
"width": 90,
"height": 32
}
}
},
{
"name": "Page Not Found",
"width": 176,
"_defaults": {
"from": "-2min",
"image": {
"drawNullAsZero": 1,
"from": "60min",
"movingAverage": 6,
"lineWidth": 2,
"baseline": 5,
"width": 90,
"height": 32
}
}
}
],
"rows": [
[
{ "name": "www.mysite1.com",
"_normalization": {
"target": "lamp.sites.mysite1.requests",
"range": [0, 50, 1500, 2000]
}
},
{
"target": "lamp.sites.mysite1.logs.ERR",
"colors": {
"range": [-1, 0, 1, 5]
}
},
{
"target": "lamp.sites.mysite1.logs.WARN",
"colors": {
"range": [-1, 0, 3, 10]
}
},
{
"target": "sumSeries(lamp.sites.mysite1.returnCodes.5*)",
"colors": {
"range": [-1, 0, 5, 10]
}
},
{
"target": "sumSeries(lamp.sites.mysite1.returnCodes.4*)",
"colors": {
"range": [-1, 0, 5, 10]
}
}
],
[
{ "name": "m.mysite1.com",
"_normalization": {
"target": "lamp.sites.m-mysite1.requests",
"range": [0, 25, 300, 600]
}
},
{
"target": "lamp.sites.m-mysite1.logs.ERR",
"colors": {
"range": [-1, 0, 1, 5]
}
},
{
"target": "lamp.sites.m-mysite1.logs.WARN",
"colors": {
"range": [-1, 0, 3, 10]
}
},
{
"target": "sumSeries(lamp.sites.m-mysite1.returnCodes.5*)",
"colors": {
"range": [-1, 0, 5, 10]
}
},
{
"target": "sumSeries(lamp.sites.m-mysite1.returnCodes.4*)",
"colors": {
"range": [-1, 0, 5, 10]
}
}
]
]
}
}
{
"name": "Graphite Trend Example",
"tick": 53,
"size": "autoHeight span25",
"php": "Hoborg/Widget/Graphite/Trend.php",
"config": {
"view": "horizontal-fourcol",
"graphiteUrl": "http://graphs.mycompany.net/",
"targets": [
{
"label": "Site 1",
"target": "lamp.sites.mysite.requests",
"alertOnHoltWinters": 100,
"from": "-2min",
"factor": 10,
"unit": "req/sec",
"image": {
"movingAverage": 10,
"baseline": 1500,
"lineWidth": 2,
"from": "60min",
"width": 200
},
"colors": {
"range": [50, 100, 2000, 4000]
}
},
{
"label": "Site 2",
"target": "lamp.sites.othersite.requests",
"decimals": 1,
"from": "-2min",
"factor": 10,
"unit": "req/sec",
"image": {
"movingAverage": 6,
"baseline": 1500,
"lineWidth": 2,
"from": "60min",
"width": 200
},
"colors": {
"range": [0, 0, 2000, 4000]
}
},
{
"label": "Site N",
...
},
{
"label": "Site N",
...
},
{
"label": "Site N",
...
},
{
"label": "Site N",
...
},
{
"label": "Site N",
...
},
{
"label": "Site N",
...
}
]
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment