13 Commits
Author SHA1 Message Date
Nayana BidariandgVisor bot d05a277ca3 Add checkpoint restore metrics.
- SandboxCheckpointedMetric and SandboxRestoredMetric are added for sandbox
metadata metric which indicate whether sandbox is checkpointed or restored.
- NumCheckpointedSandboxesMetric and NumRestoredSandboxesMetric are added at
the process level which will get the count of number of sandboxes being
checkpointed and restored.

PiperOrigin-RevId: 726797010
2025-02-14 00:00:09 -08:00
Koichi Shiraishi 0cf77c02f8 all: remove use io/ioutil deprecated package & fix some deprecated thing
Signed-off-by: Koichi Shiraishi <zchee.io@gmail.com>
2024-10-10 20:36:24 +09:00
Etienne PerotandgVisor bot 75c9597d8e Add nvproxy and tpuproxy annotation metrics for GKE Sandbox pods.
PiperOrigin-RevId: 644530875
2024-06-18 15:34:57 -07:00
Etienne PerotandgVisor bot 54ea3e170e Make runsc metric-server root directory check log message less scary.
This condition is expected on nodes where the root directory doesn't exist at
the time the `runsc metric-server` starts, and the presence of the
`--allow-unknown-root` flag means the user expects that this directory
doesn't exist. Therefore, it is not a warning and should not sound like one.

PiperOrigin-RevId: 633764146
2024-05-14 18:07:57 -07:00
Etienne PerotandgVisor bot 640a42e63c prometheus: Remove interface indirection, and output strings not bytes.
This is part of a series of changes to add metric charts in performance
benchmarks.

This change is meant to do three things:

- Remove the interface indirection from the Prometheus library, which is
  performance-critical due to its use in writing out profiling metrics
  (although the runsc metric server also benefits from this too).
- Use a `StringWriter`-like writer contract, to avoid needless casting
  between strings and bytes within the Prometheus library. The library only
  ever needs to deal with strings, so it is up to callers to do the
  conversion to bytes if they need to (which the runsc metric-server does).
- Avoid buffer allocations in the metric server when each snapshot is larger
  than the buffer size. Instead, buffers are saved and reused.

PiperOrigin-RevId: 630500004
2024-05-03 14:36:10 -07:00
Ayush RanjanandgVisor bot f62a4a77d5 Update go branch to Go 1.21.
Starting with Go 1.21, build tags select the language version. We currently
have several `go:build go1.1` tags, which were intended to act as "true" tags.
But that will break with 1.21. So replace them with "!false".

Fixes #9568.

PiperOrigin-RevId: 576020779
2023-10-23 22:09:47 -07:00
Etienne PerotandgVisor bot 181360c23e Refactor: Move container metric metadata helpers into their own package.
PiperOrigin-RevId: 557298185
2023-08-15 17:15:07 -07:00
Etienne PerotandgVisor bot a8a613a0c5 Internal change (diffbased).
PiperOrigin-RevId: 539815267
2023-06-12 18:19:13 -07:00
Etienne PerotandgVisor bot 8cc1d5bbde Internal change (diffbased)
PiperOrigin-RevId: 539230767
2023-06-09 19:33:12 -07:00
Etienne PerotandgVisor bot 7328991bba Add a unit test for metricserver.sufficientlyEqualStats.
PiperOrigin-RevId: 539219346
2023-06-09 17:56:43 -07:00
Etienne PerotandgVisor bot 529952fd36 runsc metric-server: Separate sandbox querying from aggregation logic.
PiperOrigin-RevId: 539207390
2023-06-09 16:43:16 -07:00
Etienne PerotandgVisor bot 457c1c36d2 Split metricserver.go into multiple files.
PiperOrigin-RevId: 538932080
2023-06-08 17:21:04 -07:00
Etienne PerotandgVisor bot f105ee555d gVisor metrics: Move the metric server to its own package.
PiperOrigin-RevId: 533254583
2023-05-18 14:40:01 -07:00