You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When `METRICS_ENABLED=true`, the metrics collector runs an embedded Prometheus agent that scrapes metrics from the local `/metrics` endpoint and forwards them to IBM Cloud Monitoring.
**Note**: The HTTP server is only started when `METRICS_ENABLED=true` and running in daemon mode (`JOB_MODE != "task"`). In task mode, metrics are collected once and logged to stdout without starting the HTTP server. When `METRICS_ENABLED` is not set to `true`, the collector runs in daemon mode but only logs metrics to stdout without exposing the HTTP endpoint.
154
-
155
161
## IBM Cloud Logs setup
156
162
157
163
Once your IBM Cloud Code Engine project has detected a corresponding IBM Cloud Logs instance, which is configured to receive platform logs, you can consume the resource metrics in IBM Cloud Logs. Use the filter `metric:instance-resources` to filter for log lines that print resource metrics for each detected IBM Cloud Code Engine instance that is running in a project.
@@ -214,8 +220,6 @@ app:"codeengine" AND message.metric:"instance-resources"
214
220
215
221
* In the top-right corner, select `1-line` as view mode
216
222
217
-

218
-
219
223
* In the graph title it says "**Count** all grouped by **Severity**". Click on `Severity` and select `message.component_name` instead. Furthermore, select `Max` as aggregation metric and choose `message.memory.usage` as aggregation field
220
224
221
225

@@ -228,36 +232,3 @@ app:"codeengine" AND message.metric:"instance-resources"
1. The usage graph above renders the utilization in % of the CPU and Memory
248
-
249
-
#### Add CPU utilization
250
-
1. Duplicate the graph, change its name to CPU and replace its plots with `cpu.configured` and `cpu.current`.
251
-
- The resulting graph will render the actual CPU usage compared to the configured limit. The the unit is milli vCPUs (1000 -> 1 vCPU).
252
-

253
-
254
-
#### Add memory utilization
255
-
1. Duplicate the graph, change its name to Memory and replace its plots with `memory.configured` and `memory.current`.
256
-
1. The resulting graph will render the actual memory usage compared to the configured limit. The the unit is MB (1000 -> 1 GB).
257
-

258
-
259
-
#### Add disk utilization
260
-
1. Duplicate the graph or create a new one, change its name to "Disk usage" and replace its plots with `disk_usage.current`.
261
-
1. The resulting graph will render the actual disk usage. While this does not allow to identify the usage of disk space compared with the configured ephemeral storage limit, this graph gives an impression on whether the disk usage is growing over time. The the unit is MB (1000 -> 1 GB).
0 commit comments