Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: collect cluster metrics to OpenSearch #2347

Merged
merged 14 commits into from
Sep 27, 2023

Conversation

msanft
Copy link
Contributor

@msanft msanft commented Sep 19, 2023

Context

Previously, no metrics were collected in our E2E tests. This hinders us to track regressions in Constellation as well as debugging problems, such as the recent etcd timeouts.

Proposed change(s)

  • Deploy Metricbeat and make it available both as part of our debugd-logcollection deployment as well as the K8s deployment that is deployed to the clusters in our E2E tests.
  • TODO: Discuss which modules make sense in which collection periods

Additional info

Checklist

  • Update docs
  • Add labels (e.g., for changelog category)
  • Is PR title adequate for changelog?
  • Link to Milestone

@msanft msanft added the no changelog Change won't be listed in release changelog label Sep 19, 2023
@msanft msanft added this to the v2.12.0 milestone Sep 19, 2023
@msanft msanft requested a review from katexochen September 19, 2023 14:12
@netlify
Copy link

netlify bot commented Sep 19, 2023

Deploy Preview for constellation-docs ready!

Name Link
🔨 Latest commit a967fcc
🔍 Latest deploy log https://app.netlify.com/sites/constellation-docs/deploys/65141e5ec36eac00099d9939
😎 Deploy Preview https://deploy-preview-2347--constellation-docs.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@katexochen katexochen removed their request for review September 19, 2023 14:13
@msanft msanft requested a review from derpsteb September 20, 2023 09:17
@msanft msanft marked this pull request as ready for review September 20, 2023 09:17
@msanft msanft requested review from 3u13r and malt3 as code owners September 20, 2023 09:17
@msanft msanft marked this pull request as draft September 20, 2023 11:58
@msanft msanft marked this pull request as ready for review September 25, 2023 08:54
Copy link
Contributor

@malt3 malt3 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I mostly looked at the changed made to debugd

Copy link
Member

@3u13r 3u13r left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Signed-off-by: Moritz Sanft <[email protected]>
Signed-off-by: Moritz Sanft <[email protected]>
Signed-off-by: Moritz Sanft <[email protected]>
Signed-off-by: Moritz Sanft <[email protected]>
* add missing keyvault access role

Signed-off-by: Moritz Sanft <[email protected]>

* bump logstash image version

Signed-off-by: Moritz Sanft <[email protected]>

* bump filebeat / metricbeat image version

Signed-off-by: Moritz Sanft <[email protected]>

* log used image version

Signed-off-by: Moritz Sanft <[email protected]>

* use debugging image versions

Signed-off-by: Moritz Sanft <[email protected]>

* increase wait timeout for image upload

* add cloud metadata processor to filebeat

Signed-off-by: Moritz Sanft <[email protected]>

* fix template locations in container

Signed-off-by: Moritz Sanft <[email protected]>

* fix image version typo

Signed-off-by: Moritz Sanft <[email protected]>

* add filebeat / metricbeat users

Signed-off-by: Moritz Sanft <[email protected]>

* remove user additions

Signed-off-by: Moritz Sanft <[email protected]>

* update workflow step name

Signed-off-by: Moritz Sanft <[email protected]>

* only mount config files

Signed-off-by: Moritz Sanft <[email protected]>

* document potential rc

Signed-off-by: Moritz Sanft <[email protected]>

* fix IAM permissions in workflow

Signed-off-by: Moritz Sanft <[email protected]>

* fix AWS permissions

Signed-off-by: Moritz Sanft <[email protected]>

* tidy

Signed-off-by: Moritz Sanft <[email protected]>

* add missing workflow input

Signed-off-by: Moritz Sanft <[email protected]>

* rename action

Signed-off-by: Moritz Sanft <[email protected]>

* pin image versions

Signed-off-by: Moritz Sanft <[email protected]>

* remove unnecessary workflow inputs

Signed-off-by: Moritz Sanft <[email protected]>

---------

