Giter Site home page Giter Site logo

Comments (11)

anryko avatar anryko commented on July 18, 2024

Hi @einsiedlerkrebs,
I added initial implementation to the separate branch. It supports regex inputs too.

http://localhost:3000/dashboard/script/getdash.js?host=vagrant-ubuntu-precise-32&metric=disk&instance=sda1
http://localhost:3000/dashboard/script/getdash.js?host=vagrant-ubuntu-precise-32&metric=disk&instance=sd*
http://localhost:3000/dashboard/script/getdash.js?host=vagrant-ubuntu-precise-32&metric=disk&instance=sda[0-3]

Please test and let me know what you think.

from grafana-influx-dashboard.

einsiedlerkrebs avatar einsiedlerkrebs commented on July 18, 2024

Hey anryko,

that was fast. Yes, that is what I thought it should do. Thank you

eins.

from grafana-influx-dashboard.

anryko avatar anryko commented on July 18, 2024

Thanks for the nice idea @einsiedlerkrebs.
Merged to master.

from grafana-influx-dashboard.

einsiedlerkrebs avatar einsiedlerkrebs commented on July 18, 2024

Hey,

i am working on support for IRQ Plugin. The interrupts are numbers. cat /proc/interrupts. The problem is, that i have trouble with the regexing. When i have a interrupt "4" it matches "47" as well. Do you have a hint how to stop the regexing?
thanks.

eins

Another question is if you cant hint some docu-link where i can figure out, to do some math. Might be in your code or maybe grafana? i would like to have a graph for interupts/minute.

and thanks again

from grafana-influx-dashboard.

anryko avatar anryko commented on July 18, 2024

Hi @einsiedlerkrebs,
There should be no regexp match when you don't use any special characters. instance=4 is translated to regexp /^4$/ which should match only 4 and not 47. If you need multiple values but struggle to find exact regexp to match those you can use a list notation, like instance=4,6,13,101.

for the interrupt/minute graph you should use 'apply': 'derivative(1m)' in your plugin graph configuration. Check how it is described in the getdash repository README file (// collectd disk plugin configuration).

from grafana-influx-dashboard.

anryko avatar anryko commented on July 18, 2024

Heh, I think i understood your issue only after posting the answer :). You are actually asking about plugin configuration regexp and not GET instance request... let me think about it and do some tests.

from grafana-influx-dashboard.

einsiedlerkrebs avatar einsiedlerkrebs commented on July 18, 2024

yes. sorry, if i did not clearify this. and now i understood you answer! ;)

and thanks a lot for the apply = derivative(1m). very nice!

from grafana-influx-dashboard.

anryko avatar anryko commented on July 18, 2024

one way I can think of is to use exact regexp match

'graph': {                                                                   
    '/^4$/': { 'apply': 'derivative(1m)' }                          
}

let me know if this helps :).

from grafana-influx-dashboard.

einsiedlerkrebs avatar einsiedlerkrebs commented on July 18, 2024

yes that helps. i thought i tried this.

cool. thanks it works.

I will see, if i can build the plugin in a bit more generic and will send you a pull request.

thanks for your help

from grafana-influx-dashboard.

anryko avatar anryko commented on July 18, 2024

you are welcome

from grafana-influx-dashboard.

einsiedlerkrebs avatar einsiedlerkrebs commented on July 18, 2024

Thanks again. #65

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.