Skip to Content.
Sympa Menu

perfsonar-dev - Re: [pS-dev] Re: Adding new eventType to RRD MA 2.0

Subject: perfsonar development work

List archive

Re: [pS-dev] Re: Adding new eventType to RRD MA 2.0


Chronological Thread 
  • From: Fausto Vetter <>
  • To: Roman Lapacz <>
  • Cc: "" <>, Guilherme Fernandes <>
  • Subject: Re: [pS-dev] Re: Adding new eventType to RRD MA 2.0
  • Date: Tue, 03 Apr 2007 14:26:47 -0300

Hi Roman,

I got to recompile by hand the rrdjtool library again for the rrdtool 1.2.19. I guess I had compiled in a wrong fashion.

Fausto

Roman Lapacz wrote:

Fausto Vetter wrote:

Hi Roman,

I got things finished. Everything is working fine.

I would like to add these new classes to a next future release.


no problem, the more metrics the better

Roman


Fausto

Roman Lapacz wrote:

Fausto Vetter wrote:

Hi Roman,


Hi


Actually, the MA I want to work is not SQL, but RRDMA. is it the same procedure?



Yes. RRD MA just does not need responseGenerator and storeRequestProcess elements in eventType-map.xml config file.


Roman




Fausto

Roman Lapacz wrote:



Some time ago Guilherme introduced owamp eventType and did this the way I described.

Roman




Roman Lapacz wrote:

Fausto Vetter wrote:

Hi Roman,

I installed the new version of MA RRD to make create new event types to our CLMP service, once we are considering save the results in RRD files. How do I add a new event type to RRD MA? Is it possible with the version 2 of perfsonar? should I have the src code to do this or is it just a matter of mapping stuff in conf files?




If metadata elements in your metadata configuration file will use interface elements (as it is for the utilization metric) then you can add this:

<eventType>
<name>your-new-eventType</name>
<metadataQueryGenerator>org.perfsonar.service.measurementArchive.metadataConfig.queryGenerator.UtilizationQueryGenerator</metadataQueryGenerator>
<responseGenerator>org.perfsonar.service.measurementArchive.sqlType.fetch.UtilizationResponseGenerator</responseGenerator>
<storeRequestProcess>org.perfsonar.service.measurementArchive.sqlType.store.UtilizationStoreRequestProcess</storeRequestProcess>
</eventType>


to eventType-map.xml file. Then redeploy the service.


But if metadata elements will be different then you will have to implement new class responseGenerator and probably storeRequestProcess. The former generates relevant xquery statement used to search in the metadata configuration file, the latter is used to generate message response. Follow the classes for utilization metric as examples.


Roman









Archive powered by MHonArc 2.6.16.

Top of Page