-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
Update procfs to 0.15.1 and fix compilation errors #3045
Conversation
Signed-off-by: Peter Štibraný <[email protected]>
Looks like there are more issues to fix. |
Signed-off-by: Peter Štibraný <[email protected]>
There was problem caused by change in prometheus/procfs#619. PTAL at my proposed workaround (see description). |
} | ||
|
||
return nil | ||
} | ||
|
||
// lastTransportOrEmpty returns last element from given slice. Before https://github.com/prometheus/procfs/issues/450, |
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.
Hmm, I wonder if we should handle this better, now that we have all the data.
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.
Better would be to export each stat individually, but we would need some new label for that -- perhaps "port"?
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.
PTAL at 5237827, where I've added port
label to transport-metrics.
Signed-off-by: Peter Štibraný <[email protected]>
Signed-off-by: Peter Štibraný <[email protected]>
Signed-off-by: Peter Štibraný <[email protected]>
This needs rebasing |
This was fixed in #3059 |
This PR updates procfs to 0.15.1, and fixes compilation errors due to breaking change in prometheus/procfs#623.
Another change that caused compilation problems was prometheus/procfs#619 (issue prometheus/procfs#450). This introduced multiple transport stats per NFS mount.
This PR keeps reporting last stats only, which I believe was the case before prometheus/procfs#619 was merged. Alternative would be to export all transport stats, or perhaps aggregate values together (not sure if that makes sense).Update: This PR now reports transport stats for each local port individually.
Replaces #3037.