2 Replies Latest reply on May 29, 2014 4:59 PM by mylos78

    Help! How to discover quickly resources and metrics ?

    mylos78

      Hi all JON experts,

      I'm going to present a JON demo to our management staff and maybe convince them to use it. From my experiments I can see it takes about 15 minutes to discover a JBoss EAP 6 resource and about the same to collect a Metric. How do I configure it to gather statistics in an acceptable amount of time ? (I undertstand this is not fit for a production system but I just need it for a 30 minutes demo)

      Thanks

      Mylos

        • 1. Re: Help! How to discover quickly resources and metrics ?
          jayshaughnessy

          When an agent starts it will perform a full discovery, if the EAP server is not running at that time it will be missed.  Discovery runs only intermittently because it is intensive, and in general nothing is discovered.  Assuming your RHQ server and agent are running, you can always force a full discovery by executing the "Execute Prompt Command" Operation on the RHQ Agent resource (assuming you've already imported the agent resource).  As the prompt command execute "discovery -f".  This is useful to force discovery of a server that has started up after the agent is alr3eady running.  Then you go to the Discovery Queue (under the Inventory menu item) and you can import the newly discovered server.  It's child services will then be discovered and imported automatically.

           

          As for metrics, out of the box RHQ metric collection is conservative so as to not waste time and space collecting data that isn't interesting to the user.  But for a demo you can go to the resource you're interested in, under Metrics->Schedules you can enable and disable metrics, as well as set their collection intervals as low as 30s.  Pick a few and set to the minimum interval and you will start to see data coming in much faster.

           

          In general I'd just get things imported and collecting quickly in advance of the demo, but if you need to show those options then you could do that too.

          • 2. Re: Help! How to discover quickly resources and metrics ?
            mylos78

            Thanks a lot, it works!