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"] } ] }