diff --git a/mock/0.4.0/api/v1/alerts/groups b/mock/0.4.0/api/v1/alerts/groups index 24f10d140..665f77c9e 100644 --- a/mock/0.4.0/api/v1/alerts/groups +++ b/mock/0.4.0/api/v1/alerts/groups @@ -18,7 +18,7 @@ "instance": "server5", "job": "node_exporter" }, - "startsAt": "2017-06-03T01:41:07.542266559Z" + "startsAt": "2017-06-21T19:48:22.042998664Z" } ], "routeOpts": { @@ -56,7 +56,7 @@ "job": "node_exporter" }, "silenced": 1, - "startsAt": "2017-06-03T01:41:07.542266559Z" + "startsAt": "2017-06-21T19:48:22.042998664Z" }, { "annotations": { @@ -71,7 +71,7 @@ "instance": "web2", "job": "node_exporter" }, - "startsAt": "2017-06-03T01:41:07.542266559Z" + "startsAt": "2017-06-21T19:48:22.042998664Z" } ], "routeOpts": { @@ -93,6 +93,36 @@ "blocks": [ { "alerts": [ + { + "annotations": { + "summary": "Example summary" + }, + "endsAt": "0001-01-01T00:00:00Z", + "generatorURL": "localhost/prometheus", + "inhibited": false, + "labels": { + "alertname": "Host_Down", + "cluster": "prod", + "instance": "server2", + "job": "node_ping" + }, + "startsAt": "2017-06-21T19:48:22.042998664Z" + }, + { + "annotations": { + "summary": "Example summary" + }, + "endsAt": "0001-01-01T00:00:00Z", + "generatorURL": "localhost/prometheus", + "inhibited": false, + "labels": { + "alertname": "Host_Down", + "cluster": "staging", + "instance": "server3", + "job": "node_ping" + }, + "startsAt": "2017-06-21T19:48:22.042998664Z" + }, { "annotations": { "summary": "Example summary" @@ -106,7 +136,7 @@ "instance": "server4", "job": "node_ping" }, - "startsAt": "2017-06-03T01:41:07.542266559Z" + "startsAt": "2017-06-21T19:48:22.042998664Z" }, { "annotations": { @@ -121,7 +151,7 @@ "instance": "server5", "job": "node_ping" }, - "startsAt": "2017-06-03T01:41:07.542266559Z" + "startsAt": "2017-06-21T19:48:22.042998664Z" }, { "annotations": { @@ -137,7 +167,7 @@ "job": "node_ping" }, "silenced": 2, - "startsAt": "2017-06-03T01:41:07.542266559Z" + "startsAt": "2017-06-21T19:48:22.042998664Z" }, { "annotations": { @@ -153,7 +183,7 @@ "job": "node_ping" }, "silenced": 2, - "startsAt": "2017-06-03T01:41:07.542266559Z" + "startsAt": "2017-06-21T19:48:22.042998664Z" }, { "annotations": { @@ -169,7 +199,7 @@ "job": "node_ping" }, "silenced": 2, - "startsAt": "2017-06-03T01:41:07.542266559Z" + "startsAt": "2017-06-21T19:48:22.042998664Z" }, { "annotations": { @@ -185,37 +215,7 @@ "instance": "server1", "job": "node_ping" }, - "startsAt": "2017-06-03T01:41:07.542266559Z" - }, - { - "annotations": { - "summary": "Example summary" - }, - "endsAt": "0001-01-01T00:00:00Z", - "generatorURL": "localhost/prometheus", - "inhibited": false, - "labels": { - "alertname": "Host_Down", - "cluster": "prod", - "instance": "server2", - "job": "node_ping" - }, - "startsAt": "2017-06-03T01:41:07.542266559Z" - }, - { - "annotations": { - "summary": "Example summary" - }, - "endsAt": "0001-01-01T00:00:00Z", - "generatorURL": "localhost/prometheus", - "inhibited": false, - "labels": { - "alertname": "Host_Down", - "cluster": "staging", - "instance": "server3", - "job": "node_ping" - }, - "startsAt": "2017-06-03T01:41:07.542266559Z" + "startsAt": "2017-06-21T19:48:22.042998664Z" } ], "routeOpts": { @@ -251,7 +251,7 @@ "instance": "server2", "job": "node_exporter" }, - "startsAt": "2017-06-03T01:41:07.542266559Z" + "startsAt": "2017-06-21T19:48:22.042998664Z" } ], "routeOpts": { @@ -287,7 +287,7 @@ "instance": "server5", "job": "node_exporter" }, - "startsAt": "2017-06-03T01:41:07.542266559Z" + "startsAt": "2017-06-21T19:48:22.042998664Z" } ], "routeOpts": { @@ -328,7 +328,7 @@ "job": "node_exporter" }, "silenced": 1, - "startsAt": "2017-06-03T01:41:07.542266559Z" + "startsAt": "2017-06-21T19:48:22.042998664Z" }, { "annotations": { @@ -343,7 +343,7 @@ "instance": "web2", "job": "node_exporter" }, - "startsAt": "2017-06-03T01:41:07.542266559Z" + "startsAt": "2017-06-21T19:48:22.042998664Z" } ], "routeOpts": { @@ -382,7 +382,7 @@ "job": "node_ping" }, "silenced": 2, - "startsAt": "2017-06-03T01:41:07.542266559Z" + "startsAt": "2017-06-21T19:48:22.042998664Z" }, { "annotations": { @@ -398,7 +398,7 @@ "job": "node_ping" }, "silenced": 2, - "startsAt": "2017-06-03T01:41:07.542266559Z" + "startsAt": "2017-06-21T19:48:22.042998664Z" }, { "annotations": { @@ -414,7 +414,7 @@ "job": "node_ping" }, "silenced": 2, - "startsAt": "2017-06-03T01:41:07.542266559Z" + "startsAt": "2017-06-21T19:48:22.042998664Z" } ], "routeOpts": { @@ -439,21 +439,6 @@ "blocks": [ { "alerts": [ - { - "annotations": { - "summary": "Example summary" - }, - "endsAt": "0001-01-01T00:00:00Z", - "generatorURL": "localhost/prometheus", - "inhibited": false, - "labels": { - "alertname": "Host_Down", - "cluster": "prod", - "instance": "server2", - "job": "node_ping" - }, - "startsAt": "2017-06-03T01:41:07.542266559Z" - }, { "annotations": { "summary": "Example summary", @@ -468,14 +453,29 @@ "instance": "server1", "job": "node_ping" }, - "startsAt": "2017-06-03T01:41:07.542266559Z" + "startsAt": "2017-06-21T19:48:22.042998664Z" + }, + { + "annotations": { + "summary": "Example summary" + }, + "endsAt": "0001-01-01T00:00:00Z", + "generatorURL": "localhost/prometheus", + "inhibited": false, + "labels": { + "alertname": "Host_Down", + "cluster": "prod", + "instance": "server2", + "job": "node_ping" + }, + "startsAt": "2017-06-21T19:48:22.042998664Z" } ], "routeOpts": { "groupBy": [ + "service", "alertname", - "cluster", - "service" + "cluster" ], "groupInterval": 35000000000, "groupWait": 15000000000, @@ -506,7 +506,7 @@ "instance": "server3", "job": "node_ping" }, - "startsAt": "2017-06-03T01:41:07.542266559Z" + "startsAt": "2017-06-21T19:48:22.042998664Z" }, { "annotations": { @@ -521,7 +521,7 @@ "instance": "server4", "job": "node_ping" }, - "startsAt": "2017-06-03T01:41:07.542266559Z" + "startsAt": "2017-06-21T19:48:22.042998664Z" }, { "annotations": { @@ -536,7 +536,7 @@ "instance": "server5", "job": "node_ping" }, - "startsAt": "2017-06-03T01:41:07.542266559Z" + "startsAt": "2017-06-21T19:48:22.042998664Z" } ], "routeOpts": { @@ -575,14 +575,14 @@ "instance": "server2", "job": "node_exporter" }, - "startsAt": "2017-06-03T01:41:07.542266559Z" + "startsAt": "2017-06-21T19:48:22.042998664Z" } ], "routeOpts": { "groupBy": [ - "alertname", "cluster", - "service" + "service", + "alertname" ], "groupInterval": 35000000000, "groupWait": 15000000000, diff --git a/mock/0.4.0/api/v1/silences b/mock/0.4.0/api/v1/silences index 42b5c7c96..4df5fa5c9 100644 --- a/mock/0.4.0/api/v1/silences +++ b/mock/0.4.0/api/v1/silences @@ -3,7 +3,7 @@ "silences": [ { "comment": "Silenced instance", - "createdAt": "2017-06-03T01:41:07.511285232Z", + "createdAt": "2017-06-21T19:48:21.965717444Z", "createdBy": "john@example.com", "endsAt": "2063-01-01T00:00:00Z", "id": 1, @@ -18,7 +18,7 @@ }, { "comment": "Silenced Host_Down alerts in the dev cluster", - "createdAt": "2017-06-03T01:41:07.526830484Z", + "createdAt": "2017-06-21T19:48:21.9919792Z", "createdBy": "john@example.com", "endsAt": "2063-01-01T00:00:00Z", "id": 2, @@ -35,9 +35,24 @@ } ], "startsAt": "2017-02-18T01:34:34Z" + }, + { + "comment": "Silenced server7", + "createdAt": "2017-06-21T19:48:22.015641383Z", + "createdBy": "john@example.com", + "endsAt": "2063-01-01T00:00:00Z", + "id": 3, + "matchers": [ + { + "isRegex": false, + "name": "instance", + "value": "server7" + } + ], + "startsAt": "2017-02-18T01:34:34Z" } ], - "totalSilences": 2 + "totalSilences": 3 }, "status": "success" } diff --git a/mock/0.4.0/api/v1/status b/mock/0.4.0/api/v1/status index 973d4235d..51cc11907 100644 --- a/mock/0.4.0/api/v1/status +++ b/mock/0.4.0/api/v1/status @@ -79,7 +79,7 @@ }, "templates": null }, - "uptime": "2017-06-03T01:40:52.406481362Z", + "uptime": "2017-06-21T19:48:07.083637259Z", "versionInfo": { "branch": "master", "buildDate": "20160823-12:57:02", diff --git a/mock/0.4.1/api/v1/alerts/groups b/mock/0.4.1/api/v1/alerts/groups index 35b825e03..c80a1349a 100644 --- a/mock/0.4.1/api/v1/alerts/groups +++ b/mock/0.4.1/api/v1/alerts/groups @@ -18,7 +18,7 @@ "instance": "server5", "job": "node_exporter" }, - "startsAt": "2017-06-03T01:42:15.892691108Z" + "startsAt": "2017-06-21T19:49:30.405529116Z" } ], "routeOpts": { @@ -56,7 +56,7 @@ "job": "node_exporter" }, "silenced": 1, - "startsAt": "2017-06-03T01:42:15.892691108Z" + "startsAt": "2017-06-21T19:49:30.405529116Z" }, { "annotations": { @@ -71,7 +71,7 @@ "instance": "web2", "job": "node_exporter" }, - "startsAt": "2017-06-03T01:42:15.892691108Z" + "startsAt": "2017-06-21T19:49:30.405529116Z" } ], "routeOpts": { @@ -93,67 +93,6 @@ "blocks": [ { "alerts": [ - { - "annotations": { - "summary": "Example summary", - "url": "http://localhost/example.html" - }, - "endsAt": "0001-01-01T00:00:00Z", - "generatorURL": "localhost/prometheus", - "inhibited": false, - "labels": { - "alertname": "Host_Down", - "cluster": "prod", - "instance": "server1", - "job": "node_ping" - }, - "startsAt": "2017-06-03T01:42:15.892691108Z" - }, - { - "annotations": { - "summary": "Example summary" - }, - "endsAt": "0001-01-01T00:00:00Z", - "generatorURL": "localhost/prometheus", - "inhibited": false, - "labels": { - "alertname": "Host_Down", - "cluster": "prod", - "instance": "server2", - "job": "node_ping" - }, - "startsAt": "2017-06-03T01:42:15.892691108Z" - }, - { - "annotations": { - "summary": "Example summary" - }, - "endsAt": "0001-01-01T00:00:00Z", - "generatorURL": "localhost/prometheus", - "inhibited": false, - "labels": { - "alertname": "Host_Down", - "cluster": "staging", - "instance": "server3", - "job": "node_ping" - }, - "startsAt": "2017-06-03T01:42:15.892691108Z" - }, - { - "annotations": { - "summary": "Example summary" - }, - "endsAt": "0001-01-01T00:00:00Z", - "generatorURL": "localhost/prometheus", - "inhibited": false, - "labels": { - "alertname": "Host_Down", - "cluster": "staging", - "instance": "server4", - "job": "node_ping" - }, - "startsAt": "2017-06-03T01:42:15.892691108Z" - }, { "annotations": { "summary": "Example summary" @@ -167,7 +106,7 @@ "instance": "server5", "job": "node_ping" }, - "startsAt": "2017-06-03T01:42:15.892691108Z" + "startsAt": "2017-06-21T19:49:30.405529116Z" }, { "annotations": { @@ -183,7 +122,7 @@ "job": "node_ping" }, "silenced": 2, - "startsAt": "2017-06-03T01:42:15.892691108Z" + "startsAt": "2017-06-21T19:49:30.405529116Z" }, { "annotations": { @@ -199,7 +138,7 @@ "job": "node_ping" }, "silenced": 2, - "startsAt": "2017-06-03T01:42:15.892691108Z" + "startsAt": "2017-06-21T19:49:30.405529116Z" }, { "annotations": { @@ -215,7 +154,68 @@ "job": "node_ping" }, "silenced": 2, - "startsAt": "2017-06-03T01:42:15.892691108Z" + "startsAt": "2017-06-21T19:49:30.405529116Z" + }, + { + "annotations": { + "summary": "Example summary", + "url": "http://localhost/example.html" + }, + "endsAt": "0001-01-01T00:00:00Z", + "generatorURL": "localhost/prometheus", + "inhibited": false, + "labels": { + "alertname": "Host_Down", + "cluster": "prod", + "instance": "server1", + "job": "node_ping" + }, + "startsAt": "2017-06-21T19:49:30.405529116Z" + }, + { + "annotations": { + "summary": "Example summary" + }, + "endsAt": "0001-01-01T00:00:00Z", + "generatorURL": "localhost/prometheus", + "inhibited": false, + "labels": { + "alertname": "Host_Down", + "cluster": "prod", + "instance": "server2", + "job": "node_ping" + }, + "startsAt": "2017-06-21T19:49:30.405529116Z" + }, + { + "annotations": { + "summary": "Example summary" + }, + "endsAt": "0001-01-01T00:00:00Z", + "generatorURL": "localhost/prometheus", + "inhibited": false, + "labels": { + "alertname": "Host_Down", + "cluster": "staging", + "instance": "server3", + "job": "node_ping" + }, + "startsAt": "2017-06-21T19:49:30.405529116Z" + }, + { + "annotations": { + "summary": "Example summary" + }, + "endsAt": "0001-01-01T00:00:00Z", + "generatorURL": "localhost/prometheus", + "inhibited": false, + "labels": { + "alertname": "Host_Down", + "cluster": "staging", + "instance": "server4", + "job": "node_ping" + }, + "startsAt": "2017-06-21T19:49:30.405529116Z" } ], "routeOpts": { @@ -251,7 +251,7 @@ "instance": "server2", "job": "node_exporter" }, - "startsAt": "2017-06-03T01:42:15.892691108Z" + "startsAt": "2017-06-21T19:49:30.405529116Z" } ], "routeOpts": { @@ -287,14 +287,14 @@ "instance": "server5", "job": "node_exporter" }, - "startsAt": "2017-06-03T01:42:15.892691108Z" + "startsAt": "2017-06-21T19:49:30.405529116Z" } ], "routeOpts": { "groupBy": [ - "cluster", "service", - "alertname" + "alertname", + "cluster" ], "groupInterval": 35000000000, "groupWait": 15000000000, @@ -328,7 +328,7 @@ "job": "node_exporter" }, "silenced": 1, - "startsAt": "2017-06-03T01:42:15.892691108Z" + "startsAt": "2017-06-21T19:49:30.405529116Z" }, { "annotations": { @@ -343,7 +343,7 @@ "instance": "web2", "job": "node_exporter" }, - "startsAt": "2017-06-03T01:42:15.892691108Z" + "startsAt": "2017-06-21T19:49:30.405529116Z" } ], "routeOpts": { @@ -382,7 +382,7 @@ "job": "node_ping" }, "silenced": 2, - "startsAt": "2017-06-03T01:42:15.892691108Z" + "startsAt": "2017-06-21T19:49:30.405529116Z" }, { "annotations": { @@ -398,7 +398,7 @@ "job": "node_ping" }, "silenced": 2, - "startsAt": "2017-06-03T01:42:15.892691108Z" + "startsAt": "2017-06-21T19:49:30.405529116Z" }, { "annotations": { @@ -414,7 +414,7 @@ "job": "node_ping" }, "silenced": 2, - "startsAt": "2017-06-03T01:42:15.892691108Z" + "startsAt": "2017-06-21T19:49:30.405529116Z" } ], "routeOpts": { @@ -453,7 +453,7 @@ "instance": "server1", "job": "node_ping" }, - "startsAt": "2017-06-03T01:42:15.892691108Z" + "startsAt": "2017-06-21T19:49:30.405529116Z" }, { "annotations": { @@ -468,7 +468,7 @@ "instance": "server2", "job": "node_ping" }, - "startsAt": "2017-06-03T01:42:15.892691108Z" + "startsAt": "2017-06-21T19:49:30.405529116Z" } ], "routeOpts": { @@ -506,7 +506,7 @@ "instance": "server3", "job": "node_ping" }, - "startsAt": "2017-06-03T01:42:15.892691108Z" + "startsAt": "2017-06-21T19:49:30.405529116Z" }, { "annotations": { @@ -521,7 +521,7 @@ "instance": "server4", "job": "node_ping" }, - "startsAt": "2017-06-03T01:42:15.892691108Z" + "startsAt": "2017-06-21T19:49:30.405529116Z" }, { "annotations": { @@ -536,7 +536,7 @@ "instance": "server5", "job": "node_ping" }, - "startsAt": "2017-06-03T01:42:15.892691108Z" + "startsAt": "2017-06-21T19:49:30.405529116Z" } ], "routeOpts": { @@ -575,14 +575,14 @@ "instance": "server2", "job": "node_exporter" }, - "startsAt": "2017-06-03T01:42:15.892691108Z" + "startsAt": "2017-06-21T19:49:30.405529116Z" } ], "routeOpts": { "groupBy": [ - "alertname", "cluster", - "service" + "service", + "alertname" ], "groupInterval": 35000000000, "groupWait": 15000000000, diff --git a/mock/0.4.1/api/v1/silences b/mock/0.4.1/api/v1/silences index b7d64b4c9..da3142eb6 100644 --- a/mock/0.4.1/api/v1/silences +++ b/mock/0.4.1/api/v1/silences @@ -3,7 +3,7 @@ "silences": [ { "comment": "Silenced instance", - "createdAt": "2017-06-03T01:42:15.862959571Z", + "createdAt": "2017-06-21T19:49:30.335152699Z", "createdBy": "john@example.com", "endsAt": "2063-01-01T00:00:00Z", "id": 1, @@ -18,7 +18,7 @@ }, { "comment": "Silenced Host_Down alerts in the dev cluster", - "createdAt": "2017-06-03T01:42:15.877866843Z", + "createdAt": "2017-06-21T19:49:30.361343044Z", "createdBy": "john@example.com", "endsAt": "2063-01-01T00:00:00Z", "id": 2, @@ -35,9 +35,24 @@ } ], "startsAt": "2017-02-18T01:34:34Z" + }, + { + "comment": "Silenced server7", + "createdAt": "2017-06-21T19:49:30.38309224Z", + "createdBy": "john@example.com", + "endsAt": "2063-01-01T00:00:00Z", + "id": 3, + "matchers": [ + { + "isRegex": false, + "name": "instance", + "value": "server7" + } + ], + "startsAt": "2017-02-18T01:34:34Z" } ], - "totalSilences": 2 + "totalSilences": 3 }, "status": "success" } diff --git a/mock/0.4.1/api/v1/status b/mock/0.4.1/api/v1/status index fd013394e..872804953 100644 --- a/mock/0.4.1/api/v1/status +++ b/mock/0.4.1/api/v1/status @@ -79,7 +79,7 @@ }, "templates": null }, - "uptime": "2017-06-03T01:42:00.764247824Z", + "uptime": "2017-06-21T19:49:15.472651851Z", "versionInfo": { "branch": "master", "buildDate": "20160831-22:29:03", diff --git a/mock/0.4.2/api/v1/alerts/groups b/mock/0.4.2/api/v1/alerts/groups index 1a6f4b21a..25b824967 100644 --- a/mock/0.4.2/api/v1/alerts/groups +++ b/mock/0.4.2/api/v1/alerts/groups @@ -18,7 +18,7 @@ "instance": "server5", "job": "node_exporter" }, - "startsAt": "2017-06-03T01:43:27.576074554Z" + "startsAt": "2017-06-21T19:50:38.674943416Z" } ], "routeOpts": { @@ -56,7 +56,7 @@ "job": "node_exporter" }, "silenced": 1, - "startsAt": "2017-06-03T01:43:27.576074554Z" + "startsAt": "2017-06-21T19:50:38.674943416Z" }, { "annotations": { @@ -71,7 +71,7 @@ "instance": "web2", "job": "node_exporter" }, - "startsAt": "2017-06-03T01:43:27.576074554Z" + "startsAt": "2017-06-21T19:50:38.674943416Z" } ], "routeOpts": { @@ -93,82 +93,6 @@ "blocks": [ { "alerts": [ - { - "annotations": { - "summary": "Example summary", - "url": "http://localhost/example.html" - }, - "endsAt": "0001-01-01T00:00:00Z", - "generatorURL": "localhost/prometheus", - "inhibited": false, - "labels": { - "alertname": "Host_Down", - "cluster": "prod", - "instance": "server1", - "job": "node_ping" - }, - "startsAt": "2017-06-03T01:43:27.576074554Z" - }, - { - "annotations": { - "summary": "Example summary" - }, - "endsAt": "0001-01-01T00:00:00Z", - "generatorURL": "localhost/prometheus", - "inhibited": false, - "labels": { - "alertname": "Host_Down", - "cluster": "prod", - "instance": "server2", - "job": "node_ping" - }, - "startsAt": "2017-06-03T01:43:27.576074554Z" - }, - { - "annotations": { - "summary": "Example summary" - }, - "endsAt": "0001-01-01T00:00:00Z", - "generatorURL": "localhost/prometheus", - "inhibited": false, - "labels": { - "alertname": "Host_Down", - "cluster": "staging", - "instance": "server3", - "job": "node_ping" - }, - "startsAt": "2017-06-03T01:43:27.576074554Z" - }, - { - "annotations": { - "summary": "Example summary" - }, - "endsAt": "0001-01-01T00:00:00Z", - "generatorURL": "localhost/prometheus", - "inhibited": false, - "labels": { - "alertname": "Host_Down", - "cluster": "staging", - "instance": "server4", - "job": "node_ping" - }, - "startsAt": "2017-06-03T01:43:27.576074554Z" - }, - { - "annotations": { - "summary": "Example summary" - }, - "endsAt": "0001-01-01T00:00:00Z", - "generatorURL": "localhost/prometheus", - "inhibited": false, - "labels": { - "alertname": "Host_Down", - "cluster": "staging", - "instance": "server5", - "job": "node_ping" - }, - "startsAt": "2017-06-03T01:43:27.576074554Z" - }, { "annotations": { "summary": "Example summary" @@ -183,7 +107,7 @@ "job": "node_ping" }, "silenced": 2, - "startsAt": "2017-06-03T01:43:27.576074554Z" + "startsAt": "2017-06-21T19:50:38.674943416Z" }, { "annotations": { @@ -199,7 +123,7 @@ "job": "node_ping" }, "silenced": 2, - "startsAt": "2017-06-03T01:43:27.576074554Z" + "startsAt": "2017-06-21T19:50:38.674943416Z" }, { "annotations": { @@ -215,7 +139,83 @@ "job": "node_ping" }, "silenced": 2, - "startsAt": "2017-06-03T01:43:27.576074554Z" + "startsAt": "2017-06-21T19:50:38.674943416Z" + }, + { + "annotations": { + "summary": "Example summary", + "url": "http://localhost/example.html" + }, + "endsAt": "0001-01-01T00:00:00Z", + "generatorURL": "localhost/prometheus", + "inhibited": false, + "labels": { + "alertname": "Host_Down", + "cluster": "prod", + "instance": "server1", + "job": "node_ping" + }, + "startsAt": "2017-06-21T19:50:38.674943416Z" + }, + { + "annotations": { + "summary": "Example summary" + }, + "endsAt": "0001-01-01T00:00:00Z", + "generatorURL": "localhost/prometheus", + "inhibited": false, + "labels": { + "alertname": "Host_Down", + "cluster": "prod", + "instance": "server2", + "job": "node_ping" + }, + "startsAt": "2017-06-21T19:50:38.674943416Z" + }, + { + "annotations": { + "summary": "Example summary" + }, + "endsAt": "0001-01-01T00:00:00Z", + "generatorURL": "localhost/prometheus", + "inhibited": false, + "labels": { + "alertname": "Host_Down", + "cluster": "staging", + "instance": "server3", + "job": "node_ping" + }, + "startsAt": "2017-06-21T19:50:38.674943416Z" + }, + { + "annotations": { + "summary": "Example summary" + }, + "endsAt": "0001-01-01T00:00:00Z", + "generatorURL": "localhost/prometheus", + "inhibited": false, + "labels": { + "alertname": "Host_Down", + "cluster": "staging", + "instance": "server4", + "job": "node_ping" + }, + "startsAt": "2017-06-21T19:50:38.674943416Z" + }, + { + "annotations": { + "summary": "Example summary" + }, + "endsAt": "0001-01-01T00:00:00Z", + "generatorURL": "localhost/prometheus", + "inhibited": false, + "labels": { + "alertname": "Host_Down", + "cluster": "staging", + "instance": "server5", + "job": "node_ping" + }, + "startsAt": "2017-06-21T19:50:38.674943416Z" } ], "routeOpts": { @@ -251,7 +251,7 @@ "instance": "server2", "job": "node_exporter" }, - "startsAt": "2017-06-03T01:43:27.576074554Z" + "startsAt": "2017-06-21T19:50:38.674943416Z" } ], "routeOpts": { @@ -287,7 +287,7 @@ "instance": "server5", "job": "node_exporter" }, - "startsAt": "2017-06-03T01:43:27.576074554Z" + "startsAt": "2017-06-21T19:50:38.674943416Z" } ], "routeOpts": { @@ -328,7 +328,7 @@ "job": "node_exporter" }, "silenced": 1, - "startsAt": "2017-06-03T01:43:27.576074554Z" + "startsAt": "2017-06-21T19:50:38.674943416Z" }, { "annotations": { @@ -343,7 +343,7 @@ "instance": "web2", "job": "node_exporter" }, - "startsAt": "2017-06-03T01:43:27.576074554Z" + "startsAt": "2017-06-21T19:50:38.674943416Z" } ], "routeOpts": { @@ -368,22 +368,6 @@ "blocks": [ { "alerts": [ - { - "annotations": { - "summary": "Example summary" - }, - "endsAt": "0001-01-01T00:00:00Z", - "generatorURL": "localhost/prometheus", - "inhibited": false, - "labels": { - "alertname": "Host_Down", - "cluster": "dev", - "instance": "server6", - "job": "node_ping" - }, - "silenced": 2, - "startsAt": "2017-06-03T01:43:27.576074554Z" - }, { "annotations": { "summary": "Example summary" @@ -398,7 +382,7 @@ "job": "node_ping" }, "silenced": 2, - "startsAt": "2017-06-03T01:43:27.576074554Z" + "startsAt": "2017-06-21T19:50:38.674943416Z" }, { "annotations": { @@ -414,7 +398,23 @@ "job": "node_ping" }, "silenced": 2, - "startsAt": "2017-06-03T01:43:27.576074554Z" + "startsAt": "2017-06-21T19:50:38.674943416Z" + }, + { + "annotations": { + "summary": "Example summary" + }, + "endsAt": "0001-01-01T00:00:00Z", + "generatorURL": "localhost/prometheus", + "inhibited": false, + "labels": { + "alertname": "Host_Down", + "cluster": "dev", + "instance": "server6", + "job": "node_ping" + }, + "silenced": 2, + "startsAt": "2017-06-21T19:50:38.674943416Z" } ], "routeOpts": { @@ -453,7 +453,7 @@ "instance": "server1", "job": "node_ping" }, - "startsAt": "2017-06-03T01:43:27.576074554Z" + "startsAt": "2017-06-21T19:50:38.674943416Z" }, { "annotations": { @@ -468,7 +468,7 @@ "instance": "server2", "job": "node_ping" }, - "startsAt": "2017-06-03T01:43:27.576074554Z" + "startsAt": "2017-06-21T19:50:38.674943416Z" } ], "routeOpts": { @@ -506,7 +506,7 @@ "instance": "server3", "job": "node_ping" }, - "startsAt": "2017-06-03T01:43:27.576074554Z" + "startsAt": "2017-06-21T19:50:38.674943416Z" }, { "annotations": { @@ -521,7 +521,7 @@ "instance": "server4", "job": "node_ping" }, - "startsAt": "2017-06-03T01:43:27.576074554Z" + "startsAt": "2017-06-21T19:50:38.674943416Z" }, { "annotations": { @@ -536,7 +536,7 @@ "instance": "server5", "job": "node_ping" }, - "startsAt": "2017-06-03T01:43:27.576074554Z" + "startsAt": "2017-06-21T19:50:38.674943416Z" } ], "routeOpts": { @@ -575,7 +575,7 @@ "instance": "server2", "job": "node_exporter" }, - "startsAt": "2017-06-03T01:43:27.576074554Z" + "startsAt": "2017-06-21T19:50:38.674943416Z" } ], "routeOpts": { diff --git a/mock/0.4.2/api/v1/silences b/mock/0.4.2/api/v1/silences index 71797a5bc..bc0b8caad 100644 --- a/mock/0.4.2/api/v1/silences +++ b/mock/0.4.2/api/v1/silences @@ -3,7 +3,7 @@ "silences": [ { "comment": "Silenced instance", - "createdAt": "2017-06-03T01:43:27.549256427Z", + "createdAt": "2017-06-21T19:50:38.603387691Z", "createdBy": "john@example.com", "endsAt": "2063-01-01T00:00:00Z", "id": 1, @@ -18,7 +18,7 @@ }, { "comment": "Silenced Host_Down alerts in the dev cluster", - "createdAt": "2017-06-03T01:43:27.562645513Z", + "createdAt": "2017-06-21T19:50:38.627448522Z", "createdBy": "john@example.com", "endsAt": "2063-01-01T00:00:00Z", "id": 2, @@ -35,9 +35,24 @@ } ], "startsAt": "2017-02-18T01:34:34Z" + }, + { + "comment": "Silenced server7", + "createdAt": "2017-06-21T19:50:38.649598373Z", + "createdBy": "john@example.com", + "endsAt": "2063-01-01T00:00:00Z", + "id": 3, + "matchers": [ + { + "isRegex": false, + "name": "instance", + "value": "server7" + } + ], + "startsAt": "2017-02-18T01:34:34Z" } ], - "totalSilences": 2 + "totalSilences": 3 }, "status": "success" } diff --git a/mock/0.4.2/api/v1/status b/mock/0.4.2/api/v1/status index 0c3a35b0b..6a0429598 100644 --- a/mock/0.4.2/api/v1/status +++ b/mock/0.4.2/api/v1/status @@ -79,7 +79,7 @@ }, "templates": null }, - "uptime": "2017-06-03T01:43:12.484328743Z", + "uptime": "2017-06-21T19:50:23.725154599Z", "versionInfo": { "branch": "master", "buildDate": "20160902-15:33:13", diff --git a/mock/0.5.0/api/v1/alerts/groups b/mock/0.5.0/api/v1/alerts/groups index 21f97d915..aa869ac1a 100644 --- a/mock/0.5.0/api/v1/alerts/groups +++ b/mock/0.5.0/api/v1/alerts/groups @@ -18,7 +18,7 @@ "instance": "server5", "job": "node_exporter" }, - "startsAt": "2017-06-03T01:44:38.68282523Z" + "startsAt": "2017-06-21T19:51:46.796673741Z" } ], "routeOpts": { @@ -40,6 +40,21 @@ "blocks": [ { "alerts": [ + { + "annotations": { + "summary": "Example summary" + }, + "endsAt": "0001-01-01T00:00:00Z", + "generatorURL": "localhost/prometheus", + "inhibited": false, + "labels": { + "alertname": "HTTP_Probe_Failed", + "cluster": "dev", + "instance": "web2", + "job": "node_exporter" + }, + "startsAt": "2017-06-21T19:51:46.796673741Z" + }, { "annotations": { "help": "Example help annotation", @@ -55,23 +70,8 @@ "instance": "web1", "job": "node_exporter" }, - "silenced": "8f2b7daa-a051-4466-954b-5520e033c288", - "startsAt": "2017-06-03T01:44:38.68282523Z" - }, - { - "annotations": { - "summary": "Example summary" - }, - "endsAt": "0001-01-01T00:00:00Z", - "generatorURL": "localhost/prometheus", - "inhibited": false, - "labels": { - "alertname": "HTTP_Probe_Failed", - "cluster": "dev", - "instance": "web2", - "job": "node_exporter" - }, - "startsAt": "2017-06-03T01:44:38.68282523Z" + "silenced": "975ee419-5688-4d47-8fa6-6f432577da0e", + "startsAt": "2017-06-21T19:51:46.796673741Z" } ], "routeOpts": { @@ -93,67 +93,6 @@ "blocks": [ { "alerts": [ - { - "annotations": { - "summary": "Example summary", - "url": "http://localhost/example.html" - }, - "endsAt": "0001-01-01T00:00:00Z", - "generatorURL": "localhost/prometheus", - "inhibited": false, - "labels": { - "alertname": "Host_Down", - "cluster": "prod", - "instance": "server1", - "job": "node_ping" - }, - "startsAt": "2017-06-03T01:44:38.68282523Z" - }, - { - "annotations": { - "summary": "Example summary" - }, - "endsAt": "0001-01-01T00:00:00Z", - "generatorURL": "localhost/prometheus", - "inhibited": false, - "labels": { - "alertname": "Host_Down", - "cluster": "prod", - "instance": "server2", - "job": "node_ping" - }, - "startsAt": "2017-06-03T01:44:38.68282523Z" - }, - { - "annotations": { - "summary": "Example summary" - }, - "endsAt": "0001-01-01T00:00:00Z", - "generatorURL": "localhost/prometheus", - "inhibited": false, - "labels": { - "alertname": "Host_Down", - "cluster": "staging", - "instance": "server3", - "job": "node_ping" - }, - "startsAt": "2017-06-03T01:44:38.68282523Z" - }, - { - "annotations": { - "summary": "Example summary" - }, - "endsAt": "0001-01-01T00:00:00Z", - "generatorURL": "localhost/prometheus", - "inhibited": false, - "labels": { - "alertname": "Host_Down", - "cluster": "staging", - "instance": "server4", - "job": "node_ping" - }, - "startsAt": "2017-06-03T01:44:38.68282523Z" - }, { "annotations": { "summary": "Example summary" @@ -167,7 +106,7 @@ "instance": "server5", "job": "node_ping" }, - "startsAt": "2017-06-03T01:44:38.68282523Z" + "startsAt": "2017-06-21T19:51:46.796673741Z" }, { "annotations": { @@ -182,8 +121,8 @@ "instance": "server6", "job": "node_ping" }, - "silenced": "bf61a814-9668-4936-883b-29d15eb90dbc", - "startsAt": "2017-06-03T01:44:38.68282523Z" + "silenced": "ded13fb8-a31d-4654-a272-ffcf987146fc", + "startsAt": "2017-06-21T19:51:46.796673741Z" }, { "annotations": { @@ -198,8 +137,8 @@ "instance": "server7", "job": "node_ping" }, - "silenced": "bf61a814-9668-4936-883b-29d15eb90dbc", - "startsAt": "2017-06-03T01:44:38.68282523Z" + "silenced": "ded13fb8-a31d-4654-a272-ffcf987146fc", + "startsAt": "2017-06-21T19:51:46.796673741Z" }, { "annotations": { @@ -214,8 +153,69 @@ "instance": "server8", "job": "node_ping" }, - "silenced": "bf61a814-9668-4936-883b-29d15eb90dbc", - "startsAt": "2017-06-03T01:44:38.68282523Z" + "silenced": "ded13fb8-a31d-4654-a272-ffcf987146fc", + "startsAt": "2017-06-21T19:51:46.796673741Z" + }, + { + "annotations": { + "summary": "Example summary", + "url": "http://localhost/example.html" + }, + "endsAt": "0001-01-01T00:00:00Z", + "generatorURL": "localhost/prometheus", + "inhibited": false, + "labels": { + "alertname": "Host_Down", + "cluster": "prod", + "instance": "server1", + "job": "node_ping" + }, + "startsAt": "2017-06-21T19:51:46.796673741Z" + }, + { + "annotations": { + "summary": "Example summary" + }, + "endsAt": "0001-01-01T00:00:00Z", + "generatorURL": "localhost/prometheus", + "inhibited": false, + "labels": { + "alertname": "Host_Down", + "cluster": "prod", + "instance": "server2", + "job": "node_ping" + }, + "startsAt": "2017-06-21T19:51:46.796673741Z" + }, + { + "annotations": { + "summary": "Example summary" + }, + "endsAt": "0001-01-01T00:00:00Z", + "generatorURL": "localhost/prometheus", + "inhibited": false, + "labels": { + "alertname": "Host_Down", + "cluster": "staging", + "instance": "server3", + "job": "node_ping" + }, + "startsAt": "2017-06-21T19:51:46.796673741Z" + }, + { + "annotations": { + "summary": "Example summary" + }, + "endsAt": "0001-01-01T00:00:00Z", + "generatorURL": "localhost/prometheus", + "inhibited": false, + "labels": { + "alertname": "Host_Down", + "cluster": "staging", + "instance": "server4", + "job": "node_ping" + }, + "startsAt": "2017-06-21T19:51:46.796673741Z" } ], "routeOpts": { @@ -251,7 +251,7 @@ "instance": "server2", "job": "node_exporter" }, - "startsAt": "2017-06-03T01:44:38.68282523Z" + "startsAt": "2017-06-21T19:51:46.796673741Z" } ], "routeOpts": { @@ -287,7 +287,7 @@ "instance": "server5", "job": "node_exporter" }, - "startsAt": "2017-06-03T01:44:38.68282523Z" + "startsAt": "2017-06-21T19:51:46.796673741Z" } ], "routeOpts": { @@ -312,21 +312,6 @@ "blocks": [ { "alerts": [ - { - "annotations": { - "summary": "Example summary" - }, - "endsAt": "0001-01-01T00:00:00Z", - "generatorURL": "localhost/prometheus", - "inhibited": false, - "labels": { - "alertname": "HTTP_Probe_Failed", - "cluster": "dev", - "instance": "web2", - "job": "node_exporter" - }, - "startsAt": "2017-06-03T01:44:38.68282523Z" - }, { "annotations": { "help": "Example help annotation", @@ -342,15 +327,30 @@ "instance": "web1", "job": "node_exporter" }, - "silenced": "8f2b7daa-a051-4466-954b-5520e033c288", - "startsAt": "2017-06-03T01:44:38.68282523Z" + "silenced": "975ee419-5688-4d47-8fa6-6f432577da0e", + "startsAt": "2017-06-21T19:51:46.796673741Z" + }, + { + "annotations": { + "summary": "Example summary" + }, + "endsAt": "0001-01-01T00:00:00Z", + "generatorURL": "localhost/prometheus", + "inhibited": false, + "labels": { + "alertname": "HTTP_Probe_Failed", + "cluster": "dev", + "instance": "web2", + "job": "node_exporter" + }, + "startsAt": "2017-06-21T19:51:46.796673741Z" } ], "routeOpts": { "groupBy": [ + "alertname", "cluster", - "service", - "alertname" + "service" ], "groupInterval": 35000000000, "groupWait": 15000000000, @@ -381,8 +381,8 @@ "instance": "server6", "job": "node_ping" }, - "silenced": "bf61a814-9668-4936-883b-29d15eb90dbc", - "startsAt": "2017-06-03T01:44:38.68282523Z" + "silenced": "ded13fb8-a31d-4654-a272-ffcf987146fc", + "startsAt": "2017-06-21T19:51:46.796673741Z" }, { "annotations": { @@ -397,8 +397,8 @@ "instance": "server7", "job": "node_ping" }, - "silenced": "bf61a814-9668-4936-883b-29d15eb90dbc", - "startsAt": "2017-06-03T01:44:38.68282523Z" + "silenced": "ded13fb8-a31d-4654-a272-ffcf987146fc", + "startsAt": "2017-06-21T19:51:46.796673741Z" }, { "annotations": { @@ -413,15 +413,15 @@ "instance": "server8", "job": "node_ping" }, - "silenced": "bf61a814-9668-4936-883b-29d15eb90dbc", - "startsAt": "2017-06-03T01:44:38.68282523Z" + "silenced": "ded13fb8-a31d-4654-a272-ffcf987146fc", + "startsAt": "2017-06-21T19:51:46.796673741Z" } ], "routeOpts": { "groupBy": [ + "service", "alertname", - "cluster", - "service" + "cluster" ], "groupInterval": 35000000000, "groupWait": 15000000000, @@ -453,7 +453,7 @@ "instance": "server1", "job": "node_ping" }, - "startsAt": "2017-06-03T01:44:38.68282523Z" + "startsAt": "2017-06-21T19:51:46.796673741Z" }, { "annotations": { @@ -468,14 +468,14 @@ "instance": "server2", "job": "node_ping" }, - "startsAt": "2017-06-03T01:44:38.68282523Z" + "startsAt": "2017-06-21T19:51:46.796673741Z" } ], "routeOpts": { "groupBy": [ - "alertname", "cluster", - "service" + "service", + "alertname" ], "groupInterval": 35000000000, "groupWait": 15000000000, @@ -493,21 +493,6 @@ "blocks": [ { "alerts": [ - { - "annotations": { - "summary": "Example summary" - }, - "endsAt": "0001-01-01T00:00:00Z", - "generatorURL": "localhost/prometheus", - "inhibited": false, - "labels": { - "alertname": "Host_Down", - "cluster": "staging", - "instance": "server5", - "job": "node_ping" - }, - "startsAt": "2017-06-03T01:44:38.68282523Z" - }, { "annotations": { "summary": "Example summary" @@ -521,7 +506,7 @@ "instance": "server3", "job": "node_ping" }, - "startsAt": "2017-06-03T01:44:38.68282523Z" + "startsAt": "2017-06-21T19:51:46.796673741Z" }, { "annotations": { @@ -536,7 +521,22 @@ "instance": "server4", "job": "node_ping" }, - "startsAt": "2017-06-03T01:44:38.68282523Z" + "startsAt": "2017-06-21T19:51:46.796673741Z" + }, + { + "annotations": { + "summary": "Example summary" + }, + "endsAt": "0001-01-01T00:00:00Z", + "generatorURL": "localhost/prometheus", + "inhibited": false, + "labels": { + "alertname": "Host_Down", + "cluster": "staging", + "instance": "server5", + "job": "node_ping" + }, + "startsAt": "2017-06-21T19:51:46.796673741Z" } ], "routeOpts": { @@ -575,7 +575,7 @@ "instance": "server2", "job": "node_exporter" }, - "startsAt": "2017-06-03T01:44:38.68282523Z" + "startsAt": "2017-06-21T19:51:46.796673741Z" } ], "routeOpts": { diff --git a/mock/0.5.0/api/v1/silences b/mock/0.5.0/api/v1/silences index 13d339952..7d32413a3 100644 --- a/mock/0.5.0/api/v1/silences +++ b/mock/0.5.0/api/v1/silences @@ -4,7 +4,7 @@ "comment": "Silenced instance", "createdBy": "john@example.com", "endsAt": "2063-01-01T00:00:00Z", - "id": "8f2b7daa-a051-4466-954b-5520e033c288", + "id": "975ee419-5688-4d47-8fa6-6f432577da0e", "matchers": [ { "isRegex": false, @@ -12,14 +12,14 @@ "value": "web1" } ], - "startsAt": "2017-06-03T01:44:38.673642596Z", - "updatedAt": "2017-06-03T01:44:38.673642596Z" + "startsAt": "2017-06-21T19:51:46.787701467Z", + "updatedAt": "2017-06-21T19:51:46.787701467Z" }, { "comment": "Silenced Host_Down alerts in the dev cluster", "createdBy": "john@example.com", "endsAt": "2063-01-01T00:00:00Z", - "id": "bf61a814-9668-4936-883b-29d15eb90dbc", + "id": "ded13fb8-a31d-4654-a272-ffcf987146fc", "matchers": [ { "isRegex": false, @@ -32,8 +32,23 @@ "value": "dev" } ], - "startsAt": "2017-06-03T01:44:38.677815485Z", - "updatedAt": "2017-06-03T01:44:38.677815485Z" + "startsAt": "2017-06-21T19:51:46.791102968Z", + "updatedAt": "2017-06-21T19:51:46.791102968Z" + }, + { + "comment": "Silenced server7", + "createdBy": "john@example.com", + "endsAt": "2063-01-01T00:00:00Z", + "id": "dd9d06d7-e3d5-4c0d-b5d1-a83eddea1ff3", + "matchers": [ + { + "isRegex": false, + "name": "instance", + "value": "server7" + } + ], + "startsAt": "2017-06-21T19:51:46.794709503Z", + "updatedAt": "2017-06-21T19:51:46.794709503Z" } ], "status": "success" diff --git a/mock/0.5.0/api/v1/status b/mock/0.5.0/api/v1/status index 4f45e5845..96cde0b3d 100644 --- a/mock/0.5.0/api/v1/status +++ b/mock/0.5.0/api/v1/status @@ -1,7 +1,7 @@ { "data": { "config": "route:\n group_by: ['alertname']\n group_wait: 15s\n group_interval: 35s\n repeat_interval: 999h\n receiver: 'default'\n routes:\n - receiver: 'by-cluster-service'\n group_by: ['alertname', 'cluster', 'service']\n match_re:\n alertname: .*\n continue: true\n - receiver: 'by-name'\n group_by: [alertname]\n match_re:\n alertname: .*\n continue: true\n\ninhibit_rules:\n - source_match:\n severity: 'critical'\n target_match:\n severity: 'warning'\n # Apply inhibition if the alertname is the same.\n equal: ['alertname', 'cluster', 'service']\n\nreceivers:\n - name: 'default'\n - name: 'by-cluster-service'\n - name: 'by-name'\n", - "uptime": "2017-06-03T01:44:23.52304472Z", + "uptime": "2017-06-21T19:51:31.752337137Z", "versionInfo": { "branch": "master", "buildDate": "20161101-18:10:50", diff --git a/mock/0.5.1/api/v1/alerts/groups b/mock/0.5.1/api/v1/alerts/groups index 9cc2ea57b..406d20cf2 100644 --- a/mock/0.5.1/api/v1/alerts/groups +++ b/mock/0.5.1/api/v1/alerts/groups @@ -18,7 +18,7 @@ "instance": "server5", "job": "node_exporter" }, - "startsAt": "2017-06-03T01:45:47.493161609Z" + "startsAt": "2017-06-21T19:52:54.919953909Z" } ], "routeOpts": { @@ -55,8 +55,8 @@ "instance": "web1", "job": "node_exporter" }, - "silenced": "aee02f72-4f11-492c-bc86-67a7d6d0c7a7", - "startsAt": "2017-06-03T01:45:47.493161609Z" + "silenced": "5917f10f-b9ba-4267-8024-ad6f0d4ebe90", + "startsAt": "2017-06-21T19:52:54.919953909Z" }, { "annotations": { @@ -71,7 +71,7 @@ "instance": "web2", "job": "node_exporter" }, - "startsAt": "2017-06-03T01:45:47.493161609Z" + "startsAt": "2017-06-21T19:52:54.919953909Z" } ], "routeOpts": { @@ -106,8 +106,8 @@ "instance": "server6", "job": "node_ping" }, - "silenced": "a7e42132-3843-4541-993a-7f383157c189", - "startsAt": "2017-06-03T01:45:47.493161609Z" + "silenced": "7cd828a9-50dd-4bad-a1fc-6ed2c22ac8dd", + "startsAt": "2017-06-21T19:52:54.919953909Z" }, { "annotations": { @@ -122,8 +122,8 @@ "instance": "server7", "job": "node_ping" }, - "silenced": "a7e42132-3843-4541-993a-7f383157c189", - "startsAt": "2017-06-03T01:45:47.493161609Z" + "silenced": "7cd828a9-50dd-4bad-a1fc-6ed2c22ac8dd", + "startsAt": "2017-06-21T19:52:54.919953909Z" }, { "annotations": { @@ -138,8 +138,8 @@ "instance": "server8", "job": "node_ping" }, - "silenced": "a7e42132-3843-4541-993a-7f383157c189", - "startsAt": "2017-06-03T01:45:47.493161609Z" + "silenced": "7cd828a9-50dd-4bad-a1fc-6ed2c22ac8dd", + "startsAt": "2017-06-21T19:52:54.919953909Z" }, { "annotations": { @@ -155,7 +155,7 @@ "instance": "server1", "job": "node_ping" }, - "startsAt": "2017-06-03T01:45:47.493161609Z" + "startsAt": "2017-06-21T19:52:54.919953909Z" }, { "annotations": { @@ -170,7 +170,7 @@ "instance": "server2", "job": "node_ping" }, - "startsAt": "2017-06-03T01:45:47.493161609Z" + "startsAt": "2017-06-21T19:52:54.919953909Z" }, { "annotations": { @@ -185,7 +185,7 @@ "instance": "server3", "job": "node_ping" }, - "startsAt": "2017-06-03T01:45:47.493161609Z" + "startsAt": "2017-06-21T19:52:54.919953909Z" }, { "annotations": { @@ -200,7 +200,7 @@ "instance": "server4", "job": "node_ping" }, - "startsAt": "2017-06-03T01:45:47.493161609Z" + "startsAt": "2017-06-21T19:52:54.919953909Z" }, { "annotations": { @@ -215,7 +215,7 @@ "instance": "server5", "job": "node_ping" }, - "startsAt": "2017-06-03T01:45:47.493161609Z" + "startsAt": "2017-06-21T19:52:54.919953909Z" } ], "routeOpts": { @@ -251,7 +251,7 @@ "instance": "server2", "job": "node_exporter" }, - "startsAt": "2017-06-03T01:45:47.493161609Z" + "startsAt": "2017-06-21T19:52:54.919953909Z" } ], "routeOpts": { @@ -287,7 +287,7 @@ "instance": "server5", "job": "node_exporter" }, - "startsAt": "2017-06-03T01:45:47.493161609Z" + "startsAt": "2017-06-21T19:52:54.919953909Z" } ], "routeOpts": { @@ -327,8 +327,8 @@ "instance": "web1", "job": "node_exporter" }, - "silenced": "aee02f72-4f11-492c-bc86-67a7d6d0c7a7", - "startsAt": "2017-06-03T01:45:47.493161609Z" + "silenced": "5917f10f-b9ba-4267-8024-ad6f0d4ebe90", + "startsAt": "2017-06-21T19:52:54.919953909Z" }, { "annotations": { @@ -343,7 +343,7 @@ "instance": "web2", "job": "node_exporter" }, - "startsAt": "2017-06-03T01:45:47.493161609Z" + "startsAt": "2017-06-21T19:52:54.919953909Z" } ], "routeOpts": { @@ -368,6 +368,22 @@ "blocks": [ { "alerts": [ + { + "annotations": { + "summary": "Example summary" + }, + "endsAt": "0001-01-01T00:00:00Z", + "generatorURL": "localhost/prometheus", + "inhibited": false, + "labels": { + "alertname": "Host_Down", + "cluster": "dev", + "instance": "server7", + "job": "node_ping" + }, + "silenced": "7cd828a9-50dd-4bad-a1fc-6ed2c22ac8dd", + "startsAt": "2017-06-21T19:52:54.919953909Z" + }, { "annotations": { "summary": "Example summary" @@ -381,8 +397,8 @@ "instance": "server8", "job": "node_ping" }, - "silenced": "a7e42132-3843-4541-993a-7f383157c189", - "startsAt": "2017-06-03T01:45:47.493161609Z" + "silenced": "7cd828a9-50dd-4bad-a1fc-6ed2c22ac8dd", + "startsAt": "2017-06-21T19:52:54.919953909Z" }, { "annotations": { @@ -397,31 +413,15 @@ "instance": "server6", "job": "node_ping" }, - "silenced": "a7e42132-3843-4541-993a-7f383157c189", - "startsAt": "2017-06-03T01:45:47.493161609Z" - }, - { - "annotations": { - "summary": "Example summary" - }, - "endsAt": "0001-01-01T00:00:00Z", - "generatorURL": "localhost/prometheus", - "inhibited": false, - "labels": { - "alertname": "Host_Down", - "cluster": "dev", - "instance": "server7", - "job": "node_ping" - }, - "silenced": "a7e42132-3843-4541-993a-7f383157c189", - "startsAt": "2017-06-03T01:45:47.493161609Z" + "silenced": "7cd828a9-50dd-4bad-a1fc-6ed2c22ac8dd", + "startsAt": "2017-06-21T19:52:54.919953909Z" } ], "routeOpts": { "groupBy": [ + "service", "alertname", - "cluster", - "service" + "cluster" ], "groupInterval": 35000000000, "groupWait": 15000000000, @@ -453,7 +453,7 @@ "instance": "server1", "job": "node_ping" }, - "startsAt": "2017-06-03T01:45:47.493161609Z" + "startsAt": "2017-06-21T19:52:54.919953909Z" }, { "annotations": { @@ -468,14 +468,14 @@ "instance": "server2", "job": "node_ping" }, - "startsAt": "2017-06-03T01:45:47.493161609Z" + "startsAt": "2017-06-21T19:52:54.919953909Z" } ], "routeOpts": { "groupBy": [ - "service", "alertname", - "cluster" + "cluster", + "service" ], "groupInterval": 35000000000, "groupWait": 15000000000, @@ -493,21 +493,6 @@ "blocks": [ { "alerts": [ - { - "annotations": { - "summary": "Example summary" - }, - "endsAt": "0001-01-01T00:00:00Z", - "generatorURL": "localhost/prometheus", - "inhibited": false, - "labels": { - "alertname": "Host_Down", - "cluster": "staging", - "instance": "server5", - "job": "node_ping" - }, - "startsAt": "2017-06-03T01:45:47.493161609Z" - }, { "annotations": { "summary": "Example summary" @@ -521,7 +506,7 @@ "instance": "server3", "job": "node_ping" }, - "startsAt": "2017-06-03T01:45:47.493161609Z" + "startsAt": "2017-06-21T19:52:54.919953909Z" }, { "annotations": { @@ -536,7 +521,22 @@ "instance": "server4", "job": "node_ping" }, - "startsAt": "2017-06-03T01:45:47.493161609Z" + "startsAt": "2017-06-21T19:52:54.919953909Z" + }, + { + "annotations": { + "summary": "Example summary" + }, + "endsAt": "0001-01-01T00:00:00Z", + "generatorURL": "localhost/prometheus", + "inhibited": false, + "labels": { + "alertname": "Host_Down", + "cluster": "staging", + "instance": "server5", + "job": "node_ping" + }, + "startsAt": "2017-06-21T19:52:54.919953909Z" } ], "routeOpts": { @@ -575,14 +575,14 @@ "instance": "server2", "job": "node_exporter" }, - "startsAt": "2017-06-03T01:45:47.493161609Z" + "startsAt": "2017-06-21T19:52:54.919953909Z" } ], "routeOpts": { "groupBy": [ - "service", "alertname", - "cluster" + "cluster", + "service" ], "groupInterval": 35000000000, "groupWait": 15000000000, diff --git a/mock/0.5.1/api/v1/silences b/mock/0.5.1/api/v1/silences index fb1c9a537..c346e7896 100644 --- a/mock/0.5.1/api/v1/silences +++ b/mock/0.5.1/api/v1/silences @@ -4,7 +4,7 @@ "comment": "Silenced instance", "createdBy": "john@example.com", "endsAt": "2063-01-01T00:00:00Z", - "id": "aee02f72-4f11-492c-bc86-67a7d6d0c7a7", + "id": "5917f10f-b9ba-4267-8024-ad6f0d4ebe90", "matchers": [ { "isRegex": false, @@ -12,14 +12,14 @@ "value": "web1" } ], - "startsAt": "2017-06-03T01:45:47.483774606Z", - "updatedAt": "2017-06-03T01:45:47.483774606Z" + "startsAt": "2017-06-21T19:52:54.914055435Z", + "updatedAt": "2017-06-21T19:52:54.914055435Z" }, { "comment": "Silenced Host_Down alerts in the dev cluster", "createdBy": "john@example.com", "endsAt": "2063-01-01T00:00:00Z", - "id": "a7e42132-3843-4541-993a-7f383157c189", + "id": "7cd828a9-50dd-4bad-a1fc-6ed2c22ac8dd", "matchers": [ { "isRegex": false, @@ -32,8 +32,23 @@ "value": "dev" } ], - "startsAt": "2017-06-03T01:45:47.48832377Z", - "updatedAt": "2017-06-03T01:45:47.48832377Z" + "startsAt": "2017-06-21T19:52:54.916254883Z", + "updatedAt": "2017-06-21T19:52:54.916254883Z" + }, + { + "comment": "Silenced server7", + "createdBy": "john@example.com", + "endsAt": "2063-01-01T00:00:00Z", + "id": "08594d9b-b479-4941-af6e-abcec89bbbd6", + "matchers": [ + { + "isRegex": false, + "name": "instance", + "value": "server7" + } + ], + "startsAt": "2017-06-21T19:52:54.917958631Z", + "updatedAt": "2017-06-21T19:52:54.917958631Z" } ], "status": "success" diff --git a/mock/0.5.1/api/v1/status b/mock/0.5.1/api/v1/status index 86acbbfb9..863c4ffcb 100644 --- a/mock/0.5.1/api/v1/status +++ b/mock/0.5.1/api/v1/status @@ -81,7 +81,7 @@ }, "templates": null }, - "uptime": "2017-06-03T01:45:32.431568061Z", + "uptime": "2017-06-21T19:52:39.893041646Z", "versionInfo": { "branch": "master", "buildDate": "20161125-08:14:40", diff --git a/mock/0.6.0/api/v1/alerts/groups b/mock/0.6.0/api/v1/alerts/groups index b5fece735..344e29fb0 100644 --- a/mock/0.6.0/api/v1/alerts/groups +++ b/mock/0.6.0/api/v1/alerts/groups @@ -18,7 +18,7 @@ "instance": "server5", "job": "node_exporter" }, - "startsAt": "2017-06-03T02:35:06.958786061Z" + "startsAt": "2017-06-21T19:54:02.96073587Z" } ], "routeOpts": { @@ -56,8 +56,8 @@ "instance": "web1", "job": "node_exporter" }, - "silenced": "64479e61-817d-4e57-92bb-23be8ba07a93", - "startsAt": "2017-06-03T02:35:06.958786061Z" + "silenced": "56992aa1-3bb1-4bc9-8378-f233a2b83671", + "startsAt": "2017-06-21T19:54:02.96073587Z" }, { "annotations": { @@ -72,7 +72,7 @@ "instance": "web2", "job": "node_exporter" }, - "startsAt": "2017-06-03T02:35:06.958786061Z" + "startsAt": "2017-06-21T19:54:02.96073587Z" } ], "routeOpts": { @@ -95,22 +95,6 @@ "blocks": [ { "alerts": [ - { - "annotations": { - "summary": "Example summary" - }, - "endsAt": "0001-01-01T00:00:00Z", - "generatorURL": "localhost/prometheus", - "inhibited": false, - "labels": { - "alertname": "Host_Down", - "cluster": "dev", - "instance": "server7", - "job": "node_ping" - }, - "silenced": "50a7c149-a44b-4e97-ac98-c072c4475fe4", - "startsAt": "2017-06-03T02:35:06.958786061Z" - }, { "annotations": { "summary": "Example summary" @@ -124,8 +108,8 @@ "instance": "server8", "job": "node_ping" }, - "silenced": "50a7c149-a44b-4e97-ac98-c072c4475fe4", - "startsAt": "2017-06-03T02:35:06.958786061Z" + "silenced": "84c7dd5a-31bc-4318-a63a-2b9e7b1f62b3", + "startsAt": "2017-06-21T19:54:02.96073587Z" }, { "annotations": { @@ -141,7 +125,7 @@ "instance": "server1", "job": "node_ping" }, - "startsAt": "2017-06-03T02:35:06.958786061Z" + "startsAt": "2017-06-21T19:54:02.96073587Z" }, { "annotations": { @@ -156,7 +140,7 @@ "instance": "server2", "job": "node_ping" }, - "startsAt": "2017-06-03T02:35:06.958786061Z" + "startsAt": "2017-06-21T19:54:02.96073587Z" }, { "annotations": { @@ -171,7 +155,7 @@ "instance": "server3", "job": "node_ping" }, - "startsAt": "2017-06-03T02:35:06.958786061Z" + "startsAt": "2017-06-21T19:54:02.96073587Z" }, { "annotations": { @@ -186,7 +170,7 @@ "instance": "server4", "job": "node_ping" }, - "startsAt": "2017-06-03T02:35:06.958786061Z" + "startsAt": "2017-06-21T19:54:02.96073587Z" }, { "annotations": { @@ -201,7 +185,7 @@ "instance": "server5", "job": "node_ping" }, - "startsAt": "2017-06-03T02:35:06.958786061Z" + "startsAt": "2017-06-21T19:54:02.96073587Z" }, { "annotations": { @@ -216,8 +200,24 @@ "instance": "server6", "job": "node_ping" }, - "silenced": "50a7c149-a44b-4e97-ac98-c072c4475fe4", - "startsAt": "2017-06-03T02:35:06.958786061Z" + "silenced": "84c7dd5a-31bc-4318-a63a-2b9e7b1f62b3", + "startsAt": "2017-06-21T19:54:02.96073587Z" + }, + { + "annotations": { + "summary": "Example summary" + }, + "endsAt": "0001-01-01T00:00:00Z", + "generatorURL": "localhost/prometheus", + "inhibited": false, + "labels": { + "alertname": "Host_Down", + "cluster": "dev", + "instance": "server7", + "job": "node_ping" + }, + "silenced": "84c7dd5a-31bc-4318-a63a-2b9e7b1f62b3", + "startsAt": "2017-06-21T19:54:02.96073587Z" } ], "routeOpts": { @@ -254,7 +254,7 @@ "instance": "server2", "job": "node_exporter" }, - "startsAt": "2017-06-03T02:35:06.958786061Z" + "startsAt": "2017-06-21T19:54:02.96073587Z" } ], "routeOpts": { @@ -291,7 +291,7 @@ "instance": "server5", "job": "node_exporter" }, - "startsAt": "2017-06-03T02:35:06.958786061Z" + "startsAt": "2017-06-21T19:54:02.96073587Z" } ], "routeOpts": { @@ -332,8 +332,8 @@ "instance": "web1", "job": "node_exporter" }, - "silenced": "64479e61-817d-4e57-92bb-23be8ba07a93", - "startsAt": "2017-06-03T02:35:06.958786061Z" + "silenced": "56992aa1-3bb1-4bc9-8378-f233a2b83671", + "startsAt": "2017-06-21T19:54:02.96073587Z" }, { "annotations": { @@ -348,7 +348,7 @@ "instance": "web2", "job": "node_exporter" }, - "startsAt": "2017-06-03T02:35:06.958786061Z" + "startsAt": "2017-06-21T19:54:02.96073587Z" } ], "routeOpts": { @@ -374,6 +374,22 @@ "blocks": [ { "alerts": [ + { + "annotations": { + "summary": "Example summary" + }, + "endsAt": "0001-01-01T00:00:00Z", + "generatorURL": "localhost/prometheus", + "inhibited": false, + "labels": { + "alertname": "Host_Down", + "cluster": "dev", + "instance": "server6", + "job": "node_ping" + }, + "silenced": "84c7dd5a-31bc-4318-a63a-2b9e7b1f62b3", + "startsAt": "2017-06-21T19:54:02.96073587Z" + }, { "annotations": { "summary": "Example summary" @@ -387,8 +403,8 @@ "instance": "server7", "job": "node_ping" }, - "silenced": "50a7c149-a44b-4e97-ac98-c072c4475fe4", - "startsAt": "2017-06-03T02:35:06.958786061Z" + "silenced": "84c7dd5a-31bc-4318-a63a-2b9e7b1f62b3", + "startsAt": "2017-06-21T19:54:02.96073587Z" }, { "annotations": { @@ -403,24 +419,8 @@ "instance": "server8", "job": "node_ping" }, - "silenced": "50a7c149-a44b-4e97-ac98-c072c4475fe4", - "startsAt": "2017-06-03T02:35:06.958786061Z" - }, - { - "annotations": { - "summary": "Example summary" - }, - "endsAt": "0001-01-01T00:00:00Z", - "generatorURL": "localhost/prometheus", - "inhibited": false, - "labels": { - "alertname": "Host_Down", - "cluster": "dev", - "instance": "server6", - "job": "node_ping" - }, - "silenced": "50a7c149-a44b-4e97-ac98-c072c4475fe4", - "startsAt": "2017-06-03T02:35:06.958786061Z" + "silenced": "84c7dd5a-31bc-4318-a63a-2b9e7b1f62b3", + "startsAt": "2017-06-21T19:54:02.96073587Z" } ], "routeOpts": { @@ -460,7 +460,7 @@ "instance": "server1", "job": "node_ping" }, - "startsAt": "2017-06-03T02:35:06.958786061Z" + "startsAt": "2017-06-21T19:54:02.96073587Z" }, { "annotations": { @@ -475,7 +475,7 @@ "instance": "server2", "job": "node_ping" }, - "startsAt": "2017-06-03T02:35:06.958786061Z" + "startsAt": "2017-06-21T19:54:02.96073587Z" } ], "routeOpts": { @@ -501,6 +501,21 @@ "blocks": [ { "alerts": [ + { + "annotations": { + "summary": "Example summary" + }, + "endsAt": "0001-01-01T00:00:00Z", + "generatorURL": "localhost/prometheus", + "inhibited": false, + "labels": { + "alertname": "Host_Down", + "cluster": "staging", + "instance": "server5", + "job": "node_ping" + }, + "startsAt": "2017-06-21T19:54:02.96073587Z" + }, { "annotations": { "summary": "Example summary" @@ -514,7 +529,7 @@ "instance": "server3", "job": "node_ping" }, - "startsAt": "2017-06-03T02:35:06.958786061Z" + "startsAt": "2017-06-21T19:54:02.96073587Z" }, { "annotations": { @@ -529,29 +544,14 @@ "instance": "server4", "job": "node_ping" }, - "startsAt": "2017-06-03T02:35:06.958786061Z" - }, - { - "annotations": { - "summary": "Example summary" - }, - "endsAt": "0001-01-01T00:00:00Z", - "generatorURL": "localhost/prometheus", - "inhibited": false, - "labels": { - "alertname": "Host_Down", - "cluster": "staging", - "instance": "server5", - "job": "node_ping" - }, - "startsAt": "2017-06-03T02:35:06.958786061Z" + "startsAt": "2017-06-21T19:54:02.96073587Z" } ], "routeOpts": { "groupBy": [ + "alertname", "cluster", - "service", - "alertname" + "service" ], "groupInterval": 35000000000, "groupWait": 15000000000, @@ -584,7 +584,7 @@ "instance": "server2", "job": "node_exporter" }, - "startsAt": "2017-06-03T02:35:06.958786061Z" + "startsAt": "2017-06-21T19:54:02.96073587Z" } ], "routeOpts": { diff --git a/mock/0.6.0/api/v1/silences b/mock/0.6.0/api/v1/silences index ceba88a3a..9cfc04544 100644 --- a/mock/0.6.0/api/v1/silences +++ b/mock/0.6.0/api/v1/silences @@ -4,7 +4,7 @@ "comment": "Silenced instance", "createdBy": "john@example.com", "endsAt": "2063-01-01T00:00:00Z", - "id": "64479e61-817d-4e57-92bb-23be8ba07a93", + "id": "56992aa1-3bb1-4bc9-8378-f233a2b83671", "matchers": [ { "isRegex": false, @@ -12,14 +12,14 @@ "value": "web1" } ], - "startsAt": "2017-06-03T01:47:01.941185995Z", - "updatedAt": "2017-06-03T01:47:01.941185995Z" + "startsAt": "2017-06-21T19:54:02.954898476Z", + "updatedAt": "2017-06-21T19:54:02.954898476Z" }, { "comment": "Silenced Host_Down alerts in the dev cluster", "createdBy": "john@example.com", "endsAt": "2063-01-01T00:00:00Z", - "id": "50a7c149-a44b-4e97-ac98-c072c4475fe4", + "id": "84c7dd5a-31bc-4318-a63a-2b9e7b1f62b3", "matchers": [ { "isRegex": false, @@ -32,8 +32,23 @@ "value": "dev" } ], - "startsAt": "2017-06-03T01:47:01.945603009Z", - "updatedAt": "2017-06-03T01:47:01.945603009Z" + "startsAt": "2017-06-21T19:54:02.957027907Z", + "updatedAt": "2017-06-21T19:54:02.957027907Z" + }, + { + "comment": "Silenced server7", + "createdBy": "john@example.com", + "endsAt": "2063-01-01T00:00:00Z", + "id": "60dfd0f4-bfa9-4741-aa02-74be9dc5e585", + "matchers": [ + { + "isRegex": false, + "name": "instance", + "value": "server7" + } + ], + "startsAt": "2017-06-21T19:54:02.958838414Z", + "updatedAt": "2017-06-21T19:54:02.958838414Z" } ], "status": "success" diff --git a/mock/0.6.0/api/v1/status b/mock/0.6.0/api/v1/status index 71a288994..164dac7ae 100644 --- a/mock/0.6.0/api/v1/status +++ b/mock/0.6.0/api/v1/status @@ -83,16 +83,16 @@ }, "meshStatus": { "name": "02:42:ac:11:00:02", - "nickName": "0598877b77eb", + "nickName": "50bf7fbfa0d9", "peers": [ { "name": "02:42:ac:11:00:02", - "nickName": "0598877b77eb", - "uid": 9276870122370880903 + "nickName": "50bf7fbfa0d9", + "uid": 7500147642750525955 } ] }, - "uptime": "2017-06-03T01:46:46.697462943Z", + "uptime": "2017-06-21T19:53:47.932629807Z", "versionInfo": { "branch": "master", "buildDate": "20170425-19:48:54", diff --git a/mock/0.6.2/api/v1/alerts/groups b/mock/0.6.2/api/v1/alerts/groups index 47b1b8874..91fb3e730 100644 --- a/mock/0.6.2/api/v1/alerts/groups +++ b/mock/0.6.2/api/v1/alerts/groups @@ -17,7 +17,7 @@ "instance": "server5", "job": "node_exporter" }, - "startsAt": "2017-06-03T02:36:54.162719582Z", + "startsAt": "2017-06-21T19:58:13.560493443Z", "status": { "inhibitedBy": [], "silencedBy": [], @@ -59,11 +59,11 @@ "instance": "web1", "job": "node_exporter" }, - "startsAt": "2017-06-03T02:36:54.162719582Z", + "startsAt": "2017-06-21T19:58:13.560493443Z", "status": { "inhibitedBy": null, "silencedBy": [ - "72abd13d-ce8f-4969-824e-4bf0be564fd9" + "2f4adc48-2326-41b4-b0b3-300df61669f2" ], "state": "suppressed" } @@ -80,7 +80,7 @@ "instance": "web2", "job": "node_exporter" }, - "startsAt": "2017-06-03T02:36:54.162719582Z", + "startsAt": "2017-06-21T19:58:13.560493443Z", "status": { "inhibitedBy": [], "silencedBy": [], @@ -108,26 +108,6 @@ "blocks": [ { "alerts": [ - { - "annotations": { - "summary": "Example summary", - "url": "http://localhost/example.html" - }, - "endsAt": "0001-01-01T00:00:00Z", - "generatorURL": "localhost/prometheus", - "labels": { - "alertname": "Host_Down", - "cluster": "prod", - "instance": "server1", - "job": "node_ping" - }, - "startsAt": "2017-06-03T02:36:54.162719582Z", - "status": { - "inhibitedBy": [], - "silencedBy": [], - "state": "active" - } - }, { "annotations": { "summary": "Example summary" @@ -140,7 +120,7 @@ "instance": "server2", "job": "node_ping" }, - "startsAt": "2017-06-03T02:36:54.162719582Z", + "startsAt": "2017-06-21T19:58:13.560493443Z", "status": { "inhibitedBy": [], "silencedBy": [], @@ -159,7 +139,7 @@ "instance": "server3", "job": "node_ping" }, - "startsAt": "2017-06-03T02:36:54.162719582Z", + "startsAt": "2017-06-21T19:58:13.560493443Z", "status": { "inhibitedBy": [], "silencedBy": [], @@ -178,7 +158,7 @@ "instance": "server4", "job": "node_ping" }, - "startsAt": "2017-06-03T02:36:54.162719582Z", + "startsAt": "2017-06-21T19:58:13.560493443Z", "status": { "inhibitedBy": [], "silencedBy": [], @@ -197,7 +177,7 @@ "instance": "server5", "job": "node_ping" }, - "startsAt": "2017-06-03T02:36:54.162719582Z", + "startsAt": "2017-06-21T19:58:13.560493443Z", "status": { "inhibitedBy": [], "silencedBy": [], @@ -216,11 +196,11 @@ "instance": "server6", "job": "node_ping" }, - "startsAt": "2017-06-03T02:36:54.162719582Z", + "startsAt": "2017-06-21T19:58:13.560493443Z", "status": { "inhibitedBy": null, "silencedBy": [ - "366a415b-5dae-468b-ba5c-6ae3593d2339" + "cb8dea83-bb92-4887-a0ad-ed3549a315b4" ], "state": "suppressed" } @@ -237,11 +217,12 @@ "instance": "server7", "job": "node_ping" }, - "startsAt": "2017-06-03T02:36:54.162719582Z", + "startsAt": "2017-06-21T19:58:13.560493443Z", "status": { "inhibitedBy": null, "silencedBy": [ - "366a415b-5dae-468b-ba5c-6ae3593d2339" + "cb8dea83-bb92-4887-a0ad-ed3549a315b4", + "45edb919-4bc1-46ea-b7fd-97c1692cab75" ], "state": "suppressed" } @@ -258,14 +239,34 @@ "instance": "server8", "job": "node_ping" }, - "startsAt": "2017-06-03T02:36:54.162719582Z", + "startsAt": "2017-06-21T19:58:13.560493443Z", "status": { "inhibitedBy": null, "silencedBy": [ - "366a415b-5dae-468b-ba5c-6ae3593d2339" + "cb8dea83-bb92-4887-a0ad-ed3549a315b4" ], "state": "suppressed" } + }, + { + "annotations": { + "summary": "Example summary", + "url": "http://localhost/example.html" + }, + "endsAt": "0001-01-01T00:00:00Z", + "generatorURL": "localhost/prometheus", + "labels": { + "alertname": "Host_Down", + "cluster": "prod", + "instance": "server1", + "job": "node_ping" + }, + "startsAt": "2017-06-21T19:58:13.560493443Z", + "status": { + "inhibitedBy": [], + "silencedBy": [], + "state": "active" + } } ], "routeOpts": { @@ -301,7 +302,7 @@ "instance": "server2", "job": "node_exporter" }, - "startsAt": "2017-06-03T02:36:54.162719582Z", + "startsAt": "2017-06-21T19:58:13.560493443Z", "status": { "inhibitedBy": [], "silencedBy": [], @@ -342,7 +343,7 @@ "instance": "server5", "job": "node_exporter" }, - "startsAt": "2017-06-03T02:36:54.162719582Z", + "startsAt": "2017-06-21T19:58:13.560493443Z", "status": { "inhibitedBy": [], "silencedBy": [], @@ -387,11 +388,11 @@ "instance": "web1", "job": "node_exporter" }, - "startsAt": "2017-06-03T02:36:54.162719582Z", + "startsAt": "2017-06-21T19:58:13.560493443Z", "status": { "inhibitedBy": null, "silencedBy": [ - "72abd13d-ce8f-4969-824e-4bf0be564fd9" + "2f4adc48-2326-41b4-b0b3-300df61669f2" ], "state": "suppressed" } @@ -408,7 +409,7 @@ "instance": "web2", "job": "node_exporter" }, - "startsAt": "2017-06-03T02:36:54.162719582Z", + "startsAt": "2017-06-21T19:58:13.560493443Z", "status": { "inhibitedBy": [], "silencedBy": [], @@ -448,14 +449,36 @@ "labels": { "alertname": "Host_Down", "cluster": "dev", - "instance": "server7", + "instance": "server6", "job": "node_ping" }, - "startsAt": "2017-06-03T02:36:54.162719582Z", + "startsAt": "2017-06-21T19:58:13.560493443Z", "status": { "inhibitedBy": null, "silencedBy": [ - "366a415b-5dae-468b-ba5c-6ae3593d2339" + "cb8dea83-bb92-4887-a0ad-ed3549a315b4" + ], + "state": "suppressed" + } + }, + { + "annotations": { + "summary": "Example summary" + }, + "endsAt": "0001-01-01T00:00:00Z", + "generatorURL": "localhost/prometheus", + "labels": { + "alertname": "Host_Down", + "cluster": "dev", + "instance": "server7", + "job": "node_ping" + }, + "startsAt": "2017-06-21T19:58:13.560493443Z", + "status": { + "inhibitedBy": null, + "silencedBy": [ + "cb8dea83-bb92-4887-a0ad-ed3549a315b4", + "45edb919-4bc1-46ea-b7fd-97c1692cab75" ], "state": "suppressed" } @@ -472,32 +495,11 @@ "instance": "server8", "job": "node_ping" }, - "startsAt": "2017-06-03T02:36:54.162719582Z", + "startsAt": "2017-06-21T19:58:13.560493443Z", "status": { "inhibitedBy": null, "silencedBy": [ - "366a415b-5dae-468b-ba5c-6ae3593d2339" - ], - "state": "suppressed" - } - }, - { - "annotations": { - "summary": "Example summary" - }, - "endsAt": "0001-01-01T00:00:00Z", - "generatorURL": "localhost/prometheus", - "labels": { - "alertname": "Host_Down", - "cluster": "dev", - "instance": "server6", - "job": "node_ping" - }, - "startsAt": "2017-06-03T02:36:54.162719582Z", - "status": { - "inhibitedBy": null, - "silencedBy": [ - "366a415b-5dae-468b-ba5c-6ae3593d2339" + "cb8dea83-bb92-4887-a0ad-ed3549a315b4" ], "state": "suppressed" } @@ -526,25 +528,6 @@ "blocks": [ { "alerts": [ - { - "annotations": { - "summary": "Example summary" - }, - "endsAt": "0001-01-01T00:00:00Z", - "generatorURL": "localhost/prometheus", - "labels": { - "alertname": "Host_Down", - "cluster": "prod", - "instance": "server2", - "job": "node_ping" - }, - "startsAt": "2017-06-03T02:36:54.162719582Z", - "status": { - "inhibitedBy": [], - "silencedBy": [], - "state": "active" - } - }, { "annotations": { "summary": "Example summary", @@ -558,7 +541,26 @@ "instance": "server1", "job": "node_ping" }, - "startsAt": "2017-06-03T02:36:54.162719582Z", + "startsAt": "2017-06-21T19:58:13.560493443Z", + "status": { + "inhibitedBy": [], + "silencedBy": [], + "state": "active" + } + }, + { + "annotations": { + "summary": "Example summary" + }, + "endsAt": "0001-01-01T00:00:00Z", + "generatorURL": "localhost/prometheus", + "labels": { + "alertname": "Host_Down", + "cluster": "prod", + "instance": "server2", + "job": "node_ping" + }, + "startsAt": "2017-06-21T19:58:13.560493443Z", "status": { "inhibitedBy": [], "silencedBy": [], @@ -601,7 +603,7 @@ "instance": "server3", "job": "node_ping" }, - "startsAt": "2017-06-03T02:36:54.162719582Z", + "startsAt": "2017-06-21T19:58:13.560493443Z", "status": { "inhibitedBy": [], "silencedBy": [], @@ -620,7 +622,7 @@ "instance": "server4", "job": "node_ping" }, - "startsAt": "2017-06-03T02:36:54.162719582Z", + "startsAt": "2017-06-21T19:58:13.560493443Z", "status": { "inhibitedBy": [], "silencedBy": [], @@ -639,7 +641,7 @@ "instance": "server5", "job": "node_ping" }, - "startsAt": "2017-06-03T02:36:54.162719582Z", + "startsAt": "2017-06-21T19:58:13.560493443Z", "status": { "inhibitedBy": [], "silencedBy": [], @@ -683,7 +685,7 @@ "instance": "server2", "job": "node_exporter" }, - "startsAt": "2017-06-03T02:36:54.162719582Z", + "startsAt": "2017-06-21T19:58:13.560493443Z", "status": { "inhibitedBy": [], "silencedBy": [], @@ -693,9 +695,9 @@ ], "routeOpts": { "groupBy": [ + "alertname", "cluster", - "service", - "alertname" + "service" ], "groupInterval": 35000000000, "groupWait": 15000000000, diff --git a/mock/0.6.2/api/v1/silences b/mock/0.6.2/api/v1/silences index 147e8219b..f069e8283 100644 --- a/mock/0.6.2/api/v1/silences +++ b/mock/0.6.2/api/v1/silences @@ -4,7 +4,7 @@ "comment": "Silenced instance", "createdBy": "john@example.com", "endsAt": "2063-01-01T00:00:00Z", - "id": "72abd13d-ce8f-4969-824e-4bf0be564fd9", + "id": "2f4adc48-2326-41b4-b0b3-300df61669f2", "matchers": [ { "isRegex": false, @@ -12,14 +12,14 @@ "value": "web1" } ], - "startsAt": "2017-06-03T02:36:54.153521654Z", - "updatedAt": "2017-06-03T02:36:54.153521654Z" + "startsAt": "2017-06-21T19:58:13.551032775Z", + "updatedAt": "2017-06-21T19:58:13.551032775Z" }, { "comment": "Silenced Host_Down alerts in the dev cluster", "createdBy": "john@example.com", "endsAt": "2063-01-01T00:00:00Z", - "id": "366a415b-5dae-468b-ba5c-6ae3593d2339", + "id": "cb8dea83-bb92-4887-a0ad-ed3549a315b4", "matchers": [ { "isRegex": false, @@ -32,8 +32,23 @@ "value": "dev" } ], - "startsAt": "2017-06-03T02:36:54.158015986Z", - "updatedAt": "2017-06-03T02:36:54.158015986Z" + "startsAt": "2017-06-21T19:58:13.554249508Z", + "updatedAt": "2017-06-21T19:58:13.554249508Z" + }, + { + "comment": "Silenced server7", + "createdBy": "john@example.com", + "endsAt": "2063-01-01T00:00:00Z", + "id": "45edb919-4bc1-46ea-b7fd-97c1692cab75", + "matchers": [ + { + "isRegex": false, + "name": "instance", + "value": "server7" + } + ], + "startsAt": "2017-06-21T19:58:13.55840755Z", + "updatedAt": "2017-06-21T19:58:13.55840755Z" } ], "status": "success" diff --git a/mock/0.6.2/api/v1/status b/mock/0.6.2/api/v1/status index d503cab5a..0ba0affd5 100644 --- a/mock/0.6.2/api/v1/status +++ b/mock/0.6.2/api/v1/status @@ -83,16 +83,16 @@ }, "meshStatus": { "name": "02:42:ac:11:00:02", - "nickName": "09df03db50be", + "nickName": "ba205ac89c68", "peers": [ { "name": "02:42:ac:11:00:02", - "nickName": "09df03db50be", - "uid": 7391608572669058056 + "nickName": "ba205ac89c68", + "uid": 2202700455073252735 } ] }, - "uptime": "2017-06-03T02:36:38.990772207Z", + "uptime": "2017-06-21T19:57:58.529748916Z", "versionInfo": { "branch": "master", "buildDate": "20170509-08:56:14", diff --git a/mock/0.7.0/api/v1/alerts/groups b/mock/0.7.0/api/v1/alerts/groups index 32e68952c..777597cb5 100644 --- a/mock/0.7.0/api/v1/alerts/groups +++ b/mock/0.7.0/api/v1/alerts/groups @@ -17,7 +17,7 @@ "instance": "server5", "job": "node_exporter" }, - "startsAt": "2017-06-08T23:50:40.666197297Z", + "startsAt": "2017-06-21T19:59:21.607980084Z", "status": { "inhibitedBy": [], "silencedBy": [], @@ -59,11 +59,11 @@ "instance": "web1", "job": "node_exporter" }, - "startsAt": "2017-06-08T23:50:40.666197297Z", + "startsAt": "2017-06-21T19:59:21.607980084Z", "status": { "inhibitedBy": null, "silencedBy": [ - "6e80f84c-6426-4834-91bb-96654dbc9a68" + "bd452296-bf0b-4c0b-9eb3-5ef84fc3ad2c" ], "state": "suppressed" } @@ -80,7 +80,7 @@ "instance": "web2", "job": "node_exporter" }, - "startsAt": "2017-06-08T23:50:40.666197297Z", + "startsAt": "2017-06-21T19:59:21.607980084Z", "status": { "inhibitedBy": [], "silencedBy": [], @@ -108,87 +108,6 @@ "blocks": [ { "alerts": [ - { - "annotations": { - "summary": "Example summary" - }, - "endsAt": "0001-01-01T00:00:00Z", - "generatorURL": "localhost/prometheus", - "labels": { - "alertname": "Host_Down", - "cluster": "dev", - "instance": "server7", - "job": "node_ping" - }, - "startsAt": "2017-06-08T23:50:40.666197297Z", - "status": { - "inhibitedBy": null, - "silencedBy": [ - "bbb87a0b-849b-4f65-b71f-e92e855fb07a" - ], - "state": "suppressed" - } - }, - { - "annotations": { - "summary": "Example summary" - }, - "endsAt": "0001-01-01T00:00:00Z", - "generatorURL": "localhost/prometheus", - "labels": { - "alertname": "Host_Down", - "cluster": "dev", - "instance": "server8", - "job": "node_ping" - }, - "startsAt": "2017-06-08T23:50:40.666197297Z", - "status": { - "inhibitedBy": null, - "silencedBy": [ - "bbb87a0b-849b-4f65-b71f-e92e855fb07a" - ], - "state": "suppressed" - } - }, - { - "annotations": { - "summary": "Example summary", - "url": "http://localhost/example.html" - }, - "endsAt": "0001-01-01T00:00:00Z", - "generatorURL": "localhost/prometheus", - "labels": { - "alertname": "Host_Down", - "cluster": "prod", - "instance": "server1", - "job": "node_ping" - }, - "startsAt": "2017-06-08T23:50:40.666197297Z", - "status": { - "inhibitedBy": [], - "silencedBy": [], - "state": "active" - } - }, - { - "annotations": { - "summary": "Example summary" - }, - "endsAt": "0001-01-01T00:00:00Z", - "generatorURL": "localhost/prometheus", - "labels": { - "alertname": "Host_Down", - "cluster": "prod", - "instance": "server2", - "job": "node_ping" - }, - "startsAt": "2017-06-08T23:50:40.666197297Z", - "status": { - "inhibitedBy": [], - "silencedBy": [], - "state": "active" - } - }, { "annotations": { "summary": "Example summary" @@ -201,7 +120,7 @@ "instance": "server3", "job": "node_ping" }, - "startsAt": "2017-06-08T23:50:40.666197297Z", + "startsAt": "2017-06-21T19:59:21.607980084Z", "status": { "inhibitedBy": [], "silencedBy": [], @@ -220,7 +139,7 @@ "instance": "server4", "job": "node_ping" }, - "startsAt": "2017-06-08T23:50:40.666197297Z", + "startsAt": "2017-06-21T19:59:21.607980084Z", "status": { "inhibitedBy": [], "silencedBy": [], @@ -239,7 +158,7 @@ "instance": "server5", "job": "node_ping" }, - "startsAt": "2017-06-08T23:50:40.666197297Z", + "startsAt": "2017-06-21T19:59:21.607980084Z", "status": { "inhibitedBy": [], "silencedBy": [], @@ -258,14 +177,96 @@ "instance": "server6", "job": "node_ping" }, - "startsAt": "2017-06-08T23:50:40.666197297Z", + "startsAt": "2017-06-21T19:59:21.607980084Z", "status": { "inhibitedBy": null, "silencedBy": [ - "bbb87a0b-849b-4f65-b71f-e92e855fb07a" + "6faee101-39cf-4700-acd0-f140290db8f8" ], "state": "suppressed" } + }, + { + "annotations": { + "summary": "Example summary" + }, + "endsAt": "0001-01-01T00:00:00Z", + "generatorURL": "localhost/prometheus", + "labels": { + "alertname": "Host_Down", + "cluster": "dev", + "instance": "server7", + "job": "node_ping" + }, + "startsAt": "2017-06-21T19:59:21.607980084Z", + "status": { + "inhibitedBy": null, + "silencedBy": [ + "6faee101-39cf-4700-acd0-f140290db8f8", + "552bccef-c6ff-40ce-a519-eeb14e3f0c80" + ], + "state": "suppressed" + } + }, + { + "annotations": { + "summary": "Example summary" + }, + "endsAt": "0001-01-01T00:00:00Z", + "generatorURL": "localhost/prometheus", + "labels": { + "alertname": "Host_Down", + "cluster": "dev", + "instance": "server8", + "job": "node_ping" + }, + "startsAt": "2017-06-21T19:59:21.607980084Z", + "status": { + "inhibitedBy": null, + "silencedBy": [ + "6faee101-39cf-4700-acd0-f140290db8f8" + ], + "state": "suppressed" + } + }, + { + "annotations": { + "summary": "Example summary", + "url": "http://localhost/example.html" + }, + "endsAt": "0001-01-01T00:00:00Z", + "generatorURL": "localhost/prometheus", + "labels": { + "alertname": "Host_Down", + "cluster": "prod", + "instance": "server1", + "job": "node_ping" + }, + "startsAt": "2017-06-21T19:59:21.607980084Z", + "status": { + "inhibitedBy": [], + "silencedBy": [], + "state": "active" + } + }, + { + "annotations": { + "summary": "Example summary" + }, + "endsAt": "0001-01-01T00:00:00Z", + "generatorURL": "localhost/prometheus", + "labels": { + "alertname": "Host_Down", + "cluster": "prod", + "instance": "server2", + "job": "node_ping" + }, + "startsAt": "2017-06-21T19:59:21.607980084Z", + "status": { + "inhibitedBy": [], + "silencedBy": [], + "state": "active" + } } ], "routeOpts": { @@ -301,7 +302,7 @@ "instance": "server2", "job": "node_exporter" }, - "startsAt": "2017-06-08T23:50:40.666197297Z", + "startsAt": "2017-06-21T19:59:21.607980084Z", "status": { "inhibitedBy": [], "silencedBy": [], @@ -342,7 +343,7 @@ "instance": "server5", "job": "node_exporter" }, - "startsAt": "2017-06-08T23:50:40.666197297Z", + "startsAt": "2017-06-21T19:59:21.607980084Z", "status": { "inhibitedBy": [], "silencedBy": [], @@ -352,9 +353,9 @@ ], "routeOpts": { "groupBy": [ + "alertname", "cluster", - "service", - "alertname" + "service" ], "groupInterval": 35000000000, "groupWait": 15000000000, @@ -387,11 +388,11 @@ "instance": "web1", "job": "node_exporter" }, - "startsAt": "2017-06-08T23:50:40.666197297Z", + "startsAt": "2017-06-21T19:59:21.607980084Z", "status": { "inhibitedBy": null, "silencedBy": [ - "6e80f84c-6426-4834-91bb-96654dbc9a68" + "bd452296-bf0b-4c0b-9eb3-5ef84fc3ad2c" ], "state": "suppressed" } @@ -408,7 +409,7 @@ "instance": "web2", "job": "node_exporter" }, - "startsAt": "2017-06-08T23:50:40.666197297Z", + "startsAt": "2017-06-21T19:59:21.607980084Z", "status": { "inhibitedBy": [], "silencedBy": [], @@ -418,9 +419,9 @@ ], "routeOpts": { "groupBy": [ - "service", "alertname", - "cluster" + "cluster", + "service" ], "groupInterval": 35000000000, "groupWait": 15000000000, @@ -451,11 +452,11 @@ "instance": "server6", "job": "node_ping" }, - "startsAt": "2017-06-08T23:50:40.666197297Z", + "startsAt": "2017-06-21T19:59:21.607980084Z", "status": { "inhibitedBy": null, "silencedBy": [ - "bbb87a0b-849b-4f65-b71f-e92e855fb07a" + "6faee101-39cf-4700-acd0-f140290db8f8" ], "state": "suppressed" } @@ -472,11 +473,12 @@ "instance": "server7", "job": "node_ping" }, - "startsAt": "2017-06-08T23:50:40.666197297Z", + "startsAt": "2017-06-21T19:59:21.607980084Z", "status": { "inhibitedBy": null, "silencedBy": [ - "bbb87a0b-849b-4f65-b71f-e92e855fb07a" + "6faee101-39cf-4700-acd0-f140290db8f8", + "552bccef-c6ff-40ce-a519-eeb14e3f0c80" ], "state": "suppressed" } @@ -493,11 +495,11 @@ "instance": "server8", "job": "node_ping" }, - "startsAt": "2017-06-08T23:50:40.666197297Z", + "startsAt": "2017-06-21T19:59:21.607980084Z", "status": { "inhibitedBy": null, "silencedBy": [ - "bbb87a0b-849b-4f65-b71f-e92e855fb07a" + "6faee101-39cf-4700-acd0-f140290db8f8" ], "state": "suppressed" } @@ -539,7 +541,7 @@ "instance": "server1", "job": "node_ping" }, - "startsAt": "2017-06-08T23:50:40.666197297Z", + "startsAt": "2017-06-21T19:59:21.607980084Z", "status": { "inhibitedBy": [], "silencedBy": [], @@ -558,7 +560,7 @@ "instance": "server2", "job": "node_ping" }, - "startsAt": "2017-06-08T23:50:40.666197297Z", + "startsAt": "2017-06-21T19:59:21.607980084Z", "status": { "inhibitedBy": [], "silencedBy": [], @@ -601,7 +603,7 @@ "instance": "server3", "job": "node_ping" }, - "startsAt": "2017-06-08T23:50:40.666197297Z", + "startsAt": "2017-06-21T19:59:21.607980084Z", "status": { "inhibitedBy": [], "silencedBy": [], @@ -620,7 +622,7 @@ "instance": "server4", "job": "node_ping" }, - "startsAt": "2017-06-08T23:50:40.666197297Z", + "startsAt": "2017-06-21T19:59:21.607980084Z", "status": { "inhibitedBy": [], "silencedBy": [], @@ -639,7 +641,7 @@ "instance": "server5", "job": "node_ping" }, - "startsAt": "2017-06-08T23:50:40.666197297Z", + "startsAt": "2017-06-21T19:59:21.607980084Z", "status": { "inhibitedBy": [], "silencedBy": [], @@ -649,9 +651,9 @@ ], "routeOpts": { "groupBy": [ - "service", "alertname", - "cluster" + "cluster", + "service" ], "groupInterval": 35000000000, "groupWait": 15000000000, @@ -683,7 +685,7 @@ "instance": "server2", "job": "node_exporter" }, - "startsAt": "2017-06-08T23:50:40.666197297Z", + "startsAt": "2017-06-21T19:59:21.607980084Z", "status": { "inhibitedBy": [], "silencedBy": [], @@ -693,9 +695,9 @@ ], "routeOpts": { "groupBy": [ - "service", "alertname", - "cluster" + "cluster", + "service" ], "groupInterval": 35000000000, "groupWait": 15000000000, diff --git a/mock/0.7.0/api/v1/silences b/mock/0.7.0/api/v1/silences index 0bb35f719..fba788d52 100644 --- a/mock/0.7.0/api/v1/silences +++ b/mock/0.7.0/api/v1/silences @@ -1,10 +1,28 @@ { "data": [ + { + "comment": "Silenced instance", + "createdBy": "john@example.com", + "endsAt": "2063-01-01T00:00:00Z", + "id": "bd452296-bf0b-4c0b-9eb3-5ef84fc3ad2c", + "matchers": [ + { + "isRegex": false, + "name": "instance", + "value": "web1" + } + ], + "startsAt": "2017-06-21T19:59:21.60217124Z", + "status": { + "state": "active" + }, + "updatedAt": "2017-06-21T19:59:21.602176988Z" + }, { "comment": "Silenced Host_Down alerts in the dev cluster", "createdBy": "john@example.com", "endsAt": "2063-01-01T00:00:00Z", - "id": "bbb87a0b-849b-4f65-b71f-e92e855fb07a", + "id": "6faee101-39cf-4700-acd0-f140290db8f8", "matchers": [ { "isRegex": false, @@ -17,29 +35,29 @@ "value": "dev" } ], - "startsAt": "2017-06-08T23:50:40.664243298Z", + "startsAt": "2017-06-21T19:59:21.604369673Z", "status": { "state": "active" }, - "updatedAt": "2017-06-08T23:50:40.664246847Z" + "updatedAt": "2017-06-21T19:59:21.604373791Z" }, { - "comment": "Silenced instance", + "comment": "Silenced server7", "createdBy": "john@example.com", "endsAt": "2063-01-01T00:00:00Z", - "id": "6e80f84c-6426-4834-91bb-96654dbc9a68", + "id": "552bccef-c6ff-40ce-a519-eeb14e3f0c80", "matchers": [ { "isRegex": false, "name": "instance", - "value": "web1" + "value": "server7" } ], - "startsAt": "2017-06-08T23:50:40.662158313Z", + "startsAt": "2017-06-21T19:59:21.606078285Z", "status": { "state": "active" }, - "updatedAt": "2017-06-08T23:50:40.662162636Z" + "updatedAt": "2017-06-21T19:59:21.606082023Z" } ], "status": "success" diff --git a/mock/0.7.0/api/v1/status b/mock/0.7.0/api/v1/status index ab68384b6..210125d5b 100644 --- a/mock/0.7.0/api/v1/status +++ b/mock/0.7.0/api/v1/status @@ -83,16 +83,16 @@ "configYAML": "global:\n resolve_timeout: 5m\n smtp_from: \"\"\n smtp_smarthost: \"\"\n smtp_auth_username: \"\"\n smtp_auth_password: null\n smtp_auth_secret: null\n smtp_auth_identity: \"\"\n smtp_require_tls: true\n slack_api_url: null\n pagerduty_url: https://events.pagerduty.com/generic/2010-04-15/create_event.json\n hipchat_url: https://api.hipchat.com/\n hipchat_auth_token: null\n opsgenie_api_host: https://api.opsgenie.com/\n victorops_api_url: https://alert.victorops.com/integrations/generic/20131114/alert/\nroute:\n receiver: default\n group_by:\n - alertname\n routes:\n - receiver: by-cluster-service\n group_by:\n - alertname\n - cluster\n - service\n match_re:\n alertname:\n regexp: {}\n continue: true\n - receiver: by-name\n group_by:\n - alertname\n match_re:\n alertname:\n regexp: {}\n continue: true\n group_wait: 15s\n group_interval: 35s\n repeat_interval: 999h\ninhibit_rules:\n- source_match:\n severity: critical\n source_match_re: {}\n target_match:\n severity: warning\n target_match_re: {}\n equal:\n - alertname\n - cluster\n - service\nreceivers:\n- name: default\n- name: by-cluster-service\n- name: by-name\ntemplates: []\n", "meshStatus": { "name": "02:42:ac:11:00:02", - "nickName": "691db5575b96", + "nickName": "defde95ab66b", "peers": [ { "name": "02:42:ac:11:00:02", - "nickName": "691db5575b96", - "uid": 1585737875098624546 + "nickName": "defde95ab66b", + "uid": 1904987398913295829 } ] }, - "uptime": "2017-06-08T23:50:25.517940881Z", + "uptime": "2017-06-21T19:59:06.58791745Z", "versionInfo": { "branch": "master", "buildDate": "20170608-12:34:07", diff --git a/mock/0.7.1/api/v1/alerts/groups b/mock/0.7.1/api/v1/alerts/groups index 107625dc9..b4eb7b776 100644 --- a/mock/0.7.1/api/v1/alerts/groups +++ b/mock/0.7.1/api/v1/alerts/groups @@ -17,7 +17,7 @@ "instance": "server5", "job": "node_exporter" }, - "startsAt": "2017-06-10T02:51:26.345424763Z", + "startsAt": "2017-06-21T20:00:30.104861185Z", "status": { "inhibitedBy": [], "silencedBy": [], @@ -59,11 +59,11 @@ "instance": "web1", "job": "node_exporter" }, - "startsAt": "2017-06-10T02:51:26.345424763Z", + "startsAt": "2017-06-21T20:00:30.104861185Z", "status": { "inhibitedBy": null, "silencedBy": [ - "3282f366-8362-4a0f-b7cb-1c4966dec0da" + "0804764c-6163-4c64-b0a9-08feebe2db4b" ], "state": "suppressed" } @@ -80,7 +80,7 @@ "instance": "web2", "job": "node_exporter" }, - "startsAt": "2017-06-10T02:51:26.345424763Z", + "startsAt": "2017-06-21T20:00:30.104861185Z", "status": { "inhibitedBy": [], "silencedBy": [], @@ -108,69 +108,6 @@ "blocks": [ { "alerts": [ - { - "annotations": { - "summary": "Example summary" - }, - "endsAt": "0001-01-01T00:00:00Z", - "generatorURL": "localhost/prometheus", - "labels": { - "alertname": "Host_Down", - "cluster": "dev", - "instance": "server6", - "job": "node_ping" - }, - "startsAt": "2017-06-10T02:51:26.345424763Z", - "status": { - "inhibitedBy": null, - "silencedBy": [ - "d6984a93-a222-4dd9-8379-428b6db7e353" - ], - "state": "suppressed" - } - }, - { - "annotations": { - "summary": "Example summary" - }, - "endsAt": "0001-01-01T00:00:00Z", - "generatorURL": "localhost/prometheus", - "labels": { - "alertname": "Host_Down", - "cluster": "dev", - "instance": "server7", - "job": "node_ping" - }, - "startsAt": "2017-06-10T02:51:26.345424763Z", - "status": { - "inhibitedBy": null, - "silencedBy": [ - "d6984a93-a222-4dd9-8379-428b6db7e353" - ], - "state": "suppressed" - } - }, - { - "annotations": { - "summary": "Example summary" - }, - "endsAt": "0001-01-01T00:00:00Z", - "generatorURL": "localhost/prometheus", - "labels": { - "alertname": "Host_Down", - "cluster": "dev", - "instance": "server8", - "job": "node_ping" - }, - "startsAt": "2017-06-10T02:51:26.345424763Z", - "status": { - "inhibitedBy": null, - "silencedBy": [ - "d6984a93-a222-4dd9-8379-428b6db7e353" - ], - "state": "suppressed" - } - }, { "annotations": { "summary": "Example summary", @@ -184,7 +121,7 @@ "instance": "server1", "job": "node_ping" }, - "startsAt": "2017-06-10T02:51:26.345424763Z", + "startsAt": "2017-06-21T20:00:30.104861185Z", "status": { "inhibitedBy": [], "silencedBy": [], @@ -203,7 +140,7 @@ "instance": "server2", "job": "node_ping" }, - "startsAt": "2017-06-10T02:51:26.345424763Z", + "startsAt": "2017-06-21T20:00:30.104861185Z", "status": { "inhibitedBy": [], "silencedBy": [], @@ -222,7 +159,7 @@ "instance": "server3", "job": "node_ping" }, - "startsAt": "2017-06-10T02:51:26.345424763Z", + "startsAt": "2017-06-21T20:00:30.104861185Z", "status": { "inhibitedBy": [], "silencedBy": [], @@ -241,7 +178,7 @@ "instance": "server4", "job": "node_ping" }, - "startsAt": "2017-06-10T02:51:26.345424763Z", + "startsAt": "2017-06-21T20:00:30.104861185Z", "status": { "inhibitedBy": [], "silencedBy": [], @@ -260,12 +197,76 @@ "instance": "server5", "job": "node_ping" }, - "startsAt": "2017-06-10T02:51:26.345424763Z", + "startsAt": "2017-06-21T20:00:30.104861185Z", "status": { "inhibitedBy": [], "silencedBy": [], "state": "active" } + }, + { + "annotations": { + "summary": "Example summary" + }, + "endsAt": "0001-01-01T00:00:00Z", + "generatorURL": "localhost/prometheus", + "labels": { + "alertname": "Host_Down", + "cluster": "dev", + "instance": "server6", + "job": "node_ping" + }, + "startsAt": "2017-06-21T20:00:30.104861185Z", + "status": { + "inhibitedBy": null, + "silencedBy": [ + "168f139d-77e4-41d6-afb5-8fe2cfd0cc9d" + ], + "state": "suppressed" + } + }, + { + "annotations": { + "summary": "Example summary" + }, + "endsAt": "0001-01-01T00:00:00Z", + "generatorURL": "localhost/prometheus", + "labels": { + "alertname": "Host_Down", + "cluster": "dev", + "instance": "server7", + "job": "node_ping" + }, + "startsAt": "2017-06-21T20:00:30.104861185Z", + "status": { + "inhibitedBy": null, + "silencedBy": [ + "168f139d-77e4-41d6-afb5-8fe2cfd0cc9d", + "378eaa69-097d-41c4-a8c2-fe6568c3abfc" + ], + "state": "suppressed" + } + }, + { + "annotations": { + "summary": "Example summary" + }, + "endsAt": "0001-01-01T00:00:00Z", + "generatorURL": "localhost/prometheus", + "labels": { + "alertname": "Host_Down", + "cluster": "dev", + "instance": "server8", + "job": "node_ping" + }, + "startsAt": "2017-06-21T20:00:30.104861185Z", + "status": { + "inhibitedBy": null, + "silencedBy": [ + "168f139d-77e4-41d6-afb5-8fe2cfd0cc9d" + ], + "state": "suppressed" + } } ], "routeOpts": { @@ -301,7 +302,7 @@ "instance": "server2", "job": "node_exporter" }, - "startsAt": "2017-06-10T02:51:26.345424763Z", + "startsAt": "2017-06-21T20:00:30.104861185Z", "status": { "inhibitedBy": [], "silencedBy": [], @@ -342,7 +343,7 @@ "instance": "server5", "job": "node_exporter" }, - "startsAt": "2017-06-10T02:51:26.345424763Z", + "startsAt": "2017-06-21T20:00:30.104861185Z", "status": { "inhibitedBy": [], "silencedBy": [], @@ -352,9 +353,9 @@ ], "routeOpts": { "groupBy": [ - "alertname", "cluster", - "service" + "service", + "alertname" ], "groupInterval": 35000000000, "groupWait": 15000000000, @@ -387,11 +388,11 @@ "instance": "web1", "job": "node_exporter" }, - "startsAt": "2017-06-10T02:51:26.345424763Z", + "startsAt": "2017-06-21T20:00:30.104861185Z", "status": { "inhibitedBy": null, "silencedBy": [ - "3282f366-8362-4a0f-b7cb-1c4966dec0da" + "0804764c-6163-4c64-b0a9-08feebe2db4b" ], "state": "suppressed" } @@ -408,7 +409,7 @@ "instance": "web2", "job": "node_exporter" }, - "startsAt": "2017-06-10T02:51:26.345424763Z", + "startsAt": "2017-06-21T20:00:30.104861185Z", "status": { "inhibitedBy": [], "silencedBy": [], @@ -418,9 +419,9 @@ ], "routeOpts": { "groupBy": [ - "alertname", "cluster", - "service" + "service", + "alertname" ], "groupInterval": 35000000000, "groupWait": 15000000000, @@ -451,11 +452,12 @@ "instance": "server7", "job": "node_ping" }, - "startsAt": "2017-06-10T02:51:26.345424763Z", + "startsAt": "2017-06-21T20:00:30.104861185Z", "status": { "inhibitedBy": null, "silencedBy": [ - "d6984a93-a222-4dd9-8379-428b6db7e353" + "168f139d-77e4-41d6-afb5-8fe2cfd0cc9d", + "378eaa69-097d-41c4-a8c2-fe6568c3abfc" ], "state": "suppressed" } @@ -472,11 +474,11 @@ "instance": "server8", "job": "node_ping" }, - "startsAt": "2017-06-10T02:51:26.345424763Z", + "startsAt": "2017-06-21T20:00:30.104861185Z", "status": { "inhibitedBy": null, "silencedBy": [ - "d6984a93-a222-4dd9-8379-428b6db7e353" + "168f139d-77e4-41d6-afb5-8fe2cfd0cc9d" ], "state": "suppressed" } @@ -493,11 +495,11 @@ "instance": "server6", "job": "node_ping" }, - "startsAt": "2017-06-10T02:51:26.345424763Z", + "startsAt": "2017-06-21T20:00:30.104861185Z", "status": { "inhibitedBy": null, "silencedBy": [ - "d6984a93-a222-4dd9-8379-428b6db7e353" + "168f139d-77e4-41d6-afb5-8fe2cfd0cc9d" ], "state": "suppressed" } @@ -505,9 +507,9 @@ ], "routeOpts": { "groupBy": [ - "alertname", "cluster", - "service" + "service", + "alertname" ], "groupInterval": 35000000000, "groupWait": 15000000000, @@ -539,7 +541,7 @@ "instance": "server1", "job": "node_ping" }, - "startsAt": "2017-06-10T02:51:26.345424763Z", + "startsAt": "2017-06-21T20:00:30.104861185Z", "status": { "inhibitedBy": [], "silencedBy": [], @@ -558,7 +560,7 @@ "instance": "server2", "job": "node_ping" }, - "startsAt": "2017-06-10T02:51:26.345424763Z", + "startsAt": "2017-06-21T20:00:30.104861185Z", "status": { "inhibitedBy": [], "silencedBy": [], @@ -601,7 +603,7 @@ "instance": "server3", "job": "node_ping" }, - "startsAt": "2017-06-10T02:51:26.345424763Z", + "startsAt": "2017-06-21T20:00:30.104861185Z", "status": { "inhibitedBy": [], "silencedBy": [], @@ -620,7 +622,7 @@ "instance": "server4", "job": "node_ping" }, - "startsAt": "2017-06-10T02:51:26.345424763Z", + "startsAt": "2017-06-21T20:00:30.104861185Z", "status": { "inhibitedBy": [], "silencedBy": [], @@ -639,7 +641,7 @@ "instance": "server5", "job": "node_ping" }, - "startsAt": "2017-06-10T02:51:26.345424763Z", + "startsAt": "2017-06-21T20:00:30.104861185Z", "status": { "inhibitedBy": [], "silencedBy": [], @@ -683,7 +685,7 @@ "instance": "server2", "job": "node_exporter" }, - "startsAt": "2017-06-10T02:51:26.345424763Z", + "startsAt": "2017-06-21T20:00:30.104861185Z", "status": { "inhibitedBy": [], "silencedBy": [], @@ -693,9 +695,9 @@ ], "routeOpts": { "groupBy": [ - "alertname", "cluster", - "service" + "service", + "alertname" ], "groupInterval": 35000000000, "groupWait": 15000000000, diff --git a/mock/0.7.1/api/v1/silences b/mock/0.7.1/api/v1/silences index 55e8c3f75..eb94ed15d 100644 --- a/mock/0.7.1/api/v1/silences +++ b/mock/0.7.1/api/v1/silences @@ -1,10 +1,28 @@ { "data": [ + { + "comment": "Silenced server7", + "createdBy": "john@example.com", + "endsAt": "2063-01-01T00:00:00Z", + "id": "378eaa69-097d-41c4-a8c2-fe6568c3abfc", + "matchers": [ + { + "isRegex": false, + "name": "instance", + "value": "server7" + } + ], + "startsAt": "2017-06-21T20:00:30.102974561Z", + "status": { + "state": "active" + }, + "updatedAt": "2017-06-21T20:00:30.102978028Z" + }, { "comment": "Silenced instance", "createdBy": "john@example.com", "endsAt": "2063-01-01T00:00:00Z", - "id": "3282f366-8362-4a0f-b7cb-1c4966dec0da", + "id": "0804764c-6163-4c64-b0a9-08feebe2db4b", "matchers": [ { "isRegex": false, @@ -12,17 +30,17 @@ "value": "web1" } ], - "startsAt": "2017-06-10T02:51:26.336857241Z", + "startsAt": "2017-06-21T20:00:30.099033238Z", "status": { "state": "active" }, - "updatedAt": "2017-06-10T02:51:26.336887639Z" + "updatedAt": "2017-06-21T20:00:30.099037947Z" }, { "comment": "Silenced Host_Down alerts in the dev cluster", "createdBy": "john@example.com", "endsAt": "2063-01-01T00:00:00Z", - "id": "d6984a93-a222-4dd9-8379-428b6db7e353", + "id": "168f139d-77e4-41d6-afb5-8fe2cfd0cc9d", "matchers": [ { "isRegex": false, @@ -35,11 +53,11 @@ "value": "dev" } ], - "startsAt": "2017-06-10T02:51:26.342675638Z", + "startsAt": "2017-06-21T20:00:30.101324168Z", "status": { "state": "active" }, - "updatedAt": "2017-06-10T02:51:26.342684914Z" + "updatedAt": "2017-06-21T20:00:30.101327768Z" } ], "status": "success" diff --git a/mock/0.7.1/api/v1/status b/mock/0.7.1/api/v1/status index 90802e116..7f30841ae 100644 --- a/mock/0.7.1/api/v1/status +++ b/mock/0.7.1/api/v1/status @@ -83,16 +83,16 @@ "configYAML": "global:\n resolve_timeout: 5m\n smtp_from: \"\"\n smtp_smarthost: \"\"\n smtp_auth_username: \"\"\n smtp_auth_password: null\n smtp_auth_secret: null\n smtp_auth_identity: \"\"\n smtp_require_tls: true\n slack_api_url: null\n pagerduty_url: https://events.pagerduty.com/generic/2010-04-15/create_event.json\n hipchat_url: https://api.hipchat.com/\n hipchat_auth_token: null\n opsgenie_api_host: https://api.opsgenie.com/\n victorops_api_url: https://alert.victorops.com/integrations/generic/20131114/alert/\nroute:\n receiver: default\n group_by:\n - alertname\n routes:\n - receiver: by-cluster-service\n group_by:\n - alertname\n - cluster\n - service\n match_re:\n alertname:\n regexp: {}\n continue: true\n - receiver: by-name\n group_by:\n - alertname\n match_re:\n alertname:\n regexp: {}\n continue: true\n group_wait: 15s\n group_interval: 35s\n repeat_interval: 999h\ninhibit_rules:\n- source_match:\n severity: critical\n source_match_re: {}\n target_match:\n severity: warning\n target_match_re: {}\n equal:\n - alertname\n - cluster\n - service\nreceivers:\n- name: default\n- name: by-cluster-service\n- name: by-name\ntemplates: []\n", "meshStatus": { "name": "02:42:ac:11:00:02", - "nickName": "8ef6b4f3186d", + "nickName": "604ff4d14f78", "peers": [ { "name": "02:42:ac:11:00:02", - "nickName": "8ef6b4f3186d", - "uid": 12482875263642160869 + "nickName": "604ff4d14f78", + "uid": 356874118448200805 } ] }, - "uptime": "2017-06-10T02:51:11.2129301Z", + "uptime": "2017-06-21T20:00:15.251363956Z", "versionInfo": { "branch": "master", "buildDate": "20170609-15:31:09",