2 Replies Latest reply: Nov 9, 2017 9:26 AM by Koundinya Srinivasarao RSS

I am looking for option to add the AppInternals query seach graph as a Panel in SteelCentral Portal

Mukesh Kumar Singh

I am looking for option to add the AppInternals query seach graph as a Panel in SteelCentral Portal.

 

For example:

 

server = 'xxxxxxxxx' | processingtime -visualization pie

 

This creates a graphical view of the processing time for the particular server.

I want this  graph to be added into the list of the panels in dashboards in SteelCentralPortal.

 

Regards,

Mukesh Kumar Singh.

  • Re: I am looking for option to add the AppInternals query seach graph as a Panel in SteelCentral Portal
    Marc Ribet

    This is a nice idea but I do not think this is possible because the URL from AppInternals does not add the corresponding parameters.

     

    I have filed a new suggestion;

     

    Bug 286195 - add search parameters to the URL in order to be able to display the result in Portal using an iframe

  • Re: I am looking for option to add the AppInternals query seach graph as a Panel in SteelCentral Portal
    Koundinya Srinivasarao

    Hi Mukesh Kumar Singh,

     

    One of the reasons you may have been unable to do this is because AppInternals prevents being embedded in an iFrame to protect against clickjacking attacks.

     

    One option may be to use Chrome and the plugin Allow iFrames:

    https://chrome.google.com/webstore/detail/iframe-allow/gifgpciglhhpmeefjdmlpboipkibhbjg?hl=en&_sm_nck=1

     

    You can then embed AppInternals in Portal using an iFrames.

     

    Re: including search parameters in the URL, AppInternals does this. You can determine what that URL is by clicking on the share icon (the paper clip icon):

    operator_share_link.png

     

    Open up the link in another tab and copy it from the new tab. The URL should be in this format:

     

    https://<ai_analysis_server>/#search:time=25170712+60&_rb_use_cache=true&apply_globals=true&context_name=context%2520(optional)&plugin_args=-visualization%2520pie&plugin_name=processingtime&query=…

     

    The highlighted portion represents the time frame the operator will run against. To make this relative, e.g. recent 60 minutes, replace the following:

     

    time=25170712+60

     

    with the following in the URL:

     

    time=60

     

    Here is an example HTML iframe snippet I used (along with some cropping):

     

    <div style="width: 900px; height: 400px; overflow: hidden">

    <iframe src="appinternals_operator_url" allowtransparency="false" frameborder="0" height="1500"

    width="1050" style="position: relative; left: -10px; top: -390px"></iframe>

    </div>

     

    [Determine ‘appinternals_operator_url’ to use as I mentioned before]

     

    Lastly, note that operators generate/aggregate data on the fly. Some operators (such as processingtime) can be resource intensive. So I suggest you be a little cautious if you plan to set up this to refresh automatically from Portal.

     

    BTW it is easy to tell which operators are resource intensive and which aren’t. In the Search tab click on the Analysis Button to list all the operators. The ones with an hourglass are resource intensive and those with lightning icons are not.

     

    operator_speed.png