pcp
[Top] [All Lists]

PMDA CIFS

To: pcp@xxxxxxxxxxx
Subject: PMDA CIFS
From: AurÃlien Aptel <aurelien.aptel+pcp@xxxxxxxxx>
Date: Mon, 26 Aug 2013 15:51:24 +0200
Delivered-to: pcp@xxxxxxxxxxx
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:date:message-id:subject:from:to:content-type; bh=b3uLsrbRZ4/1cEHyMI/pQ5KF5NbgMsgqLN4abZieAmE=; b=VNK5PJWw91KgKASJvS1T5IoOdFxrIkjgZNoBdEGkdappZ8/Q6HGxT6lOyyYFuX3hH9 0kVLyWo+6y9N7qdtRX3DGQ4DY+2xNhKOIhyXDlzwAvkhzX8sUpKk27hkA3dDRbkCjJL/ xGCKLOg2tsi/uRlJ3xBO3pVfwDBZNRATemx0Vgbas/2bcOUIZDmowxmfbd2J+nTy2lyp cOeik6+E61UGGxshKOzACtTAF1oVs0zXe+f8eCfHy9RR9ITJG/wk0M/IbIunvlOVpmAL xfHgVPdfe/a+pY3B1Op+FKlt2uxrrFid5qpRXcs/KOCTp7H/6SHPxFFJnM3suqZp37Ch 9ETg==
Sender: aurelien.aptel@xxxxxxxxx
Hi,

I've made a simple PMDA for CIFS, the kernel module that lets you
mount remote SMB share on your local file system.

The PMDA parses a virtual file in /proc/fs/cifs/Stats which is created
when the cifs module is loaded and a share is mounted.

There are system-wide metrics which only have 1 instance, there are
per-mount metric (1 instance per mount) which also have their
respective "total" (sum) metric (1 instance).

I have attached a example of the Stats file and `pminfo -df cifs` on a
system with 2 shares after few operations.

This is my first PMDA, I've used the PMDA Perl module. I've only made
the Install/Remove and pmdacifs scripts: it's really just 3 files. I'm
still working on it/discussing with other Samba devs but I was
thinking it could ultimately be merged back to the original repo.

I would like some feedback on what I already have and what I should do
next. If I understand this correctly I also need a PMID for my PMDA,
so how does that work?
I also have to add some documentation. Is documenting each metric in
the add_metric() call enough?

My git repo [1] and browseable version [2]. My work is on the pmda-cifs branch.

1: https://knarf@xxxxxxxxxxxxx/knarf/pcp.git
2: https://bitbucket.org/knarf/pcp/commits/branch/pmda-cifs

Attachment: Stats
Description: Binary data

Attachment: pminfo
Description: Binary data

<Prev in Thread] Current Thread [Next in Thread>