Skip navigation
2035 Views 6 Replies Latest reply: Aug 28, 2012 10:16 AM by illabefact RSS
illabefact Rank: White Belt 7 posts since
Aug 27, 2012
Currently Being Moderated

Aug 27, 2012 8:10 AM

Add metric values via JSON

Hello, in my project I need Zenoss only for visualization because I already have data gathering server.

So I need to send values from my server to Zenoss.

Could you tell me, which method to use for it?

  • Andrey Telepin Rank: White Belt 70 posts since
    May 13, 2010
    Currently Being Moderated
    1. Aug 27, 2012 10:24 AM (in response to illabefact)
    Re: Add metric values via JSON

    Zenoss 3 and later use Ext js library. For retrive value from server this library use "store",  specifically zenoss use DirectStore. More detail information you can find in "Learning Ext JS 3.2" book and http://docs.sencha.com

     

    for Example fo retrive Location you can use

     

    var locations = new Ext.data.DirectStore({

    directFn: Zenoss.remote.DeviceRouter.getLocations,

        root: 'locations',

        fields: ['name'],

        autoLoad: true,

    });

     

    From ZCML

     

    <browser:directRouter

        name="device_router"

        for="*"

        class=".device.DeviceRouter"

        namespace="Zenoss.remote"

        timeout="180000"

        />

     

     

    I use Eclipse for walk trough code, it very help my to understand.

  • dpetzel Rank: Brown Belt 1,141 posts since
    Oct 17, 2010
    Currently Being Moderated
    3. Aug 28, 2012 9:30 AM (in response to illabefact)
    Re: Add metric values via JSON

    It sounds like what you are looking for is something more like Graphite? Zenoss doesn't support *sending* of data into the system, its designed to poll data from the client.

     

    In our case, we do ALOT of java application monitoring. Our application developers expose their metrics over JMX via mbeans, and we use the zenjmx zenpack to collect and visualize the data (not to mention monitor it).

     

    So if your looking to push data into Zenoss, there isn't something I think it will do out of the box, but if your willing to have the Zenoss pull the data, it will work great.

  • dpetzel Rank: Brown Belt 1,141 posts since
    Oct 17, 2010
    Currently Being Moderated
    5. Aug 28, 2012 10:09 AM (in response to illabefact)
    Re: Add metric values via JSON

    Yes I believe you are correct. I'm not familiar with visualizator, but Graphite might fit the bill for what you need.

More Like This

  • Retrieving data ...

Legend

  • Correct Answers - 4 points
  • Helpful Answers - 2 points