Giter Site home page Giter Site logo

Comments (1)

anryko avatar anryko commented on July 17, 2024

Hi,
By collector I mean collectd. InfluxDB I consider to be a storage. Getdash has hardcoded queries in influxdb SQL so it is not storage independent.

However, what getdash does is really straightforward. It gets all series from the sotrage and parses them according to plugins 'graph' configuration. Afterwards it generates Grafana dashboard JSON and returns it.

Here is how series from influxdb looks on the input:

$ curl -sG 'http://localhost:8086/query?pretty=true' --data-urlencode "db=collectd" --data-urlencode "q=SHOW SERIE WHERE host = 'vagrant-ubuntu-precise-64';" | grep disk
                            "disk_read,host=vagrant-ubuntu-precise-64,instance=sda,type=disk_merged"
                            "disk_read,host=vagrant-ubuntu-precise-64,instance=sda,type=disk_octets"
                            "disk_read,host=vagrant-ubuntu-precise-64,instance=sda,type=disk_ops"
                            "disk_read,host=vagrant-ubuntu-precise-64,instance=sda,type=disk_time"
                            "disk_read,host=vagrant-ubuntu-precise-64,instance=sda1,type=disk_merged"
                            "disk_read,host=vagrant-ubuntu-precise-64,instance=sda1,type=disk_octets"
                            "disk_read,host=vagrant-ubuntu-precise-64,instance=sda1,type=disk_ops"
                            "disk_read,host=vagrant-ubuntu-precise-64,instance=sda1,type=disk_time"
                            "disk_write,host=vagrant-ubuntu-precise-64,instance=sda,type=disk_merged"
                            "disk_write,host=vagrant-ubuntu-precise-64,instance=sda,type=disk_octets"
                            "disk_write,host=vagrant-ubuntu-precise-64,instance=sda,type=disk_ops"
                            "disk_write,host=vagrant-ubuntu-precise-64,instance=sda,type=disk_time"
                            "disk_write,host=vagrant-ubuntu-precise-64,instance=sda1,type=disk_merged"
                            "disk_write,host=vagrant-ubuntu-precise-64,instance=sda1,type=disk_octets"
                            "disk_write,host=vagrant-ubuntu-precise-64,instance=sda1,type=disk_ops"
                            "disk_write,host=vagrant-ubuntu-precise-64,instance=sda1,type=disk_time"

So if graphite storage can return similar series format it shouldn't be very complicated to adapt existing code for graphite. Because of differences in query language which is tied in with plugin configuration parameters, plugin configs will probably be a bit different...

Unfortunately I'm not familiar with graphite and would have to spend some time investigating it to have a more concrete answer :). This all is just my thought flow in writing...

Short answer is no, it will not work with graphite storage as a series backend.

from grafana-influx-dashboard.

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.