summaryrefslogtreecommitdiffstats
path: root/src/go/collectors/go.d.plugin/modules/nginxplus/testdata/api-8/http_upstreams.json
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/go/collectors/go.d.plugin/modules/nginxplus/testdata/api-8/http_upstreams.json76
1 files changed, 76 insertions, 0 deletions
diff --git a/src/go/collectors/go.d.plugin/modules/nginxplus/testdata/api-8/http_upstreams.json b/src/go/collectors/go.d.plugin/modules/nginxplus/testdata/api-8/http_upstreams.json
new file mode 100644
index 000000000..0f7ba7135
--- /dev/null
+++ b/src/go/collectors/go.d.plugin/modules/nginxplus/testdata/api-8/http_upstreams.json
@@ -0,0 +1,76 @@
+{
+ "backend": {
+ "peers": [
+ {
+ "id": 0,
+ "server": "127.0.0.1:81",
+ "name": "127.0.0.1:81",
+ "backup": false,
+ "weight": 5,
+ "state": "unavail",
+ "active": 0,
+ "requests": 26,
+ "header_time": 0,
+ "response_time": 0,
+ "responses": {
+ "1xx": 0,
+ "2xx": 0,
+ "3xx": 0,
+ "4xx": 0,
+ "5xx": 0,
+ "codes": {},
+ "total": 0
+ },
+ "sent": 0,
+ "received": 0,
+ "fails": 26,
+ "unavail": 1,
+ "health_checks": {
+ "checks": 0,
+ "fails": 0,
+ "unhealthy": 0
+ },
+ "downtime": 1020702,
+ "downstart": "2022-11-18T19:17:09.258Z",
+ "selected": "2022-11-18T19:33:50Z"
+ },
+ {
+ "id": 1,
+ "server": "127.0.0.1:82",
+ "name": "127.0.0.1:82",
+ "backup": false,
+ "weight": 1,
+ "state": "up",
+ "active": 0,
+ "requests": 102,
+ "header_time": 1,
+ "response_time": 1,
+ "responses": {
+ "1xx": 0,
+ "2xx": 102,
+ "3xx": 0,
+ "4xx": 0,
+ "5xx": 0,
+ "codes": {
+ "200": 102
+ },
+ "total": 102
+ },
+ "sent": 9180,
+ "received": 86496,
+ "fails": 0,
+ "unavail": 0,
+ "health_checks": {
+ "checks": 0,
+ "fails": 0,
+ "unhealthy": 0
+ },
+ "downtime": 0,
+ "selected": "2022-11-18T19:34:00Z"
+ }
+ ],
+ "keepalive": 0,
+ "zombies": 0,
+ "zone": "http_backend"
+ }
+}