pcp
[Top] [All Lists]

specify instance id's with pmdaCacheStore

To: pcp <pcp@xxxxxxxxxxx>
Subject: specify instance id's with pmdaCacheStore
From: Martins Innus <minnus@xxxxxxxxxxx>
Date: Tue, 14 Apr 2015 16:18:53 -0400
Delivered-to: pcp@xxxxxxxxxxx
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.10; rv:31.0) Gecko/20100101 Thunderbird/31.5.0
Hi,

I was looking through the source and don't think there is a way to do this, but thought I would ask. In the case of a pmda where the instance names are strictly numeric, is it possible to have the pmdaCache* routines use the instance name (which would be numeric) when generating the instance id?

More specifically, I am using the perl pmda api and the implementation that converts a perl hash to the pmdaCache* routines.

It seems like the 2 choices are an auto-incrementing internally assigned id or a deterministic value generated by hashing in pmdaCache*Key functions.

Hope this makes sense.

Thanks

Martins

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