GithubHelp home page GithubHelp logo

grafana-starter-app's Introduction

⚠️ Deprecated!

This repository is deprecated.
A more up-to-date version is available here: https://github.com/grafana/grafana-plugin-examples/tree/master/examples/app-basic


Grafana App Plugin Template

Build

This template is a starting point for building Grafana App Plugins in Grafana 7.0+

Getting started

  1. Install dependencies

    yarn install
  2. Build plugin in development mode or run in watch mode

    yarn dev

    or

    yarn watch
  3. Build plugin in production mode

    yarn build

Learn more

grafana-starter-app's People

Contributors

besartberisha avatar codeincarnate avatar dependabot[bot] avatar domasx2 avatar leventebalogh avatar marcusolsson avatar ryantxu avatar s-h-a-d-o-w avatar tolzhabayev avatar torkelo avatar wbrowne avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

grafana-starter-app's Issues

Unable to add react pages to the side navigation bar

Hi,

I built the sample react app plugin and used as an external plugin. When I am using this, I can only see the old angular page in the side navigation bar and not the 2 react pages. How can I add these react pages to plugin.json so that it will work from the side navigation bar?

image

Enabling application

HI,

I have a problem with activating this plugin. I can build, the plugin but after I navigate to custom routes I get the error message "Application Not Enabled".

I can't figure out how to enable the plugin. (I can't see the enable button in the list of all plugins)

Can someone help me with it?
Thanks.

Missing singlestat2 plugin with Grafana v6.6.0

Tested with Grafana 6.6.0-ubuntu

Steps to reproduce:

  • Enable 'Simple App' on plugins page
  • Go to the 'stats' dashboard

missing_singlestat2

Looks like 'singlestat2' has been renamed to 'singlestat' some time ago:
grafana/grafana#20651

Live editing the dashboard to use 'singlestat' instead seems to be fixing the issue.

How to build grafana-simple-apps

Hello.

I tried build grafana-app-plugin but a problem has arisen..

I don't know reason. Judging from the code, I think it's right.

I use this commands
yarn install
yarn dev

[tsl] ERROR in C:\Source\simple-app-plugin\src\module.ts(9,3)
TS2322: Type 'typeof ExamplePage2' is not assignable to type 'ComponentClass<PluginConfigPageProps<GrafanaPlugin<PluginMeta<KeyValue>>>, any>'.
Types of parameters 'props' and 'props' are incompatible.
Type 'PluginConfigPageProps<GrafanaPlugin<PluginMeta<KeyValue>>>' is not assignable to type 'Props'.
Types of property 'plugin' are incompatible.
Type 'GrafanaPlugin<PluginMeta<KeyValue>>' is missing the following properties from type 'AppPlugin': init, setRootPage, setComponentsFromLegacyExports

I would appreciate your help.

Angular example page fails to load with Grafana v6.6.0

Tested with the Grafana docker tags 6.6.0 and 6.5.0

Problem: When clicking on the 'Angular Page' link on the left rail (/plugins/yourorg-simple-app/page/angular-page), the page fails to load in Grafana v6.6.0.

Steps to reproduce:

  • Enable 'Simple App' on plugins page
  • Click the 'Angular Page' link from the 'Simple App' menu on the left rail

The page seems to work with Grafana v6.5.0.

Any help would be much appeciated. Thanks. I am trying to develop a Grafana app-type plugin with Angular.

how to change route

hey i am trying to change route but cant able to change the route it still shows a/yourorg-simple-app/ like this

Save app configuration

Hi
I'm trying to make a plugin app for Grafana.
I'd like to have some configuration options.
I already created a configuration component with all the form field I need, but now one question remains. How can I save the configuration specified by the user ?

Any ideas, or suggestions on how I can achieve that ?

Unable to display react page content when accessing it

I modified the code to set the root page to the react "ExampleRootPage" instead of the legacy AngularExamplePageCtrl.

To do so, I added the page entry to includes array:

"includes": [
    {
      "type": "page",
      "name": "React Page",
      "component": "ExampleRootPage",
      "role": "Viewer",
      "addToNav": true,
      "defaultNav": true
    },
...

and in module.ts:

export {
  ExampleConfigCtrl as ConfigCtrl,
  // AngularExamplePageCtrl,
  ExampleRootPage // Must match `pages.component` in plugin.json
};

export const plugin = new AppPlugin<ExampleAppSettings>()
  .setRootPage(ExampleRootPage)

We can see the page in the left panel after enabling the plugin, however, when we try to display the content of the page, we have the following error in console:

in ChangeTracker.ts:6
Plugin component error Error: [$injector:unpr] Unknown provider: propsProvider <- props
http://errors.angularjs.org/1.6.9/$injector/unpr?p0=propsProvider%20%3C-%20props
    at angular.js:116
    at angular.js:4887
    at Object.s [as get] (angular.js:5047)
    at angular.js:4892
    at s (angular.js:5047)
    at u (angular.js:5072)
    at Object.invoke (angular.js:5098)
    at M.instance (angular.js:11076)
    at it (angular.js:9926)
    at angular.js:9248

Do you know why ? And do you have a workaround to develop simple react pages ?

Note: config pages are working correctly.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.