Skip to content

Instantly share code, notes, and snippets.

@descrepes
Created January 19, 2016 14:41
Show Gist options
  • Save descrepes/3f6c3ead14e72b93d3e3 to your computer and use it in GitHub Desktop.
Save descrepes/3f6c3ead14e72b93d3e3 to your computer and use it in GitHub Desktop.
dashboard.annotations = {
list: [
{
datasource: "Shinken2",
enable: false,
iconColor: "rgb(255, 0, 0)",
iconSize: 20,
index: "",
lineColor: "rgba(255, 0, 0, 0.26)",
name: "Critical",
query: "type:(ALERT) AND state_type:(HARD) AND state:(2) AND host_name:(*[[projet]])",
showLine: true,
tagsField: "service_description",
textField: "plugin_output",
timeField: "@timestamp",
titleField: "host_name"
},
{
datasource: "Shinken2",
enable: false,
iconColor: "rgba(237, 129, 40, 0.89)",
iconSize: 20,
index: "",
lineColor: "rgba(255, 0, 0, 0.26)",
name: "Warning",
query: "type:(ALERT) AND state_type:(HARD) AND state:(1) AND host_name:(*[[projet]])",
showLine: true,
tagsField: "service_description",
textField: "plugin_output",
timeField: "@timestamp",
titleField: "host_name"
},
{
datasource: "Shinken2",
enable: false,
iconColor: "rgb(64, 255, 0)",
iconSize: 20,
index: "",
lineColor: "rgba(162, 255, 96, 0.59)",
name: "OK",
query: "type:(ALERT) AND state_type:(HARD) AND state:(0) AND host_name:(*[[projet]])",
showLine: true,
tagsField: "service_description",
textField: "plugin_output",
timeField: "@timestamp",
titleField: "host_name"
},
{
datasource: "Puppet",
enable: false,
iconColor: "#C0C6BE",
iconSize: 20,
index: "puppet-*",
lineColor: "rgb(255, 255, 255)",
name: "Puppet",
query: "state:(changed) AND host:*[[projet]]",
showLine: true,
tagsField: "resource_type",
textField: "name",
timeField: "date",
titleField: "host"
},
{
datasource: "Bacula",
enable: false,
iconColor: "rgba(0, 140, 152, 0.76)",
iconSize: 13,
index: "bacula-*",
lineColor: "rgba(0, 163, 163, 0.73)",
name: "Bacula-start",
query: "host:/[[server]]/",
showLine: true,
tagsField: "type",
textField: "",
timeField: "date",
titleField: "host"
},
{
datasource: "Bacula",
enable: false,
iconColor: "rgb(21, 0, 255)",
iconSize: 13,
index: "bacula-*",
lineColor: "rgba(0, 32, 255, 0.78)",
name: "Bacula-end",
query: "host:/[[server]]/",
showLine: true,
tagsField: "type",
textField: "",
timeField: "date",
titleField: "host"
}
]
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment