<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Custom dashboard that need to be visible tenant's instances, group consumption, etc in HPE Morpheus Enterprise</title>
    <link>https://community.hpe.com/t5/hpe-morpheus-enterprise/custom-dashboard-that-need-to-be-visible-tenant-s-instances/m-p/7251210#M4384</link>
    <description>&lt;P&gt;The following links should help in creating your own custom dashboard plugin:&lt;/P&gt;
&lt;ASIDE class="onebox allowlistedgeneric" data-onebox-src="https://github.com/gomorpheus/morpheus-dashboards"&gt;
  &lt;HEADER class="source"&gt;
      &lt;IMG src="https://github.githubassets.com/favicons/favicon.svg" class="site-icon" width="32" height="32" /&gt;

      &lt;A href="https://github.com/gomorpheus/morpheus-dashboards" target="_blank" rel="noopener"&gt;GitHub&lt;/A&gt;
  &lt;/HEADER&gt;

  &lt;ARTICLE class="onebox-body"&gt;
    &lt;DIV class="aspect-image" style="--aspect-ratio:690/344;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="e505bc4213d108a9ca7e9f169d689afaae236760.png"&gt;&lt;img src="https://community.hpe.com/t5/image/serverpage/image-id/150469i314606C9D3081190/image-size/large?v=v2&amp;amp;px=2000" role="button" title="e505bc4213d108a9ca7e9f169d689afaae236760.png" alt="e505bc4213d108a9ca7e9f169d689afaae236760.png" /&gt;&lt;/span&gt;&lt;/DIV&gt;

&lt;H3&gt;&lt;A href="https://github.com/gomorpheus/morpheus-dashboards" target="_blank" rel="noopener"&gt;GitHub - gomorpheus/morpheus-dashboards: Dashboard Plugins for the...&lt;/A&gt;&lt;/H3&gt;

  &lt;P&gt;Dashboard Plugins for the MorpheusData platform. Contribute to gomorpheus/morpheus-dashboards development by creating an account on GitHub.&lt;/P&gt;


  &lt;/ARTICLE&gt;

  &lt;DIV class="onebox-metadata"&gt;
    
    
  &lt;/DIV&gt;

  &lt;DIV style="clear: both"&gt;&lt;/DIV&gt;
&lt;/ASIDE&gt;

&lt;P&gt;An example plugin where a custom catalog widget was added to list available catalogs on the dashboard.&lt;/P&gt;&lt;ASIDE class="quote quote-modified" data-post="1" data-topic="1495"&gt;
  &lt;DIV class="title"&gt;
    &lt;DIV class="quote-controls"&gt;&lt;/DIV&gt;
    &lt;IMG loading="lazy" alt="" width="24" height="24" src="https://avatars.discourse-cdn.com/v4/letter/w/48db29/48.png" class="avatar" /&gt;
    &lt;A href="https://discuss.morpheusdata.com/t/an-example-on-how-to-add-a-widget-to-dashboard-plugin/1495"&gt;An example on how to add a widget to dashboard plugin&lt;/A&gt; &lt;A class="badge-category__wrapper " href="https://community.hpe.com/c/plugins/5"&gt;&lt;SPAN data-category-id="5" style="--category-badge-color: #c3e3f3; --category-badge-text-color: #000000;" data-drop-close="true" class="badge-category " title="The Plugins category is focused on Morpheus Plugin development questions and feedback.  For more information on Plugins, see https://developer.morpheusdata.com/"&gt;&lt;SPAN class="badge-category__name"&gt;Plugins&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/A&gt;
  &lt;/DIV&gt;
  &lt;BLOCKQUOTE&gt;
    In this example I’ve modified the ‘morpheus-dashboard’ plugin, that can be found on GitHub, to include a widget that lists first 10 catalogs in the Morpheus app. 



Please check the files in the following location to see what was added/modified in the plugin to create this widget: 
#Added ‘CatalogsController.groovy’ 
CatalogsController.groovy - morpheus-dashboards-catalogs/morpheus-home-dashboard-plugin/src/main/groovy/com/morpheusdata/api/CatalogsController.groovy 
#Added ‘CatalogItemProvider.…
  &lt;/BLOCKQUOTE&gt;