Signed-off-by: Moritz Sanft <[email protected]>
@msanft msanft force-pushed the feat/debugd/metricbeat-deployment branch from 4b5cf09 to 67ec24b Compare September 26, 2023 13:19
Signed-off-by: Moritz Sanft <[email protected]>
Signed-off-by: Moritz Sanft <[email protected]>
Signed-off-by: Moritz Sanft <[email protected]>
Signed-off-by: Moritz Sanft <[email protected]>
@msanft msanft requested a review from thomasten as a code owner September 27, 2023 12:21
@github-actions
Copy link
Contributor

Coverage report

Package Old New Trend
debugd/filebeat [no test files] [no test files] 🚧
debugd/internal/debugd/logcollector 13.70% 12.70% ↘️
debugd/metricbeat 0.00% [no test files] 🚨
hack/logcollector/cmd [no test files] [no test files] 🚧
hack/logcollector/internal [no test files] [no test files] 🚧
internal/osimage/aws [no test files] [no test files] 🚧
internal/versions 8.20% 8.20% 🚧

@msanft msanft merged commit f4b2d02 into main Sep 27, 2023
12 checks passed
@msanft msanft deleted the feat/debugd/metricbeat-deployment branch September 27, 2023 14:17
derpsteb pushed a commit that referenced this pull request Oct 2, 2023
* add Metricbeat deployment to debugd

Signed-off-by: Moritz Sanft <[email protected]>

* set metricbeat debugd image version

Signed-off-by: Moritz Sanft <[email protected]>

* fix k8s deployment

Signed-off-by: Moritz Sanft <[email protected]>

* use 2 separate deployments

Signed-off-by: Moritz Sanft <[email protected]>

* only deploy via k8s in non-debug-images

Signed-off-by: Moritz Sanft <[email protected]>

* add missing tilde

* remove k8s metrics

Signed-off-by: Moritz Sanft <[email protected]>

* unify flag

Signed-off-by: Moritz Sanft <[email protected]>

* add cloud metadata processor to filebeat

Signed-off-by: Moritz Sanft <[email protected]>

* ci: fix debugd logcollection (#2355)

* add missing keyvault access role

Signed-off-by: Moritz Sanft <[email protected]>

* bump logstash image version

Signed-off-by: Moritz Sanft <[email protected]>

* bump filebeat / metricbeat image version

Signed-off-by: Moritz Sanft <[email protected]>

* log used image version

Signed-off-by: Moritz Sanft <[email protected]>

* use debugging image versions

Signed-off-by: Moritz Sanft <[email protected]>

* increase wait timeout for image upload

* add cloud metadata processor to filebeat

Signed-off-by: Moritz Sanft <[email protected]>

* fix template locations in container

Signed-off-by: Moritz Sanft <[email protected]>

* fix image version typo

Signed-off-by: Moritz Sanft <[email protected]>

* add filebeat / metricbeat users

Signed-off-by: Moritz Sanft <[email protected]>

* remove user additions

Signed-off-by: Moritz Sanft <[email protected]>

* update workflow step name

Signed-off-by: Moritz Sanft <[email protected]>

* only mount config files

Signed-off-by: Moritz Sanft <[email protected]>

* document potential rc

Signed-off-by: Moritz Sanft <[email protected]>

* fix IAM permissions in workflow

Signed-off-by: Moritz Sanft <[email protected]>

* fix AWS permissions

Signed-off-by: Moritz Sanft <[email protected]>

* tidy

Signed-off-by: Moritz Sanft <[email protected]>

* add missing workflow input

Signed-off-by: Moritz Sanft <[email protected]>

* rename action

Signed-off-by: Moritz Sanft <[email protected]>

* pin image versions

Signed-off-by: Moritz Sanft <[email protected]>

* remove unnecessary workflow inputs

Signed-off-by: Moritz Sanft <[email protected]>

---------

Signed-off-by: Moritz Sanft <[email protected]>

* add refStream input

Signed-off-by: Moritz Sanft <[email protected]>

* remove inputs.yml dep

Signed-off-by: Moritz Sanft <[email protected]>

* increase system metric period

Signed-off-by: Moritz Sanft <[email protected]>

* fix linkchecker

Signed-off-by: Moritz Sanft <[email protected]>

---------

Signed-off-by: Moritz Sanft <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
no changelog Change won't be listed in release changelog
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants