Skip to content
This repository was archived by the owner on Dec 12, 2025. It is now read-only.

Conversation

@rodrigovalin
Copy link
Contributor

Summary

  • Configured the MongoDB Service adding the prometheus Port.
  • Created a simple YAML file and Readme to be able to test the prometheus integration so far.

assert.Equal(t, svc.Spec.Selector["app"], mdb.ServiceName())
assert.Len(t, svc.Spec.Ports, 2)
assert.Equal(t, svc.Spec.Ports[0], corev1.ServicePort{Port: 1000, Name: "mongodb"})
assert.Equal(t, svc.Spec.Ports[1], corev1.ServicePort{Port: 9216, Name: "prometheus"})
Copy link
Contributor Author

Choose a reason for hiding this comment

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

test with a custom port

@rodrigovalin rodrigovalin force-pushed the updates-service-and-documents-servicemonitor branch from ac9f45b to 5ea7666 Compare February 21, 2022 13:42
@rodrigovalin rodrigovalin merged commit ddf31fe into master Feb 21, 2022
@rodrigovalin rodrigovalin deleted the updates-service-and-documents-servicemonitor branch February 21, 2022 14:35
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants