You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@dubbo.apache.org by "chickenlj (via GitHub)" <gi...@apache.org> on 2023/12/12 07:13:40 UTC

[I] Read `Grafana address` from backend [dubbo-kubernetes]

chickenlj opened a new issue, #107:
URL: https://github.com/apache/dubbo-kubernetes/issues/107

   By requesting `/metrics/metadata`,  we can get the backend Grafana service address and then set it as the Iframe url.
   
   The front page is currently `ServiceMetrics` and should be something like:
   
   ```vue
   <template>
     <v-container grid-list-xl fluid>
       <v-layout row wrap>
         <v-flex>
           <iframe src="http:metadata.grafanaAdress/dashboard-solo/new?utm_source=grafana_gettingstarted&orgId=1&from=1684139950126&to=1684161550126&panelId=1" width="1350" height="700" frameborder="0"></iframe>
         </v-flex>
       </v-layout>
     </v-container>
   </template>
   
   <script>
    import Material from 'vuetify/es5/util/colors'
   
   export default {
   
     name: 'ServiceMetrics'
      components: {
        Breadcrumb,
        Search
      },
      data () {
        return {
          breads: [
            {
              text: 'metrics',
              href: ''
            }
          ],
          metadata: [],
        }
      },
      methods: {
        getMetadata () {
          this.$axios.get('/metrics/metadata').then(response => {
            console.log(response)
          })
        },
      },
      mounted: function () {
         this.getMetadata();
      }
   }
   </script>
   
   <style scoped>
     .echarts {
       width: 105%;
       height: 68px;
     }
   
   </style>
   
   ```


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org


Re: [I] Read `Grafana address` from backend [dubbo-kubernetes]

Posted by "chickenlj (via GitHub)" <gi...@apache.org>.
chickenlj commented on issue #107:
URL: https://github.com/apache/dubbo-kubernetes/issues/107#issuecomment-1851425834

   It could be either an embedded IFrame or open a new tab


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org


Re: [I] Read `Grafana address` from backend [dubbo-kubernetes]

Posted by "mfordjody (via GitHub)" <gi...@apache.org>.
mfordjody closed issue #107: Read `Grafana address` from backend
URL: https://github.com/apache/dubbo-kubernetes/issues/107


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org