Skip to content
This repository was archived by the owner on Sep 30, 2024. It is now read-only.

Conversation

@willdollman
Copy link
Contributor

Fixes the cadvisor entry point, which was being split onto new lines, meaning we were dropping some metrics like memory as reported by @michaellzc.

As part of the testing I tried just downloading the binary from github, rather than building it from scratch. That didn't turn out to the final solution so that's an OPTIONAL leave in, but to me seems like an easier approach than compiling ourselves.

With a rebuild of the base image we're also now running cadvisor 0.47.3

Old (working):

            "Entrypoint": [
                ....
                "-enable_metrics=cpu,diskIO,memory,network",
                ....
            ],

New (broken):

 "Entrypoint": [
                "/usr/bin/cadvisor",
                ....
                "-enable_metrics=cpu",
                "diskIO",
                "memory",
                "network",
                ....

Tested on scaletesting.sgdev.org

image

vs sourcegraph.com

image

(cherry picked from commit 0544394)

Test plan

Fixes the cadvisor entry point, which was being split onto new lines,
meaning we were dropping some metrics like memory as reported by
@michaellzc.

As part of the testing I tried just downloading the binary from github,
rather than building it from scratch. That didn't turn out to the final
solution so that's an OPTIONAL leave in, but to me seems like an easier
approach than compiling ourselves.

With a rebuild of the base image we're also now running cadvisor 0.47.3

Old (working):
```
            "Entrypoint": [
                ....
                "-enable_metrics=cpu,diskIO,memory,network",
                ....
            ],
```

New (broken):
```
 "Entrypoint": [
                "/usr/bin/cadvisor",
                ....
                "-enable_metrics=cpu",
                "diskIO",
                "memory",
                "network",
                ....
```

Tested on scaletesting.sgdev.org

<img width="1121" alt="image"
src="https://github.com/sourcegraph/sourcegraph/assets/2067825/bedfbe7e-b83c-4a09-8527-5143412cb533">

vs sourcegraph.com

<img width="692" alt="image"
src="https://github.com/sourcegraph/sourcegraph/assets/2067825/0b221909-8c80-4665-9e28-59ba6e6a4722">

(cherry picked from commit 0544394)
@sourcegraph-bot
Copy link
Contributor

Codenotify: Notifying subscribers in CODENOTIFY files for diff cd1cc2d...85e1d85.

Notify File(s)
@bobheadxi docker-images/cadvisor/BUILD.bazel
docker-images/cadvisor/entrypoint.sh

@sourcegraph-bot
Copy link
Contributor

📖 Storybook live preview

@camdencheek camdencheek merged commit 55ca3f7 into 5.1 Jul 12, 2023
@camdencheek camdencheek deleted the backport-54809-to-5.1 branch July 12, 2023 18:38
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants