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 18:13:23 -0300

Hi Roman,

I developed it and I got the following answer when trying to test it:

============
<nmwg:message id="cacti_resp" messageIdRef="cacti" type="MetadataKeyResponse" xmlns:nmwg="http://ggf.org/ns/nmwg/base/2.0/";>
<nmwg:metadata id="resultCodeMetadata">
<nmwg:eventType>warning.ma.metadata_configuration
</nmwg:eventType>
</nmwg:metadata>
<nmwg:data id="resultDescriptionData_for_resultCodeMetadata" metadataIdRef="resultCodeMetadata">
<nmwgr:datum xmlns:nmwgr="http://ggf.org/ns/nmwg/result/2.0/";>SimpleMetadataConfigurationStorageManager.fetch: No metadata in metadata configuration file
</nmwgr:datum>
</nmwg:data>
</nmwg:message>
============

What does this mean?

By the way, I have sent the following message:

============
<nmwg:message id="cacti" type="MetadataKeyRequest"
xmlns:owamp="http://ggf.org/ns/nmwg/tools/owamp/2.0/";
xmlns:nmwg="http://ggf.org/ns/nmwg/base/2.0/";
xmlns:nmwgt="http://ggf.org/ns/nmwg/topology/2.0/";
xmlns:select="http://ggf.org/ns/nmwg/ops/select/2.0/";>

<nmwg:metadata id="meta1">
<owamp:subject id="test">
</owamp:subject>
<nmwg:eventType>owamp</nmwg:eventType>
<nmwg:parameters>
<nmwg:parameter name="direction">to</nmwg:parameter>
</nmwg:parameters>
</nmwg:metadata>

<nmwg:data id="data_1" metadataIdRef="meta1"/>

</nmwg:message>
============

Thanks for your attention,

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