-
Notifications
You must be signed in to change notification settings - Fork 521
Accepts metrics.prometheus endpoint.
#888
Conversation
40ecfc8 to
ca62366
Compare
ca62366 to
3c7ff35
Compare
priyolahiri
left a comment
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.
LGTM
api/v1/mongodbcommunity_types.go
Outdated
| AuthenticationRestrictions []AuthenticationRestriction `json:"authenticationRestrictions,omitempty"` | ||
| } | ||
|
|
||
| type Metrics struct { |
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.
Q: Any reason to wrap this in Metrics struct instead of using Prometheus struct directly?
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.
No reason in particular, maybe preparing for other options in the future, to go besides Prometheus; but I think that posibility is unlikely.
I don't have a strong opinion. Maybe it is unecessary at this point. I will remove
| Username: username, | ||
| Scheme: "http", | ||
| Mode: "opsManager", | ||
| ListenAddress: "0.0.0.0:9216", |
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.
Should we hardcode the port here? can it be changed on some usecase?
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.
It can be changed from CRD via prometheus.port, this is just the default.
irajdeep
left a comment
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.
LGTM -- added some minor comments.
068bc5e to
295f9b9
Compare
Summary
Using latest agent, we can pass a
spec.metrics.prometheusconfiguration that will result in an automation_config change that enables a/metricsendpoint that can be used with Prometheus.Dependencies
We need to publish a new agent version before these changes are even recognized by the agents.