RedisGrafana / grafana-redis-app

Redis Application for @Grafana provides Application pages and custom panels for Redis Data Source.
https://redisgrafana.github.io
Apache License 2.0
30 stars 3 forks source link

Create RedisGears panel #36

Closed mikhail-vl closed 3 years ago

mikhail-vl commented 3 years ago

Describe the solution you'd like

redis-gears-panel should consist of: 1) Input for REQUIREMENTS 2) Switch for UNBLOCKING 3) Use CodeEditor to create and run scripts. Example: https://github.com/grafana/grafana/blob/master/public/app/plugins/panel/text/TextPanelEditor.tsx 4) Results output in the table

How to query datasource: 1) command='rg.pyexecute' 2) keyName='GB().run()' 3) unblocking='true/false' 4) requirements='numpy'

Additional context

RG.PYEXECUTE description: https://oss.redislabs.com/redisgears/commands.html#rgpyexecute Examples: https://oss.redislabs.com/redisgears/examples.html