&lt;/ASIDE&gt;

&lt;P&gt;An example custom controller to pull the data from the Morpheus db. You can modify as required to get the info you need for your dashboard.&lt;/P&gt;&lt;ASIDE class="onebox githubblob" data-onebox-src="https://github.com/wabbas-morpheus/morpheus-plugins/blob/main/morpheus-dashboards-catalogs/morpheus-home-dashboard-plugin/src/main/groovy/com/morpheusdata/api/CatalogsController.groovy"&gt;
  &lt;HEADER class="source"&gt;

      &lt;A href="https://github.com/wabbas-morpheus/morpheus-plugins/blob/main/morpheus-dashboards-catalogs/morpheus-home-dashboard-plugin/src/main/groovy/com/morpheusdata/api/CatalogsController.groovy" target="_blank" rel="noopener"&gt;github.com&lt;/A&gt;
  &lt;/HEADER&gt;

  &lt;ARTICLE class="onebox-body"&gt;
    &lt;H4&gt;&lt;A href="https://github.com/wabbas-morpheus/morpheus-plugins/blob/main/morpheus-dashboards-catalogs/morpheus-home-dashboard-plugin/src/main/groovy/com/morpheusdata/api/CatalogsController.groovy" target="_blank" rel="noopener"&gt;wabbas-morpheus/morpheus-plugins/blob/main/morpheus-dashboards-catalogs/morpheus-home-dashboard-plugin/src/main/groovy/com/morpheusdata/api/CatalogsController.groovy&lt;/A&gt;&lt;/H4&gt;


      &lt;PRE style="background : #f0f1f2;"&gt;&lt;CODE class="lang-groovy"&gt;package com.morpheusdata.api
import com.morpheusdata.model.Permission
import com.morpheusdata.model.projection.InstanceIdentityProjection
import com.morpheusdata.views.JsonResponse
import com.morpheusdata.views.ViewModel
import com.morpheusdata.web.PluginController
import com.morpheusdata.web.Route
import com.morpheusdata.core.Plugin
import com.morpheusdata.core.MorpheusContext
import groovy.json.JsonOutput
import groovy.json.JsonSlurper
import groovy.sql.GroovyRowResult
import groovy.sql.Sql
import groovy.util.logging.Slf4j

import java.sql.Connection



@Slf4j
&lt;/CODE&gt;&lt;/PRE&gt;



  This file has been truncated. &lt;A href="https://github.com/wabbas-morpheus/morpheus-plugins/blob/main/morpheus-dashboards-catalogs/morpheus-home-dashboard-plugin/src/main/groovy/com/morpheusdata/api/CatalogsController.groovy" target="_blank" rel="noopener"&gt;show original&lt;/A&gt;

  &lt;/ARTICLE&gt;

  &lt;DIV class="onebox-metadata"&gt;
    
    
  &lt;/DIV&gt;

  &lt;DIV style="clear: both"&gt;&lt;/DIV&gt;
&lt;/ASIDE&gt;</description>
    <pubDate>Wed, 05 Jun 2024 15:41:22 GMT</pubDate>
    <dc:creator />
    <dc:date>2024-06-05T15:41:22Z</dc:date>
    <item>
      <title>Custom dashboard that need to be visible tenant's instances, group consumption, etc</title>
      <link>https://community.hpe.com/t5/hpe-morpheus-enterprise/custom-dashboard-that-need-to-be-visible-tenant-s-instances/m-p/7251209#M4383</link>
      <description>&lt;P&gt;Hi Experts,&lt;/P&gt;
&lt;P&gt;As a service provider, I am looking to have a dashboard (not reporting, analytics) which can be visible tenant’s group usage, instances, etc from master tenant. How we can achieve?&lt;/P&gt;
&lt;P&gt;Thanks,&lt;BR /&gt;
Aung&lt;/P&gt;</description>
      <pubDate>Wed, 05 Jun 2024 15:24:19 GMT</pubDate>
      <guid>https://community.hpe.com/t5/hpe-morpheus-enterprise/custom-dashboard-that-need-to-be-visible-tenant-s-instances/m-p/7251209#M4383</guid>
      <dc:creator>AungKT</dc:creator>
      <dc:date>2024-06-05T15:24:19Z</dc:date>
    </item>
    <item>
      <title>Re: Custom dashboard that need to be visible tenant's instances, group consumption, etc</title>
      <link>https://community.hpe.com/t5/hpe-morpheus-enterprise/custom-dashboard-that-need-to-be-visible-tenant-s-instances/m-p/7251210#M4384</link>
      <description>&lt;P&gt;The following links should help in creating your own custom dashboard plugin:&lt;/P&gt;
