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

Metrics: Start OVN DB/Northd metrics only on OVNKube master #2714

Closed

Conversation

martinkennelly
Copy link
Member

Previous to this change, if you enabled OVN metrics
endpoint on OVNKube master and OVNKube node you get
duplicate metrics for OVN DB/Northd.
If you enable just OVNKube node only, you must
have access to the OVN DB/Northd.

With this PR, a single OVNKube master leader will
export OVN DB/Northd metrics and OVNKube node can
solely focus on OVN controller metrics.

Signed-off-by: Martin Kennelly [email protected]

@girishmg Can you take a look at this? I believe you were working on this originally.

Previous to this change, if you enabled OVN metrics
endpoint on OVNKube master and OVNKube node you get
duplicate metrics for OVN DB/Northd.
If you enable just OVNKube node only, you must
have access to the OVN DB/Northd.

With this PR, a single OVNKube master leader will
export OVN DB/Northd metrics and OVNKube node can
solely focus on OVN controller metrics.

Signed-off-by: Martin Kennelly <[email protected]>
@martinkennelly
Copy link
Member Author

@astoycos Can you take a look at this?

// Note: for ovnkube node mode dpu-host no ovn metrics is required as ovn is not running on the node.
if config.OvnKubeNode.Mode != types.NodeModeDPUHost && config.Kubernetes.OVNMetricsBindAddress != "" {
metrics.RegisterOvnMetrics(ovnClientset.KubeClient, node)
if master != "" {
Copy link
Collaborator

Choose a reason for hiding this comment

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

Right... I made this issue -> #2713 to track this

Short of it is @girishmg doesn't run the ovn-dbs necessarily on the same nodes as the ovnkub-master like described here #2697 (comment) so we can't only export metrics on the ovnkube-master nodes if I'm understanding correctly

Copy link
Member Author

Choose a reason for hiding this comment

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

I see. This PR doesn't make sense so. Thanks Andrew.

@coveralls
Copy link

Coverage Status

Coverage increased (+0.08%) to 50.183% when pulling 08b8ab9 on martinkennelly:seperate_metrics into ae6172e on ovn-org:master.

@martinkennelly
Copy link
Member Author

Closing this because I didn't consider other community deployment scenarios where OVNKube master is not co-located with OVN dbs.

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.

3 participants