Skip to content

Instantly share code, notes, and snippets.

@coffeesn0b
coffeesn0b / visualization-of-bad-pods-elastic
Created January 18, 2019 01:25
visualization-of-bad-pods-elastic
View visualization-of-bad-pods-elastic
[
{
"_id": "XYZ",
"_type": "visualization",
"_source": {
"title": "bad-pods-by-cluster",
"visState": "{\"title\":\"riot-bad-pods-by-cluster\",\"type\":\"histogram\",\"params\":{\"type\":\"histogram\",\"grid\":{\"categoryLines\":false,\"style\":{\"color\":\"#eee\"}},\"categoryAxes\":[{\"id\":\"CategoryAxis-1\",\"type\":\"category\",\"position\":\"bottom\",\"show\":true,\"style\":{},\"scale\":{\"type\":\"linear\"},\"labels\":{\"show\":true,\"truncate\":100},\"title\":{}}],\"valueAxes\":[{\"id\":\"ValueAxis-1\",\"name\":\"LeftAxis-1\",\"type\":\"value\",\"position\":\"left\",\"show\":true,\"style\":{},\"scale\":{\"type\":\"linear\",\"mode\":\"normal\"},\"labels\":{\"show\":true,\"rotate\":0,\"filter\":false,\"truncate\":100},\"title\":{\"text\":\"Unique count of kubernetes.container.status.reason\"}}],\"seriesParams\":[{\"show\":\"true\",\"type\":\"histogram\",\"mode\":\"stacked\",\"data\":{\"label\":\"Unique count of kubernetes.container.status.reason\",\"id\":\"1\"},\"valueAxis\":\"ValueAxi
@coffeesn0b
coffeesn0b / watcher-bad-pod-example
Created January 18, 2019 01:24
watcher-bad-pod-example
View watcher-bad-pod-example
{
"trigger": {
"schedule": {
"interval": "1m"
}
},
"input": {
"search": {
"request": {
"search_type": "query_then_fetch",
@coffeesn0b
coffeesn0b / gist:df8da51aefc04e25de896a598723cf5d
Created January 18, 2019 01:22
watcher example for k8s cluster
View gist:df8da51aefc04e25de896a598723cf5d
{
"trigger": {
"schedule": {
"interval": "3m" # run this check every 3 minutes
}
},
"input": {
"search": {
"request": {
"search_type": "query_then_fetch",