How to gather deployment metrics/statistics

Cluster information:

Kubernetes version: 1.22
Cloud being used: GKE

You can format your yaml by highlighting it and pressing Ctrl-Shift-C, it will make your output easier to read.

We currently use a home grown tool that’s a wrapper around kubectl to deploy our workloads on Google’s GKE. Is there a way to be able to gather some metrics/statistics from the deployments? Currently looking to get some or all of these:

Deployment Frequency

  • Cycle Time
  • Mean time to restore
  • Change/Fail rate
  • Production SLA
    • Uptime
    • Performance