Skip to content

Enable nfs protocol#998

Merged
discordianfish merged 3 commits intoprometheus:masterfrom
hakoerber:enable-nfs-protocol
Jul 23, 2018
Merged

Enable nfs protocol#998
discordianfish merged 3 commits intoprometheus:masterfrom
hakoerber:enable-nfs-protocol

Conversation

@hakoerber
Copy link
Copy Markdown
Contributor

@hakoerber hakoerber commented Jul 12, 2018

This pull request enables exporting of the NFS procotol (TCP or UDP) as a label.

In prometheus/procfs#100, the NFSTransportStats struct was expanded by a field called protocol that specifies the NFS protocol in use, either tcp or udp. This pull request adds the protocol as a label to all NFS metrics exported via the mountstats collector.

It also updates the deduplication logic to not only dedupe by export, but also take the protocol into consideration. This means that the same export being mounted twice, once using TCP and once UDP would be exported twice. I think this is desired behaviour.

It also updates the vendoring of prometheus/procfs from 780932d4fbbe0e69b84c34c20f5c8d0981e109ea. That includes the following commits:

$ git log --no-decorate --oneline 780932d4fbbe0e69b84c34c20f5c8d0981e109ea..origin/master

ae68e2d4 mountstats: Add support for UDP NFS mounts (#100)                                                                                                                       
40f013a8 Fix a typo in xfrm.go (#96)                                                                                                                                                             
7d6f385d Merge pull request #93 from prometheus/superq/fixture_cleanup                                                                                                                           
9952de09 Rebuild sysfs fixtures.ttar                                                                                                                                                             
81ddf772 Add fixture update target                                                                                                                                                               
94663424 sysfs/nettclass: Ignore regular files only                                                                                                                                              
61aaa706 sysfs/netclass: Parse only directories (#90)                                                                                                                                            
fe93d378 Merge pull request #87 from cdn77/netclass_pointers                                                                                                                                     
383c2724 all variables in the scope of a function should start with a lowercase letter                                                                                                           
e21be801 change values to pointers to differ missing value from 0                                                                                                                                
8b1c2da0 Merge pull request #85 from mjtrangoni/fix-typo                                                                                                                                         
bacf5dd1 net_dev.go: fix typo 

Also pinging @arsenakishev who did similar changes in #994. Maybe we can work together to get our changes merged?

Closes #996

Signed-off-by: Hannes Körber <[email protected]>
@hakoerber hakoerber force-pushed the enable-nfs-protocol branch 2 times, most recently from 66003a0 to 4abfb3b Compare July 12, 2018 20:11
In prometheus/procfs#100, the NFSTransportStats
struct was expanded by a field called protocol that specifies the NFS
protocol in use, either "tcp" or "udp". This commit adds the protocol as
a label to all NFS metrics exported via the mountstats collector.

Signed-off-by: Hannes Körber <[email protected]>
@hakoerber hakoerber force-pushed the enable-nfs-protocol branch from 62c58d5 to bb8023a Compare July 12, 2018 20:38
Signed-off-by: Hannes Körber <[email protected]>
Copy link
Copy Markdown
Member

@SuperQ SuperQ left a comment

Choose a reason for hiding this comment

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

LGTM

@SuperQ SuperQ requested a review from discordianfish July 23, 2018 17:18
Copy link
Copy Markdown
Member

@discordianfish discordianfish left a comment

Choose a reason for hiding this comment

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

LGTM

@discordianfish discordianfish merged commit 14a4f00 into prometheus:master Jul 23, 2018
oblitorum pushed a commit to shatteredsilicon/node_exporter that referenced this pull request Apr 9, 2024
* vendor: Update prometheus/procfs

Signed-off-by: Hannes Körber <[email protected]>

* mountstats: Use new NFS protocol field

In prometheus/procfs#100, the NFSTransportStats
struct was expanded by a field called protocol that specifies the NFS
protocol in use, either "tcp" or "udp". This commit adds the protocol as
a label to all NFS metrics exported via the mountstats collector.

Signed-off-by: Hannes Körber <[email protected]>

* Update fixtures for UDP mount

Signed-off-by: Hannes Körber <[email protected]>
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.

Update procfs vendored module

3 participants