Giter Club home page Giter Club logo

grafana-data-exporter's People

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  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

grafana-data-exporter's Issues

Open calendars by default

Currently when the user clicks Export this window appears:
image

Making calendars opened by default would be convinient, since the user has to open them manually anyway:
image

Allow various backend URL input

Currently it is possible to input backend url only with http:// prefix.
Also putting a / at the end on the url makes it invalid.

image

We should support more input variations from the user, such as (8000 being the desired port):

  • http://localhost:8000
  • 127.0.0.1:8000
  • 8000
  • http://127.0.0.1:8000/

Missing lodash lib in prod

from production. https://github.com/CorpGlory/grafana-data-exporter/wiki/Getting-Started-Linux , grafana-data-exporter-0.3.3

I run $ node dist/server.js and get error:

module.js:549
    throw err;
    ^

Error: Cannot find module 'lodash'
    at Function.Module._resolveFilename (module.js:547:15)
    at Function.Module._load (module.js:474:25)
    at Module.require (module.js:596:17)
    at require (internal/module.js:11:18)
    at Object.P (/home/alex/grafana-data-exporter-0.3.3/dist/server.js:784:18)
    at __webpack_require__ (/home/alex/grafana-data-exporter-0.3.3/dist/server.js:638:30)
    at fn (/home/alex/grafana-data-exporter-0.3.3/dist/server.js:48:20)
    at Object.<anonymous> (/home/alex/grafana-data-exporter-0.3.3/dist/server.js:696:11)
    at __webpack_require__ (/home/alex/grafana-data-exporter-0.3.3/dist/server.js:638:30)
    at fn (/home/alex/grafana-data-exporter-0.3.3/dist/server.js:48:20)

Template dashboard

We should create template dashboard to simplify installation process with:

  • all configured panels
  • template variable for backend url
  • simple-json-datasource as dependency

And post here maybe?

image

Port to config

Currently, use can't choose port to run exporter at
We should add it to config

Update task-status JSON

Now we have such fields in task-status json:
Time | User | Datasource | Measurement | Exported Rows | Progress | Download CSV | Status | Delete
Measurement is only influxdb-related field and should be removed
Also, datasource field is always empty now, should change the way it is filled

TypeError: undefined (reading 'split') queryStr

When I try to export my panel with InfluxDB datasource, I got this error from the grafana-data-exporter

C:\Users\user\Downloads\Nouveau dossier\grafana-data-exporter-0.5.1\dist\server.js:58892
this._queryParts = queryStr.split(INFLUX_QUERY_TIME_REGEX);
^

TypeError: Cannot read properties of undefined (reading 'split')
at new InfluxdbMetric (C:\Users\user\Downloads\Nouveau dossier\grafana-data-exporter-0.5.1\dist\server.js:58892:37)
at metricFactory (C:\Users\user\Downloads\Nouveau dossier\grafana-data-exporter-0.5.1\dist\server.js:58833:16)
at Metric.get metricQuery [as metricQuery] (C:\Users\user\Downloads\Nouveau dossier\grafana-data-exporter-0.5.1\dist\server.js:58855:33)
at Object. (C:\Users\user\Downloads\Nouveau dossier\grafana-data-exporter-0.5.1\dist\server.js:32426:32)
at Generator.next ()
at C:\Users\user\Downloads\Nouveau dossier\grafana-data-exporter-0.5.1\dist\server.js:32379:71
at new Promise ()
at __awaiter (C:\Users\user\Downloads\Nouveau dossier\grafana-data-exporter-0.5.1\dist\server.js:32375:12)
at Object.queryByMetric (C:\Users\user\Downloads\Nouveau dossier\grafana-data-exporter-0.5.1\dist\server.js:32413:12)
at Exporter. (C:\Users\user\Downloads\Nouveau dossier\grafana-data-exporter-0.5.1\dist\server.js:58678:64)

But no error with the panel
image

So I checked the server.js file and did a little debug, I found out that this :

js var queryStr = datasource.params.q;

