From 8f6e4d5f3229c5f8b0e84f39009068090f1a30b5 Mon Sep 17 00:00:00 2001 From: Tom Gallacher Date: Thu, 26 Jan 2017 14:41:41 +0000 Subject: [PATCH] Add new telemetry for application --- cloudapi-graphql/Dockerfile | 2 +- cloudapi-graphql/etc/containerpilot.json | 14 ++++++++++++++ frontend/Dockerfile | 2 +- frontend/etc/containerpilot.json | 14 ++++++++++++++ local-compose.yml | 2 +- ui/Dockerfile | 2 +- ui/etc/containerpilot.json | 14 ++++++++++++++ 7 files changed, 46 insertions(+), 4 deletions(-) diff --git a/cloudapi-graphql/Dockerfile b/cloudapi-graphql/Dockerfile index 63a65e64..7b02444a 100644 --- a/cloudapi-graphql/Dockerfile +++ b/cloudapi-graphql/Dockerfile @@ -1 +1 @@ -FROM quay.io/yldio/alpine-node-containerpilot:6.9.4 +FROM quay.io/yldio/alpine-node-containerpilot:6.9.4-2 diff --git a/cloudapi-graphql/etc/containerpilot.json b/cloudapi-graphql/etc/containerpilot.json index 494556e9..4ee6bdfa 100644 --- a/cloudapi-graphql/etc/containerpilot.json +++ b/cloudapi-graphql/etc/containerpilot.json @@ -27,6 +27,20 @@ "type": "gauge", "poll": 5, "check": ["/bin/sensors", "cpu"] + }, + { + "name": "graphql_disk_capacity", + "help": "disk capacity", + "type": "gauge", + "poll": 60, + "check": ["/bin/sensors", "diskcapacity"] + }, + { + "name": "graphql_disk_usage", + "help": "disk usage", + "type": "gauge", + "poll": 60, + "check": ["/bin/sensors", "diskusage"] } ] } diff --git a/frontend/Dockerfile b/frontend/Dockerfile index 63a65e64..7b02444a 100644 --- a/frontend/Dockerfile +++ b/frontend/Dockerfile @@ -1 +1 @@ -FROM quay.io/yldio/alpine-node-containerpilot:6.9.4 +FROM quay.io/yldio/alpine-node-containerpilot:6.9.4-2 diff --git a/frontend/etc/containerpilot.json b/frontend/etc/containerpilot.json index e27b33ce..a82ba53a 100644 --- a/frontend/etc/containerpilot.json +++ b/frontend/etc/containerpilot.json @@ -27,6 +27,20 @@ "type": "gauge", "poll": 5, "check": ["/bin/sensors", "cpu"] + }, + { + "name": "frontend_disk_capacity", + "help": "disk capacity", + "type": "gauge", + "poll": 60, + "check": ["/bin/sensors", "diskcapacity"] + }, + { + "name": "frontend_disk_usage", + "help": "disk usage", + "type": "gauge", + "poll": 60, + "check": ["/bin/sensors", "diskusage"] } ] } diff --git a/local-compose.yml b/local-compose.yml index 8a2134e7..0b7d0c1c 100644 --- a/local-compose.yml +++ b/local-compose.yml @@ -48,7 +48,7 @@ nginx: links: - consul:consul ports: - - 80:8001 + - 8001:80 prometheus: extends: file: docker-compose.yml diff --git a/ui/Dockerfile b/ui/Dockerfile index 63a65e64..7b02444a 100644 --- a/ui/Dockerfile +++ b/ui/Dockerfile @@ -1 +1 @@ -FROM quay.io/yldio/alpine-node-containerpilot:6.9.4 +FROM quay.io/yldio/alpine-node-containerpilot:6.9.4-2 diff --git a/ui/etc/containerpilot.json b/ui/etc/containerpilot.json index cfd9b53f..c832cf3b 100644 --- a/ui/etc/containerpilot.json +++ b/ui/etc/containerpilot.json @@ -27,6 +27,20 @@ "type": "gauge", "poll": 5, "check": ["/bin/sensors", "cpu"] + }, + { + "name": "ui_disk_capacity", + "help": "disk capacity", + "type": "gauge", + "poll": 60, + "check": ["/bin/sensors", "diskcapacity"] + }, + { + "name": "ui_disk_usage", + "help": "disk usage", + "type": "gauge", + "poll": 60, + "check": ["/bin/sensors", "diskusage"] } ] }