Metric collector v2#286
Conversation
Co-authored-by: Norman Böwing <9320860+norman465@users.noreply.github.com>
Co-authored-by: Norman Böwing <9320860+norman465@users.noreply.github.com>
|
|
||
| 1. The metrics collector exposes Prometheus metrics on `localhost:9100/metrics` | ||
| 2. The embedded Prometheus agent scrapes these metrics every 30 seconds | ||
| 3. The agent also discovers and scrapes pods with the `codeengine.cloud.ibm.com/userMetricsScrape: 'true'` annotation |
There was a problem hiding this comment.
I think the agent would discover those pods and scrape additional custom metrics. Default CPU/Memory metrics would be collected for all workload irrespective of that label, right?
There was a problem hiding this comment.
I am not quite getting your question. Would you mind to elaborate a bit?
There was a problem hiding this comment.
I'm missing the information here that the metrics collector automatically scrapes general metrics for apps, jobs etc. in addition to the aforementioned scraping of custom metrics by annotation. Or does every pod that the user wants to have metrics for need to be annotated?
There was a problem hiding this comment.
Ah thanks for the feedback. I re-read it and I agree it is not clear at all what the metrics collector does do
Co-authored-by: Norman Böwing <9320860+norman465@users.noreply.github.com>
…ard-manager.sh Co-authored-by: Norman Böwing <9320860+norman465@users.noreply.github.com>
…metric-collector-v2
This PR enables resource metric integration within Code Engine by running a metrics-collector that emits CPU, and memory usage metrics to IBM Cloud Logs.
Furthermore, this PR contains a dashboard that can be imported into IBM Cloud Monitoring:

On top, this PR demonstrates a away on how Code Engine jobs and apps can emit custom metrics, which are sent to Sysdig
See Readme for further details: https://github.com/IBM/CodeEngine/blob/metric-collector-v2/metrics-collector/README.md
To demonstrate custom metric collection, this PR provides an enrichment of the network-test-app (see readme https://github.com/IBM/CodeEngine/blob/metric-collector-v2/network-test-app/README.md)