&lt;ASIDE class="onebox allowlistedgeneric" data-onebox-src="https://github.com/gomorpheus/morpheus-dashboards"&gt;
  &lt;HEADER class="source"&gt;
      &lt;IMG src="https://github.githubassets.com/favicons/favicon.svg" class="site-icon" width="32" height="32" /&gt;

      &lt;A href="https://github.com/gomorpheus/morpheus-dashboards" target="_blank" rel="noopener"&gt;GitHub&lt;/A&gt;
  &lt;/HEADER&gt;

  &lt;ARTICLE class="onebox-body"&gt;
    &lt;DIV class="aspect-image" style="--aspect-ratio:690/344;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="e505bc4213d108a9ca7e9f169d689afaae236760.png"&gt;&lt;img src="https://community.hpe.com/t5/image/serverpage/image-id/150469i314606C9D3081190/image-size/large?v=v2&amp;amp;px=2000" role="button" title="e505bc4213d108a9ca7e9f169d689afaae236760.png" alt="e505bc4213d108a9ca7e9f169d689afaae236760.png" /&gt;&lt;/span&gt;&lt;/DIV&gt;

&lt;H3&gt;&lt;A href="https://github.com/gomorpheus/morpheus-dashboards" target="_blank" rel="noopener"&gt;GitHub - gomorpheus/morpheus-dashboards: Dashboard Plugins for the...&lt;/A&gt;&lt;/H3&gt;

  &lt;P&gt;Dashboard Plugins for the MorpheusData platform. Contribute to gomorpheus/morpheus-dashboards development by creating an account on GitHub.&lt;/P&gt;


  &lt;/ARTICLE&gt;

  &lt;DIV class="onebox-metadata"&gt;
    
    
  &lt;/DIV&gt;

  &lt;DIV style="clear: both"&gt;&lt;/DIV&gt;
&lt;/ASIDE&gt;

&lt;P&gt;An example plugin where a custom catalog widget was added to list available catalogs on the dashboard.&lt;/P&gt;&lt;ASIDE class="quote quote-modified" data-post="1" data-topic="1495"&gt;
  &lt;DIV class="title"&gt;
    &lt;DIV class="quote-controls"&gt;&lt;/DIV&gt;
    &lt;IMG loading="lazy" alt="" width="24" height="24" src="https://avatars.discourse-cdn.com/v4/letter/w/48db29/48.png" class="avatar" /&gt;
    &lt;A href="https://discuss.morpheusdata.com/t/an-example-on-how-to-add-a-widget-to-dashboard-plugin/1495"&gt;An example on how to add a widget to dashboard plugin&lt;/A&gt; &lt;A class="badge-category__wrapper " href="https://community.hpe.com/c/plugins/5"&gt;&lt;SPAN data-category-id="5" style="--category-badge-color: #c3e3f3; --category-badge-text-color: #000000;" data-drop-close="true" class="badge-category " title="The Plugins category is focused on Morpheus Plugin development questions and feedback.  For more information on Plugins, see https://developer.morpheusdata.com/"&gt;&lt;SPAN class="badge-category__name"&gt;Plugins&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/A&gt;
  &lt;/DIV&gt;
  &lt;BLOCKQUOTE&gt;
    In this example I’ve modified the ‘morpheus-dashboard’ plugin, that can be found on GitHub, to include a widget that lists first 10 catalogs in the Morpheus app. 



Please check the files in the following location to see what was added/modified in the plugin to create this widget: 
#Added ‘CatalogsController.groovy’ 
CatalogsController.groovy - morpheus-dashboards-catalogs/morpheus-home-dashboard-plugin/src/main/groovy/com/morpheusdata/api/CatalogsController.groovy 
#Added ‘CatalogItemProvider.…
  &lt;/BLOCKQUOTE&gt;
