How to Create and Work with Variables | Grafana

แชร์
ฝัง

ความคิดเห็น • 32

  • @RudolfAW
    @RudolfAW 9 หลายเดือนก่อน +11

    I appreciate the videos, but would be nice if some of them would dive deeper. I struggle to this day to use nested Variables and I'm pretty and how to reference Query elements in the dashboard views, like tables and graphs, for example.

    • @Grafana
      @Grafana  9 หลายเดือนก่อน

      How to create and use chained variables

    • @Grafana
      @Grafana  9 หลายเดือนก่อน

      How to create and use Ad Hoc variables

  • @axelholene1326
    @axelholene1326 9 หลายเดือนก่อน +14

    Suggestion: increase the detail of the explanations, dive deeper, stay calmer, reduce the entertainment clutter: waving of hands, the disturbing 80's gaming sounds and the background music.

    • @Grafana
      @Grafana  9 หลายเดือนก่อน

      Thank you for the suggestions @axelholene1326
      We will try to apply them as much as possible :)

    • @garypaduana62
      @garypaduana62 7 หลายเดือนก่อน +1

      @@Grafana native American English speakers please.

    • @erlandodk
      @erlandodk 5 หลายเดือนก่อน

      @@garypaduana62 The CC button is for people like you. Other people don't need it to be in "English (simplified)" to understand it.

    • @garypaduana62
      @garypaduana62 5 หลายเดือนก่อน +1

      @@erlandodk No, native American English presenters are for people like me. Know your audience and who your paying customers are.

    • @erlandodk
      @erlandodk 5 หลายเดือนก่อน +1

      @@garypaduana62 The US is not the only country in the world and americans are not the only paying customers.

  • @aubrya1470
    @aubrya1470 9 หลายเดือนก่อน +4

    There's an issue in one of the example. It should be ${names} not ${name]
    th-cam.com/video/mMUJ3iwIYwc/w-d-xo.htmlfeature=shared&t=343

    • @Grafana
      @Grafana  9 หลายเดือนก่อน

      Thank you so much for the observation @aubrya1470 !
      Indeed you are right, use your variables with $VarName, ${VarName} or ${VarName:} as indicated in the documentation: grafana.com/docs/grafana/latest/dashboards/variables/variable-syntax/
      The video was cut a bit early with the typo made while creating it even as it was corrected right after it was cut out. Do not use [ nor ].
      Thanks! :)

  • @avrl12
    @avrl12 9 หลายเดือนก่อน +1

    Regarding non labeled fields- when choosing adhoc filter as a variable for the dashboard, i don't see them in the list. Only labeled one. Is there a way to have adhoc filters to all fields?

    • @Grafana
      @Grafana  9 หลายเดือนก่อน

      Thanks for the question @avrl12
      At the moment fields have to be labeled because currently there's no way to configure that in Variables settings.
      Please let us know if you have further questions :)

  • @Shaktish-kumar
    @Shaktish-kumar 9 หลายเดือนก่อน +1

    Hello, I'm interested in creating custom variables for my project. Specifically, I'd like to incorporate a date picker as a variable. I'm planning to develop a panel plugin with this feature. Is there a method to integrate it into the type dropdown within the variable section and display the date picker

    • @Grafana
      @Grafana  9 หลายเดือนก่อน +1

      Thank you so much for the comment and question @shakiddoe!
      Currently there is no variable with a date picker, as generally that is worked with the 'time picker dropdown' for the dashboard.
      There are many workarounds to what you are proposing, but writing a plugin is a bit deeper and may require more details.
      We would invite you to come to the Grafana Community Forum, and post about this proposal and details your question.
      A nice section to post it would be specific in the community plugins.
      Here is the link for ease -->
      community.grafana.com/tags/c/support/33/community-plugins
      Please let us know of any other details :)

  • @lovemeekness
    @lovemeekness หลายเดือนก่อน

    i'm trying to use the password element in the business forms to create a login function for the user that will return data that is filtered for that user. can i use variables to store the username as a variable and then use the variable in a query? how will i store, and reference a variable in a query though?

  • @VYPanasonic
    @VYPanasonic 7 หลายเดือนก่อน

    I am using the infinity plugin to hit a URL, that returns a JSON. I would like to extract one of the fields in JSON, and insert it into another URL on a click event. Click event will display a detail table of the parent record.

  •  4 หลายเดือนก่อน

    Should I move to code mode for variable mapping for a DB sourced dashboard ? What I need is simply showing date range filter I use in query builder to end users. When I choose between option I can select a date range, but I would like to leave it to dashboard end user (in public view mode). I can do it by coding, but I'm curious if there's any way to map variables to query builder params.

    •  4 หลายเดือนก่อน

      What I did currently is, used text variables and coded sql part as `CREATEDON BETWEEN '$startDate' AND '$endDate'`. However, it's not showing a proper date picker and I lost declarative query view.

    •  4 หลายเดือนก่อน

      furthermore it's not working in public dashboard. "Template variables are not supported
      This public dashboard may not work since it uses template variables"

  • @mohitparwani4235
    @mohitparwani4235 7 หลายเดือนก่อน

    how to use the ad-hoc filters in a query please tell me
    I'm looking for it for quite a while now but can't find it

  • @franknord4826
    @franknord4826 หลายเดือนก่อน

    These videos go into exactly as much depth as to not be useful at all.
    After the intro I thought, maybe I'll have a good idea how to make easily parameterizable template dashboards for different OSes/exporters, but after watching to the end, I still don't know if that's even possible… :/

    • @Grafana
      @Grafana  หลายเดือนก่อน +1

      @@franknord4826 Thanks for the feedback. We’re working on creating a more detailed video. Stay tuned! - Belyn (social media manager)

    • @franknord4826
      @franknord4826 หลายเดือนก่อน

      @@Grafana No worries, I'm already amazed by how much the Grafana team manages to juggle. Currently I'm just lacking a good source of information that is somewhere between the brevity of these videos and the docs that can be pretty hard to parse at times.

  • @erlandodk
    @erlandodk 5 หลายเดือนก่อน +1

    Stop the zoom-cuts! It's almost giving me a seizure. It's unbelievably distracting!

  • @garypaduana62
    @garypaduana62 7 หลายเดือนก่อน

    Does anybody in the US use this software?

  • @azy22222
    @azy22222 7 หลายเดือนก่อน +1

    This is the first functionality I've attempted. Not only is this video useless and too brief but the UI/UX of your tool is horrid. It's been downhill since this video.

    • @Grafana
      @Grafana  5 หลายเดือนก่อน

      Thanks for your feedback. Which specific sections would you prefer to have more of a deep-dive on?

  • @m19mesoto
    @m19mesoto หลายเดือนก่อน

    not very useful..

  • @MineCrafterCity
    @MineCrafterCity 8 หลายเดือนก่อน +1

    This platform is pretty garbage imho.

  • @mestre169able
    @mestre169able 4 หลายเดือนก่อน

    Pretty useless.