So basicly here, this script try to get the param "q" from the datasource.params, but my datasource look like this
params: { db: 'dataclient', epoch: 'ms' }, type: 'influxdb', datasourceId: 3
The param "q" is missing, I didn't look further, if anyone has a solution to this problem I would appreciate !

Grafana v7.0.0
InfluxDB v1.8.3
Grafana-data-exporter-panel v0.5.1
Grafana-data-exporter v0.5.1

Receiving "Cannot read property 'queries' of undefined" while using PostgreSQL dashboard

(node:9864) UnhandledPromiseRejectionWarning: TypeError: Cannot read property 'queries' of undefined
at PostgresMetric.getQuery (/home/karansgs/Documents/GRAFANA/grafana-data-exporter-0.3.6/dist/server.js:45898:44)
at Object. (/home/karansgs/Documents/GRAFANA/grafana-data-exporter-0.3.6/dist/server.js:28160:44)
at Generator.next ()
at /home/karansgs/Documents/GRAFANA/grafana-data-exporter-0.3.6/dist/server.js:28113:71
at new Promise ()
at __awaiter (/home/karansgs/Documents/GRAFANA/grafana-data-exporter-0.3.6/dist/server.js:28109:12)
at Object.queryByMetric (/home/karansgs/Documents/GRAFANA/grafana-data-exporter-0.3.6/dist/server.js:28147:12)
at Target. (/home/karansgs/Documents/GRAFANA/grafana-data-exporter-0.3.6/dist/server.js:45543:62)
at Generator.next ()
at /home/karansgs/Documents/GRAFANA/grafana-data-exporter-0.3.6/dist/server.js:45482:71
(node:9864) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 8)

Unknown Error on 7.1.5

Hi

I'm trying to get this plugin working on Grafana version 7.1.5 but if i click on the export button in the Export panel i receive an Unknown Error. Also grafana.log doesn't show any fault codes or errors. Is this plugin already tested on Grafana 7.1.5?

Kind Regards

JanwillemCA

Release

We should create release after closing the most important tasks

P.S. don't forget to update changelog

Default time / value header

Sometimes you need guaranty that your file has certain default format. So just time, value
Would have a way to get such csv

App instead of panel

We should make app instead of panel with:

  • panel
  • simple-json-datasource (if possible)
  • dashboard

show better message on bad grafana api

this is what I get (node:9778) UnhandledPromiseRejectionWarning: Error: Please configure API key for http://localhost:3000

  1. Client knows nothing about the error
  2. we can show a link to a page with instruction how to this this problem

Change exported filenames

We have measurement as part of exported filename now
It's influxdb-only field, should use something not datasource-specific

Getting error while trying to export data as described in installation instruction

Hi all,

as mentioned in the topic. I followed the installation instructions and are not able to export data.

Whenever I try to export data I get following error:
image

I am running Grafana v7.3.6 on Ubuntu Server 20.04.

Can anybody help me out? What am I doing wrong?

Cheers
Andre

Edit: The datasource I am trying to export data from is InfluxDB.

UnhandledPromiseRejectionWarning: TypeError: Cannot read property '0' of undefined

I noticed the Grafana-data-exporter failing to pull the data, below are the details for the components I'm using.

Grafana-exporter-version: v0.5.1
Grafana-version: v7.1.5
datasource: Prometheus

Below is the error log grafana-data-exporter

0 day: 1611858600000ms -> 1611945000000ms
│ (node:25) UnhandledPromiseRejectionWarning: TypeError: Cannot read property '0' of undefined
│ at /var/www/dist/server.js:59057:44
│ at Array.map ()
│ at PrometheusMetric.getResults (/var/www/dist/server.js:59053:20)
│ at Object. (/var/www/dist/server.js:32429:44)
│ at Generator.next ()
│ at fulfilled (/var/www/dist/server.js:32376:58)
│ at runMicrotasks ()
│ at processTicksAndRejections (internal/process/task_queues.js:93:5) (node:25) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 6)
(node:25) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.

I'm stuck, any help is appreciated.

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.