-
Notifications
You must be signed in to change notification settings - Fork 140
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
Adding felix service metric port #3534
base: master
Are you sure you want to change the base?
Conversation
There is a PrometheusMetricsPort in FelixConfig that should be used instead of always using a built-in default value. |
There is also in migration/core.go a migration that sets installation.spec.NodeMetricsPort. Should we perhaps:
|
Was felixConfiguration.Spec.PrometheusMetricsPort a new field that has been added? I'm wondering if that field was needed if we already had NodeMetricsPort in the operator. If both NodeMetricsPort and PrometheusMetricsPort are set and are different should the operator report that as a problem? |
Changes done to add felix service metric port in calico-node service. This helps in removing the manual step required by the client to enable felix metric for BYO prometheus.
PrometheusMetricsPort is not a new field. operator/api/v1/installation_types.go Line 119 in ea0f4fb
|
So I guess one thing I'm unclear of, should the installationl.NodeMetricsPort and felixConfig.PrometheusMetricsPort be configuring the same thing or are they different? |
@tmjd Changes I have done is specific to enabling Felix metric for "Bring your own Prometheus" use case (https://docs.tigera.io/calico-enterprise/latest/operations/monitor/prometheus/byo-prometheus#scrape-metrics-from-specific-components). |
pkg/render/node.go
Outdated
if c.cfg.Installation.NodeMetricsPort != nil { | ||
return *c.cfg.Installation.NodeMetricsPort | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Since the two metrics ports are unrelated, other than providing some metrics information. I don't think there is any reason we should use NodeMetricsPort here.
If this is needed then I'd suggest this logic should be moved to the core_controller.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
updated to only use PrometheusMetricsPort
Description
Changes done to add felix service metric
port in calico-node service. This helps in
removing the manual step required by the client
to enable felix metric for BYO prometheus.
https://tigera.atlassian.net/browse/EV-5305
*** Additional changes required to update felix-metrics-service-monitor.yaml to this :
Testing
For PR author
make gen-files
make gen-versions
For PR reviewers
A note for code reviewers - all pull requests must have the following:
kind/bug
if this is a bugfix.kind/enhancement
if this is a a new feature.enterprise
if this PR applies to Calico Enterprise only.