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: Mon, 02 Apr 2007 09:29:23 -0300

Hi Roman,

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

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