Code Monkey home page Code Monkey logo

Comments (8)

zitsen avatar zitsen commented on May 31, 2024

Following instruction on the github, i am able to download the plugin but not able to unzip it to the grafana plugin directory

tdengine-datasource-3.1.1.zip 100%[====================================================>] 27.90M 35.4MB/s in 0.8s

2021-11-16 17:28:02 (35.4 MB/s) - ‘tdengine-datasource-3.1.1.zip’ saved [29256274/29256274]

(base) vibhu@vibhu-Opti-1-UB20:~$ sudo unzip tdengine-datasource-$GF_VERSION.zip /var/lib/grafana/plugins/ Archive: tdengine-datasource-3.1.1.zip caution: filename not matched: /var/lib/grafana/plugins/

Also tried to manually copy the zip file over to plugins directory and change the options in /etc/grafana/grafana.ini

enable_alpha = true allow_loading_unsigned_plugins = taosdata-tdengine-datasource

Now the Grafana server is not starting

 Loaded: loaded (/lib/systemd/system/grafana-server.service; enabled; vendor preset: enabled)
 Active: failed (Result: exit-code) since Tue 2021-11-16 18:04:55 PST; 3min 17s ago
   Docs: http://docs.grafana.org
Process: 2202 ExecStart=/usr/sbin/grafana-server --config=${CONF_FILE} --pidfile=${PID_FILE_DIR}/grafana-server.pid --packaging=deb cfg:default.paths.logs=${LOG_DIR} cfg:default.paths.data=${DATA_D} cfg:default.paths.plugins=${PLUGINS_DIR} cfg:default.paths.provisioning=${PROVISIONING_CFG_DIR} 

Main PID: 2202 (code=exited, status=1/FAILURE)cfg:default.paths.plugins=${PLUGINS_DIR} cfg:default.paths.provisioning=${PROVISIONING_CFG_DIR} (code=exited, status=1/FAILURE)

Nov 16 18:04:55 vibhu-Opti-1-UB20 systemd[1]: grafana-server.service: Scheduled restart job, restart counter is at 5. Nov 16 18:04:55 vibhu-Opti-1-UB20 systemd[1]: Stopped Grafana instance. Nov 16 18:04:55 vibhu-Opti-1-UB20 systemd[1]: grafana-server.service: Start request repeated too quickly. Nov 16 18:04:55 vibhu-Opti-1-UB20 systemd[1]: grafana-server.service: Failed with result 'exit-code'. Nov 16 18:04:55 vibhu-Opti-1-UB20 systemd[1]: Failed to start Grafana instance.

unzip need -d before install directory

sudo unzip tdengine-datasource-$GF_VERSION.zip -d /var/lib/grafana/plugins/

And the plugin id is tdengine-datasource.

allow_loading_unsigned_plugins = tdengine-datasource

from grafanaplugin.

afwerar avatar afwerar commented on May 31, 2024

You can also manually run the /usr/sbin/grafana-server command to start the program and look at the log.

from grafanaplugin.

vibhubithar avatar vibhubithar commented on May 31, 2024

Grafana not starting was my mistake extra ';'

as for grafana recognizing the tdengine plugin still no luck

screenshot of grafana ini
grafana ini

screenshot of adding datasource
TDengine grafana

from grafanaplugin.

vibhubithar avatar vibhubithar commented on May 31, 2024

(base) vibhu@vibhu-Opti-1-UB20:~$ /usr/sbin/grafana-server

Grafana-server Init Failed: Could not find config defaults, make sure homepath command line parameter is set or working directory is homepath
(base) vibhu@vibhu-Opti-1-UB20:~$

from grafanaplugin.

vibhubithar avatar vibhubithar commented on May 31, 2024

Please fix the documentation at https://www.taosdata.com/en/documentation/connections#grafana
for unzip need -d before install directory

sudo unzip tdengine-datasource-$GF_VERSION.zip -d /var/lib/grafana/plugins/

from grafanaplugin.

vibhubithar avatar vibhubithar commented on May 31, 2024

also i am using ubuntu 20.04 and grafana v8.2.4

from grafanaplugin.

afwerar avatar afwerar commented on May 31, 2024

First you can install the plugin with the following command.
grafana-cli --pluginUrl https://github.com/taosdata/grafanaplugin/releases/download/v3.1.1/tdengine-datasource-3.1.1.zip plugins install tdengine-datasource
In addition, you have to delete ";" to ensure that your configuration takes effect, and then restart grafana.
image

from grafanaplugin.

vibhubithar avatar vibhubithar commented on May 31, 2024

Thanks instructions provided worked well. Please update the instruction online with these.

from grafanaplugin.

Related Issues (20)

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.