Follow

Embed Graphs - How To

​Check this out!

That is a realtime graph of one of our production clusters.  You can click to see a legend, drag around to see historical data, zoom out to see larger sections of time (with the mouse wheel), etc... It is essentially everything you get within your Truesight Pulse dashboard, except it is embedded in any web page you like.

How to do it?  Very easy.

  1. Sign up at http://www.bmc.com/truesightpulse.  Fill in a couple of fields to get your trial account rolling. Install the BMC TrueSight Pulse Meter on any of the servers you want to track (once you sign up you will get instructions on the agent setup).
     
  2. With your Truesight Pulse dash running, just click the embed button on the menu:
     

     
  3. Here's the embed dialog. Notice we have all our metrics on the left. The one we want is CPU.
     

     
  4. We just need to drag+drop the CPU metric to the upper left of the grid...
     

     
  5. Once we've dropped in CPU, let's drag the corner so that it takes up the whole display
     

     
  6. For this graph we will turn off the header, legend, and slider
     

     
  7. To make it fit nicely onto our page we can set the background to transparent
     

     
  8. And finally, because our target web page has a white background we will set the light theme
     

     
  9. So look and feel are all fine, let's copy the HTML
     

     

And here's the snippet that was copied to the clipboard:


<iframe src="https://premium.boundary.com/embed/e.5d76805c17?d-w=3&d-h=2&
d-pad=5&d-header=0&d-slider=0&d-legend=0&d-light=1&d-bg=none&
d-sg-cpu=0-0-3-2#null" allowtransparency="true"></iframe>
​

Note: This iframe will be of the default width/height. You can add width="your width" and height="your height" tags to the iframe and the graphs will resize accordingly.

Just paste that into the web page of your choice and we are good to go! Note, there is no login or password here, bt the link contains "secret" part, called Embed token

If, any time in future, you would decide to revoke the rights to show your charts outside BMC TrueSight Pulse, please go to Settings->Account and click reset link for Embed token. All previously shared links will become invalid.


 

Oh, there's one more thing....

For those who have been reading so far, we have not one, but two undocumented parameters, which can be added to the URL to provide additional customization. Those are 'filter' and 'exc'. The first allows to pre-select certain servers, so they will be shown as colored lines, while all others will be shown as gray lines. The second parameter allows to hide all the gray lines. So, consider manually adding something like

&filter=web1/web2&exc=1

to the URL generated by the UI and decide if it is useful for you.

Check this video for more cool examples - creating customized dashboards for specific group of servers. 

Have more questions? Submit a request