&lt;/ASIDE&gt;

&lt;P&gt;An example custom controller to pull the data from the Morpheus db. You can modify as required to get the info you need for your dashboard.&lt;/P&gt;&lt;ASIDE class="onebox githubblob" data-onebox-src="https://github.com/wabbas-morpheus/morpheus-plugins/blob/main/morpheus-dashboards-catalogs/morpheus-home-dashboard-plugin/src/main/groovy/com/morpheusdata/api/CatalogsController.groovy"&gt;
  &lt;HEADER class="source"&gt;

      &lt;A href="https://github.com/wabbas-morpheus/morpheus-plugins/blob/main/morpheus-dashboards-catalogs/morpheus-home-dashboard-plugin/src/main/groovy/com/morpheusdata/api/CatalogsController.groovy" target="_blank" rel="noopener"&gt;github.com&lt;/A&gt;
  &lt;/HEADER&gt;

  &lt;ARTICLE class="onebox-body"&gt;
    &lt;H4&gt;&lt;A href="https://github.com/wabbas-morpheus/morpheus-plugins/blob/main/morpheus-dashboards-catalogs/morpheus-home-dashboard-plugin/src/main/groovy/com/morpheusdata/api/CatalogsController.groovy" target="_blank" rel="noopener"&gt;wabbas-morpheus/morpheus-plugins/blob/main/morpheus-dashboards-catalogs/morpheus-home-dashboard-plugin/src/main/groovy/com/morpheusdata/api/CatalogsController.groovy&lt;/A&gt;&lt;/H4&gt;


      &lt;PRE style="background : #f0f1f2;"&gt;&lt;CODE class="lang-groovy"&gt;package com.morpheusdata.api
import com.morpheusdata.model.Permission
import com.morpheusdata.model.projection.InstanceIdentityProjection
import com.morpheusdata.views.JsonResponse
import com.morpheusdata.views.ViewModel
import com.morpheusdata.web.PluginController
import com.morpheusdata.web.Route
import com.morpheusdata.core.Plugin
import com.morpheusdata.core.MorpheusContext
import groovy.json.JsonOutput
import groovy.json.JsonSlurper
import groovy.sql.GroovyRowResult
import groovy.sql.Sql
import groovy.util.logging.Slf4j

import java.sql.Connection



@Slf4j
&lt;/CODE&gt;&lt;/PRE&gt;



  This file has been truncated. &lt;A href="https://github.com/wabbas-morpheus/morpheus-plugins/blob/main/morpheus-dashboards-catalogs/morpheus-home-dashboard-plugin/src/main/groovy/com/morpheusdata/api/CatalogsController.groovy" target="_blank" rel="noopener"&gt;show original&lt;/A&gt;

  &lt;/ARTICLE&gt;

  &lt;DIV class="onebox-metadata"&gt;
    
    
  &lt;/DIV&gt;

  &lt;DIV style="clear: both"&gt;&lt;/DIV&gt;
&lt;/ASIDE&gt;</description>
      <pubDate>Wed, 05 Jun 2024 15:41:22 GMT</pubDate>
      <guid>https://community.hpe.com/t5/hpe-morpheus-enterprise/custom-dashboard-that-need-to-be-visible-tenant-s-instances/m-p/7251210#M4384</guid>
      <dc:creator />
      <dc:date>2024-06-05T15:41:22Z</dc:date>
    </item>
    <item>
      <title>Re: Custom dashboard that need to be visible tenant's instances, group consumption, etc</title>
      <link>https://community.hpe.com/t5/hpe-morpheus-enterprise/custom-dashboard-that-need-to-be-visible-tenant-s-instances/m-p/7251211#M4385</link>
      <description>&lt;P&gt;Thanks, I will explore it.&lt;/P&gt;</description>
      <pubDate>Wed, 05 Jun 2024 16:57:54 GMT</pubDate>
      <guid>https://community.hpe.com/t5/hpe-morpheus-enterprise/custom-dashboard-that-need-to-be-visible-tenant-s-instances/m-p/7251211#M4385</guid>
      <dc:creator>AungKT</dc:creator>
      <dc:date>2024-06-05T16:57:54Z</dc:date>
    </item>
  </channel>
</rss>

