kcp-dev / contrib-tmc

An experimental add-on readding some Kubernetes compute APIs and impement transparent multi-cluster scheduling
Apache License 2.0
5 stars 3 forks source link

Custom Metrics Support for Syncer #123

Open tpouyer opened 2 years ago

tpouyer commented 2 years ago

Is your feature request related to a problem? Please describe. As an administrator of clusters "connected" to KCP I want to monitor the health and performance of the syncer running on my physical clusters.

Describe the solution you'd like Cluster administrators already have tools and utilities to monitor cluster metrics such as pod restarts, memory, CPU utilization, etc... however many workloads support exporting their own custom metrics that can be gathered by these same administration monitoring tools. It would be good for the syncer (as it can be considered just another workload on a physical cluster) to export metrics that are specific to it's health. This is not an exhaustive list but some metrics that come to mind:

Describe alternatives you've considered Currently monitoring CPU/Memory consumption of syncer on physical clusters syncer-cpu-memory-monitoring

Additional context

skonto commented 2 years ago

I could take a look on this one if scheduled. Some steps required: a) define the metrics in a proper format eg. labels, value type etc, following some standard eg. OpenTelemetry. b) deal with string metrics (not directly supported in some backend systems) eg. version, could be just labels. c) use a proper client library to expose the metrics on a port. eg openetelemetry-go.

mjudeikis commented 11 months ago

/transfer-issue contrib-tmc