Giter Site home page Giter Site logo

Comments (15)

nathanael-h avatar nathanael-h commented on May 25, 2024 1

Hello, I do have the same problem, I followed your advices @jhammons - thanks- but I still have no data in Grafana. In Netdata it works. I think I have the same problem as @Quiwy .
I reinstalled both Netdata and Grafane, strating with Netdata.

from grafana_ynh.

JimboJoe avatar JimboJoe commented on May 25, 2024 1

I've really missed reactivity for the past months/years... But today I'm releasing a fix version of this package that should make working any initial installation, and your comments/PR helped a lot! Thanks! ❀️

from grafana_ynh.

jchammons avatar jchammons commented on May 25, 2024

The issue is that influxdb (/etc/influxdb/influxdb.conf) doesn't have opentsdb enabled for some reason. I worked around the issue by adding this to the configuration:

[[opentsdb]]
  enabled = true
  bind-address = ":4242"
  database = "opentsdb"

Then, restart influxdb and data should be flowing.

from grafana_ynh.

Quiwy avatar Quiwy commented on May 25, 2024

The issue is that influxdb (/etc/influxdb/influxdb.conf) doesn't have opentsdb enabled for some reason. I worked around the issue by adding this to the configuration:

[[opentsdb]]
  enabled = true
  bind-address = ":4242"
  database = "opentsdb"

Then, restart influxdb and data should be flowing.

Still have 'no data' on graphana charts after modifying the file 😟

from grafana_ynh.

jchammons avatar jchammons commented on May 25, 2024

Oh, one thing I had to do that I failed to mention. I installed influxdb-client, ran influx and then create database opentsdb ... I hope that helps.

Also, did you restart netdata? sudo systemctl restart netdata.service ?

from grafana_ynh.

Quiwy avatar Quiwy commented on May 25, 2024

Still have nothing in graphana 😟 , even if it looks like there is something in the influx database (not sure how to read it though).

SHOW MEASUREMENTS ON opentsdb
image

Yes I restarded netdata service too, and no change.

from grafana_ynh.

jchammons avatar jchammons commented on May 25, 2024

So you just need to make sure Grafana is reading from influxdb properly. What do the settings for InfluxDB in 'Data sources' reveal? Is 'opentsdb' the database name?

from grafana_ynh.

Quiwy avatar Quiwy commented on May 25, 2024

image
image
image
HEre are the details of data sources in graphana configuration.

from grafana_ynh.

jchammons avatar jchammons commented on May 25, 2024

I think you should not set the HTTP Method.

from grafana_ynh.

Quiwy avatar Quiwy commented on May 25, 2024

Well, the HTTP method was set by default to post, I changed nothing on this parameter, and it doesn't works with get method neither.

from grafana_ynh.

ColonelBuendia avatar ColonelBuendia commented on May 25, 2024

I had the same issue today, and was able to resolve it thanks to the comments above, mostly following the installer script line by line. I found that exporting.conf didn't exist for me in the netdata conf section. Changing the influxdb conf was a headfake, I ended up getting it working with a version that was unaltered from original.

sudo nano /opt/netdata/etc/netdata/exporting.conf

[exporting:global]
    enabled = yes

[opentsdb:yunohost]
    enabled = yes
    destination = localhost:4242
    # data source = average
    # prefix = netdata
    # hostname = my_hostname
    update every = 60
    # buffer on failures = 10
    # timeout ms = 20000
    # send names instead of ids = yes
    # send charts matching = *
    # send hosts matching = localhost *

the working version of my influxdb.conf looks like this

[[opentsdb]]                                                                                                                                                                                                     
  #  enabled = true                                                                                                                                                                                              
  #  bind-address = ":4242"                                                                                                                                                                                      
  #  database = "opentsdb"                                                                                                                                                                                       
  # retention-policy = ""                                                                                                                                                                                        
  # consistency-level = "one"                                                                                                                                                                                    
  # tls-enabled = true                                                                                                                                                                                           
  # certificate= "/etc/ssl/influxdb.pem"   

from grafana_ynh.

getzze avatar getzze commented on May 25, 2024

Thanks @ColonelBuendia it worked!
You also have to restart netdata, influxdb and grafana-server services after creating the /opt/netdata/etc/netdata/exporting.conf file:

systemctl restart netdata
systemctl restart influxdb
systemctl restart grafana-server

from grafana_ynh.

Quiwy avatar Quiwy commented on May 25, 2024

I found that exporting.conf didn't exist for me in the netdata conf section.

sudo nano /opt/netdata/etc/netdata/exporting.conf

[exporting:global]
    enabled = yes

[opentsdb:yunohost]
    enabled = yes
    destination = localhost:4242
    # data source = average
    # prefix = netdata
    # hostname = my_hostname
    update every = 60
    # buffer on failures = 10
    # timeout ms = 20000
    # send names instead of ids = yes
    # send charts matching = *
    # send hosts matching = localhost *

Thank you @ColonelBuendia I missed that part when I read the install script line by line to see if something was missing, I now have data on my graphs πŸ˜ƒ
Don't know what went wrong during installation 😞

from grafana_ynh.

nathanael-h avatar nathanael-h commented on May 25, 2024

I confirm it works also for me: big thanks to @ColonelBuendia !!!! πŸ‘ πŸŽ† πŸ₯³ 🍻 πŸ˜„

from grafana_ynh.

shukon avatar shukon commented on May 25, 2024

Hi, it would help to keep the issue open if it's supposed to work out of the box, at least until #26 is merged. Makes it easier to find the solution.

Also, I changed the influxdb config and enabled the opentsdb, if anyone else struggles.

from grafana_ynh.

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.