-
Notifications
You must be signed in to change notification settings - Fork 2
chore(module): switched metrics scraping for the virtualization-controller from scrapeconfig to servicemonitor #1651
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
Draft
fl64
wants to merge
7
commits into
main
Choose a base branch
from
chore/module/get-rid-of-scrapeconfig
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+187
−122
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Contributor
Reviewer's GuideThis PR removes the legacy scrapeconfig integration by adding a native Prometheus ServiceMonitor template in the virtualization-controller Helm chart, conditioned on the operator-prometheus-crd module, and configures secure endpoints with proper labeling and namespace selection. Class diagram for ServiceMonitor resource structureclassDiagram
class ServiceMonitor {
+metadata: name, namespace, labels
+spec: endpoints, namespaceSelector, selector
}
class Endpoint {
+bearerTokenSecret: key, name
+path: /metrics
+port: metrics
+scheme: https
+tlsConfig: insecureSkipVerify
}
class NamespaceSelector {
+matchNames: [d8-<Chart.Name>]
}
class Selector {
+matchLabels: app: virtualization-controller
}
ServiceMonitor "1" -- "*" Endpoint : endpoints
ServiceMonitor "1" -- "1" NamespaceSelector : namespaceSelector
ServiceMonitor "1" -- "1" Selector : selector
File-Level Changes
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
dc7da4f to
2ecbc5e
Compare
9fd27cb to
d91ec13
Compare
345e46e to
5a5887f
Compare
Signed-off-by: Pavel Tishkov <pavel.tishkov@flant.com>
Signed-off-by: Pavel Tishkov <pavel.tishkov@flant.com>
Signed-off-by: Pavel Tishkov <pavel.tishkov@flant.com>
Signed-off-by: Pavel Tishkov <pavel.tishkov@flant.com>
Signed-off-by: Pavel Tishkov <pavel.tishkov@flant.com>
b1604f8 to
3294d14
Compare
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
Switched metrics scraping for the virtualization-controller from ScrapeConfig to ServiceMonitor.
Why do we need it, and what problem does it solve?
What is the expected result?
Checklist
Changelog entries