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

Update procfs to 0.15.1 and fix compilation errors #3045

Closed
wants to merge 5 commits into from

Conversation

pstibrany
Copy link

@pstibrany pstibrany commented Jun 10, 2024

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.

@pstibrany
Copy link
Author

Looks like there are more issues to fix.

@pstibrany
Copy link
Author

Looks like there are more issues to fix.

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,
Copy link
Member

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.

Copy link
Author

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"?

Copy link
Author

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]>
@discordianfish
Copy link
Member

This needs rebasing

@SuperQ
Copy link
Member

SuperQ commented Jul 14, 2024

This was fixed in #3059

@SuperQ SuperQ closed this Jul 14, 2024
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