From 9c66a2cdb224b5ef3c41b62182af465286523e08 Mon Sep 17 00:00:00 2001 From: Ivan Groenewold <9805809+igroene@users.noreply.github.com> Date: Fri, 25 Jun 2021 12:31:50 -0300 Subject: [PATCH 1/2] Create mongodb_down.yml --- data/iatemplates/mongodb_down.yml | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 data/iatemplates/mongodb_down.yml diff --git a/data/iatemplates/mongodb_down.yml b/data/iatemplates/mongodb_down.yml new file mode 100644 index 0000000000..7db757ccd5 --- /dev/null +++ b/data/iatemplates/mongodb_down.yml @@ -0,0 +1,13 @@ +--- +templates: + - name: pmm_mongodb_down + version: 1 + summary: MongoDB down + expr: |- + up{service_type="mongodb"} == 0 + for: 5s + severity: critical + annotations: + summary: MongoDB down ({{ $labels.service_name }}) + description: |- + MongoDB {{ $labels.service_name }} on {{ $labels.node_name }} is down. From 9cf71e8f8f1d5cc409f4145979cc83f7e8209448 Mon Sep 17 00:00:00 2001 From: Ivan Groenewold <9805809+igroene@users.noreply.github.com> Date: Tue, 29 Jun 2021 13:06:25 -0300 Subject: [PATCH 2/2] Update bindata.go --- data/bindata.go | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/data/bindata.go b/data/bindata.go index dcc6c7fe31..d44b92ae59 100644 --- a/data/bindata.go +++ b/data/bindata.go @@ -1,6 +1,7 @@ // Code generated by go-bindata. DO NOT EDIT. // sources: // iatemplates/mongodb_connections_memory_usage.yml (789B) +// iatemplates/mongodb_down.yml (344B) // iatemplates/mongodb_high_memory_usage.yml (723B) // iatemplates/mongodb_restarted.yml (586B) // iatemplates/mysql_down.yml (344B) @@ -100,6 +101,26 @@ func iatemplatesMongodb_connections_memory_usageYml() (*asset, error) { return a, nil } +var _iatemplatesMongodb_downYml = []byte("\x1f\x8b\x08\x00\x00\x00\x00\x00\x00\xff\x74\x8f\xb1\x4e\xc4\x30\x0c\x86\xf7\x3e\xc5\xaf\x13\x03\x0c\x39\xc1\xc0\x12\xa9\x0b\x62\xe5\x19\xaa\x5c\x6b\x50\xa4\xc6\x8e\x62\x5f\xa1\x2a\x7d\x77\x74\xe1\x28\xb7\x74\x74\xfc\xe7\xf3\xf7\x3b\xe7\x1a\xa3\x94\xc7\x60\xa4\xbe\x01\x1c\x38\x24\xf2\xc8\x29\x75\x49\xf8\x43\x86\x53\x37\xc8\x27\x37\x00\x30\x51\xd1\x28\xec\xf1\x54\x47\x3d\xa7\x14\xca\xec\xf1\x76\x09\xbe\xbe\x60\x0b\xd2\x57\x2e\x1e\xdf\xae\x0e\xc0\x39\x2f\x4a\x65\x8a\x3d\x75\x36\x67\x6a\x0f\x57\xf2\x61\x45\xdb\xe2\xb1\xa6\xde\xa5\x78\x3c\xeb\x2f\x98\x26\x2a\xd1\x66\x8f\xbe\x44\x8b\x7d\x18\xeb\x73\x60\x16\x0b\x16\x85\xab\xea\xae\x02\xee\x97\x05\x77\x63\x38\xd1\xa8\xc7\xbf\xc3\x97\x5a\x58\xd7\x87\xeb\xc7\x81\xb4\x2f\x31\x5b\xad\xb3\x89\x62\xe3\xec\x13\x20\x7c\xbb\x65\x19\xfe\x57\x51\xab\xc0\xb1\xf9\x09\x00\x00\xff\xff\x77\xa1\x65\x85\x58\x01\x00\x00") + +func iatemplatesMongodb_downYmlBytes() ([]byte, error) { + return bindataRead( + _iatemplatesMongodb_downYml, + "iatemplates/mongodb_down.yml", + ) +} + +func iatemplatesMongodb_downYml() (*asset, error) { + bytes, err := iatemplatesMongodb_downYmlBytes() + if err != nil { + return nil, err + } + + info := bindataFileInfo{name: "iatemplates/mongodb_down.yml", size: 0, mode: os.FileMode(0), modTime: time.Unix(0, 0)} + a := &asset{bytes: bytes, info: info, digest: [32]uint8{0x64, 0xf2, 0xc9, 0x33, 0x91, 0x4c, 0x3a, 0x79, 0x4e, 0xa0, 0x39, 0x14, 0x32, 0xc6, 0xb3, 0xea, 0xbb, 0x6c, 0x45, 0xb6, 0x88, 0x27, 0x57, 0xd7, 0x18, 0x3c, 0x26, 0x4d, 0xfa, 0x49, 0x40, 0x87}} + return a, nil +} + var _iatemplatesMongodb_high_memory_usageYml = []byte("\x1f\x8b\x08\x00\x00\x00\x00\x00\x00\xff\x74\x52\xc1\xaa\xdb\x30\x10\xbc\xe7\x2b\x86\x47\x03\x4e\xa9\xf3\x9c\xd2\x42\xd1\xa1\xd0\xd2\x6b\x6e\xbd\x85\x60\xe4\x78\x6d\x0b\x2c\xad\x59\xc9\xe9\x33\xa9\xff\xbd\x58\x89\xd5\x40\xa9\x2f\x46\xb3\xb3\xc3\xee\xcc\xe6\x79\xbe\x09\x64\x87\x5e\x07\xf2\x6a\x03\xe4\x70\xda\x92\xc2\x60\x6d\x69\xd9\xb5\x5c\x57\x65\x67\xda\xae\xb4\x64\x59\xa6\x72\xf4\xba\xa5\x0d\x00\x5c\x49\xbc\x61\xa7\x70\x88\x4f\x3f\x5a\xab\x65\x52\x38\x46\x22\x46\x4f\x35\xaa\x09\xc7\x45\xe4\xc7\xf7\xc8\xa1\xb7\x41\x14\x7e\xe7\xf1\x01\x1c\x8a\x02\xaf\xc8\x32\xc7\x35\xad\xfa\x47\xb2\x3f\x39\xe8\xbe\xac\xa6\x40\x7e\xf7\x60\xbe\x82\xdd\x9d\xb6\x4c\xb7\x43\x2b\x3c\x0e\x65\x4f\x4d\xc8\x3c\xc9\xd5\x5c\xd6\x42\xb6\xce\xec\xfd\xa2\x58\x0a\x79\x53\x93\x0b\x78\x8f\x43\xf1\xf1\xd3\xe3\xb7\x5b\x75\xbf\xe2\x74\xc2\x3e\x74\x42\xbe\xe3\xbe\xc6\xf9\x1c\x0b\x83\x16\x6d\xa3\x1d\xcb\xb7\x5a\x92\x68\x0f\xfc\x69\xe7\x6f\x18\x48\x2e\xe4\x82\x6e\x09\x8d\xb0\xc5\x85\x5d\x63\xda\x51\xa8\x86\xd5\x6f\xc6\x8e\x36\x75\x8d\xce\x04\x85\x97\xed\x4b\x42\xc2\x34\x90\x42\xd3\xb3\x0e\x09\x13\xed\x5a\x52\x38\x15\x1f\x16\x9f\xce\x09\xbf\xea\x7e\x24\x85\x2f\x45\x44\x1a\x16\x85\xcf\x77\x6d\x4f\x57\x12\x13\x26\x85\x5f\x5a\x9c\x71\x6d\x44\xb5\x73\x1c\x74\x30\xec\xd2\x42\x7f\xa3\xba\x67\x83\x25\x60\xd8\x35\xb7\x65\x87\xec\x76\xc3\xbb\x5e\x57\xd4\xfb\xfd\xb3\xc3\x98\xe7\xd5\xbb\x9a\xfc\x45\xcc\x10\xe2\x0d\xa4\x4c\x81\xa5\x33\x0e\x89\x79\xde\x82\x9b\x55\x38\xb3\x2c\x84\xd0\x69\xf7\x8f\xe9\xdb\x1d\x8c\x8f\x17\x93\x54\xaa\x09\xff\x1f\x01\xec\x9e\xab\xe9\x30\x30\xcf\xfb\xcd\x9f\x00\x00\x00\xff\xff\x15\x20\x96\x98\xd3\x02\x00\x00") func iatemplatesMongodb_high_memory_usageYmlBytes() ([]byte, error) { @@ -412,6 +433,7 @@ func AssetNames() []string { // _bindata is a table, holding each asset generator, mapped to its name. var _bindata = map[string]func() (*asset, error){ "iatemplates/mongodb_connections_memory_usage.yml": iatemplatesMongodb_connections_memory_usageYml, + "iatemplates/mongodb_down.yml": iatemplatesMongodb_downYml, "iatemplates/mongodb_high_memory_usage.yml": iatemplatesMongodb_high_memory_usageYml, "iatemplates/mongodb_restarted.yml": iatemplatesMongodb_restartedYml, "iatemplates/mysql_down.yml": iatemplatesMysql_downYml, @@ -471,6 +493,7 @@ type bintree struct { var _bintree = &bintree{nil, map[string]*bintree{ "iatemplates": {nil, map[string]*bintree{ "mongodb_connections_memory_usage.yml": {iatemplatesMongodb_connections_memory_usageYml, map[string]*bintree{}}, + "mongodb_down.yml": {iatemplatesMongodb_downYml, map[string]*bintree{}}, "mongodb_high_memory_usage.yml": {iatemplatesMongodb_high_memory_usageYml, map[string]*bintree{}}, "mongodb_restarted.yml": {iatemplatesMongodb_restartedYml, map[string]*bintree{}}, "mysql_down.yml": {iatemplatesMysql_downYml, map[string]*bintree{}},