From 178b84c53c8205db7a4c09f0ecd791c33d452c9c Mon Sep 17 00:00:00 2001 From: Tom Gallacher Date: Thu, 26 Jan 2017 12:35:49 +0000 Subject: [PATCH] Correcting sensors path --- cloudapi-graphql/etc/containerpilot.json | 21 ++++++++++++++++++++- frontend/etc/containerpilot.json | 4 ++-- ui/etc/containerpilot.json | 4 ++-- 3 files changed, 24 insertions(+), 5 deletions(-) diff --git a/cloudapi-graphql/etc/containerpilot.json b/cloudapi-graphql/etc/containerpilot.json index b1882eac..494556e9 100644 --- a/cloudapi-graphql/etc/containerpilot.json +++ b/cloudapi-graphql/etc/containerpilot.json @@ -10,5 +10,24 @@ } ], "backends": [ - ] + ], + "telemetry": { + "port": 9090, + "sensors": [ + { + "name": "graphql_memory_percent", + "help": "percentage of memory used", + "type": "gauge", + "poll": 5, + "check": ["/bin/sensors", "memory"] + }, + { + "name": "graphql_cpu_load", + "help": "cpu load", + "type": "gauge", + "poll": 5, + "check": ["/bin/sensors", "cpu"] + } + ] + } } diff --git a/frontend/etc/containerpilot.json b/frontend/etc/containerpilot.json index dc86246b..e27b33ce 100644 --- a/frontend/etc/containerpilot.json +++ b/frontend/etc/containerpilot.json @@ -19,14 +19,14 @@ "help": "percentage of memory used", "type": "gauge", "poll": 5, - "check": ["/bin/sensor", "memory"] + "check": ["/bin/sensors", "memory"] }, { "name": "frontend_cpu_load", "help": "cpu load", "type": "gauge", "poll": 5, - "check": ["/bin/sensor", "cpu"] + "check": ["/bin/sensors", "cpu"] } ] } diff --git a/ui/etc/containerpilot.json b/ui/etc/containerpilot.json index 299ed9fc..cfd9b53f 100644 --- a/ui/etc/containerpilot.json +++ b/ui/etc/containerpilot.json @@ -19,14 +19,14 @@ "help": "percentage of memory used", "type": "gauge", "poll": 5, - "check": ["/bin/sensor", "memory"] + "check": ["/bin/sensors", "memory"] }, { "name": "ui_cpu_load", "help": "cpu load", "type": "gauge", "poll": 5, - "check": ["/bin/sensor", "cpu"] + "check": ["/bin/sensors", "cpu"] } ] }