Skip to content

🐛 Fixing the labels for better metrics collection #969

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

Merged
merged 1 commit into from
Aug 15, 2024

Conversation

LalatenduMohanty
Copy link
Member

As the label selector used for both catalogd and operator-controller metrics services is "control-plane: controller-manager". Hence changing the labels in both operator-controller and catalogd to make sure we do not overlap.

Description

Reviewer Checklist

  • API Go Documentation
  • Tests: Unit Tests (and E2E Tests, if appropriate)
  • Comprehensive Commit Messages
  • Links to related GitHub Issue(s)

@LalatenduMohanty LalatenduMohanty requested a review from a team as a code owner June 24, 2024 23:29
Copy link

netlify bot commented Jun 24, 2024

Deploy Preview for olmv1 ready!

Name Link
🔨 Latest commit 060f5cf
🔍 Latest deploy log https://app.netlify.com/sites/olmv1/deploys/66be65e854ece00008a5f8fc
😎 Deploy Preview https://deploy-preview-969--olmv1.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.

Copy link

codecov bot commented Jun 25, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 75.44%. Comparing base (066a95b) to head (060f5cf).
Report is 3 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #969   +/-   ##
=======================================
  Coverage   75.44%   75.44%           
=======================================
  Files          35       35           
  Lines        1918     1918           
=======================================
  Hits         1447     1447           
  Misses        329      329           
  Partials      142      142           
Flag Coverage Δ
e2e 58.18% <ø> (ø)
unit 50.88% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@LalatenduMohanty LalatenduMohanty changed the title 🌱 Fixing the labels for better metrics collection 🐛 Fixing the labels for better metrics collection Jun 25, 2024
@LalatenduMohanty LalatenduMohanty changed the title 🐛 Fixing the labels for better metrics collection 🐛 Fixing the labels for better metrics collection Jun 25, 2024
@@ -2,7 +2,7 @@ apiVersion: v1
kind: Namespace
metadata:
labels:
control-plane: controller-manager
control-plane: operator-controller-controller-manager
Copy link
Member

Choose a reason for hiding this comment

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

I think I would delete this label from the namespace. catalogd contributes this same namespace in it's manifest, which means we'll end up with conflicts or silent overwrites.

This is related to #967

Copy link
Contributor

Choose a reason for hiding this comment

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

So, this is a minor change that can be done fairly quickly.

Copy link
Member Author

Choose a reason for hiding this comment

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

catalogd uses catalogd-controller-manager and not operator-controller-controller-manager. So I am little confused here.

Copy link
Contributor

Choose a reason for hiding this comment

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

@LalatenduMohanty I think what @joelanford is saying is that both catalogd and operator-controller would create this particular namespace based on recent manifest changes across both projects

Copy link
Contributor

@tmshort tmshort left a comment

Choose a reason for hiding this comment

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

Do we qnt to have a repetitive label value? Would operator-conroller-manager make more sense?

@@ -2,7 +2,7 @@ apiVersion: v1
kind: Namespace
metadata:
labels:
control-plane: controller-manager
control-plane: operator-controller-controller-manager
Copy link
Contributor

Choose a reason for hiding this comment

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

So, this is a minor change that can be done fairly quickly.

@tmshort
Copy link
Contributor

tmshort commented Jul 22, 2024

Where are we with this?

@tmshort
Copy link
Contributor

tmshort commented Aug 13, 2024

Looks to be still failing tests. Have we tried using prometheus with it?

@perdasilva perdasilva force-pushed the 955 branch 2 times, most recently from 5765470 to 3f3b5a9 Compare August 13, 2024 18:44
@joelanford joelanford added this pull request to the merge queue Aug 15, 2024
Merged via the queue into operator-framework:main with commit cdf0a8a Aug 15, 2024
17 of 18 checks passed
@skattoju skattoju mentioned this pull request Sep 25, 2024
4 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants