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:58:48 +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=YkP7J3yEXWCeT7uhLf+JGSeoARqj1Hv8m7QSRhYR+H8=; b=lZ2jw2AiOs37TgeK4leE/5wZ4I5LodaMkk7z5f24Zh4sOnmp79vaivRd8AQ62C7Qf4 8gZQOaIER+ELD190wjXzh4mthYpwGSlAwVeBOqjz2gYHAoli9T4mEFPhLZ/KJ+gkHuzJ XQXVPFK0NZ77KtXHndJZe17w3Sy1n4T6mkPxGwaNOIyx/7FnIas2kgCRqkQ1nz6F43Zi 0AIXL20N87IBu1JRqf8J9uWL3heD4FMrpard2c+rOAS7M8fe1awpf/ObGiAQ/OqxtIo1 NRGmzM6bWLBzPEiwhCunSd4aL5nYgLVPdtSCj/GPA+xUhlW23Rn5hwEC7RhsbkCDy7yv 0vrQ==
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>