-
Notifications
You must be signed in to change notification settings - Fork 343
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
Add k8s object labels to tcp metrics #134
Conversation
@@ -59,6 +66,24 @@ func (c *NginxPlusCollector) DeleteUpstreamServerPeerLabels(peers []string) { | |||
c.variableLabelsMutex.Unlock() | |||
} | |||
|
|||
// UpdateStreamUpstreamServerPeerLabels updates the Upstream Server Peer Labels | |||
func (c *NginxPlusCollector) UpdateStreamUpstreamServerPeerLabels(streamUpstreamServerPeerLabels map[string][]string) { | |||
c.variableLabelsMutex.Lock() |
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.
Why use a mutex here? Can this be called from multiple goroutines?
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.
Left several comments about separating stream
and http
metric labels.
I think these cannot be mixed up.
For example, consider the differing data:
And
Co-authored-by: Dean Coakley <dean.s.coakley@gmail.com>
Proposed changes
Add k8s object labels to tcp metrics
Checklist
Before creating a PR, run through this checklist and mark each as complete.