commit | dea7cd0e3d0aeee571f25209d76b52cc495a389f | [log] [tgz] |
---|---|---|
author | Serge Bazanski <serge@monogon.tech> | Wed Apr 26 13:58:17 2023 +0200 |
committer | Serge Bazanski <serge@monogon.tech> | Thu Apr 27 12:34:43 2023 +0000 |
tree | 9aa755c3488f2db6f15327a3f0feef7147a434a3 | |
parent | c50f69427b1bb1816fa1ae8ecbdd1f00651f1e7f [diff] |
cloud/shepherd: add equinix API metrics This adds the following signals to our interaction with the Equinix API: 1. Latency 2. Traffic 3. Errors 4. Saturation Change-Id: Ic2d5e36a7a26ab906ac1c2fa6741ebf86b9e551a Reviewed-on: https://review.monogon.dev/c/monogon/+/1606 Tested-by: Jenkins CI Reviewed-by: Tim Windelschmidt <tim@monogon.tech>
diff --git a/cloud/shepherd/equinix/manager/server/main.go b/cloud/shepherd/equinix/manager/server/main.go index 21e7e5a..984d96f 100644 --- a/cloud/shepherd/equinix/manager/server/main.go +++ b/cloud/shepherd/equinix/manager/server/main.go
@@ -68,6 +68,7 @@ if c.API.APIKey == "" || c.API.User == "" { klog.Exitf("-equinix_api_username and -equinix_api_key must be set") } + c.API.MetricsRegistry = registry api := wrapngo.New(&c.API) // These variables are _very_ important to configure correctly, otherwise someone