Grafana : Dashboard Variables

Поділитися
Вставка
  • Опубліковано 27 лип 2024
  • Channel Membership : / @sbcode
    Documentation : sbcode.net/grafana/dashboard-...
    Coupon Codes : sbcode.net/coupons
    All about Grafana Dashboard Variables
    0:00 Dashboard Variables
    1:10 New Dashboard
    1:35 Interval Variable
    3:00 Custom Variable
    4:10 Data Source Variable
    5:50 MySQL Query Variable
    6:40 Loki Query Variable
    8:30 Prometheus Query Variable
    11:10 InfluxDB Query Variable
    13:15 Zabbix Query Variable
    14:00 Elasticsearch Query Variable
    #grafana
    #grafanaCourse
    #grafanaTutorial

КОМЕНТАРІ • 33

  • @waleedakbar4606
    @waleedakbar4606 2 роки тому +2

    Thank you for such a detail demonstration

  • @christina_cl
    @christina_cl Рік тому +2

    That was very helpful. Thank you for this clear and concise explanation.

  • @weixing4520
    @weixing4520 Рік тому +1

    Excellent !! Thank you

  • @ypaut
    @ypaut 8 місяців тому +1

    thanks! was looking for the datasource type

  • @parag-kumar
    @parag-kumar 10 місяців тому +1

    Thank you very much ❤

  • @juanpabloyela86
    @juanpabloyela86 2 роки тому +1

    thanks a lot!!!

  • @user-ff4fe1bq8t
    @user-ff4fe1bq8t Рік тому +1

    thank you

  • @PatsevAnton
    @PatsevAnton Рік тому

    Thanks! How trim variable?

  • @MrPigeonfeatures
    @MrPigeonfeatures 2 роки тому

    How would you go about creating variables via JSON api by Marcus Olsson? Have you had any experiance with this?

  • @lavanaygupta9791
    @lavanaygupta9791 2 роки тому

    Hey..could you please tell me how to set up a namespace variable . I am creating a Jenkins dashboard !

  • @grover-
    @grover- Рік тому

    How do you then use those variables in your panels?

  • @sateeshkumar1145
    @sateeshkumar1145 Рік тому

    Great video thank you
    I want to include time stamp in the email of resolved alert. How can I do that. Please your response will be greatly appreciated

  • @abrahamlugonzo3419
    @abrahamlugonzo3419 2 роки тому

    now if I just make out an example using your dashboard. so you have many panels displaying data in graphs. Now assume that one of the dropdowns variable is only related to one panel. and I dont want it to be positioned at the top of all the panels exisitng in the dashboard. is there a way I can display that dropdown inside one panel since its only used in one panel .

  • @senjeevg4044
    @senjeevg4044 7 місяців тому

    For multiple dropdown selection option ,i have used this variable in the log query ,but not reflected the result, any idea about that?

  • @user-vt6qm2nh9v
    @user-vt6qm2nh9v 2 місяці тому

    hi @SBCODE thanks for the nice description. I have a question. Let's say I have a column name as user_id in my users table, there are other columns also. now, I want to create a variable for this column. so now what i want is whenever I open the grafana dashboard then it should load all data not a value for specific userid. After that in that placeholder I should have an option to provide the value of that variable named as user_id and the value of it are coming from resources table

  • @user-tx2sc4ft7e
    @user-tx2sc4ft7e Рік тому

    can you share this table graph json plese?

  • @kirangeorge8
    @kirangeorge8 Місяць тому

    How do you capitalize a variable?

  • @jerrydiaz5996
    @jerrydiaz5996 2 роки тому

    Hey what grafana versions are you using because it isn't letting me use the label_values(job) you used in yours

    • @sbcode
      @sbcode  2 роки тому

      This video is Grafana 8. What data source and version are you using?

  • @user-mt2if1ht8n
    @user-mt2if1ht8n 3 місяці тому

    gold!

  • @tomaszdrabczyk8606
    @tomaszdrabczyk8606 2 роки тому

    please for example how to use with prometheus metrics

    • @sbcode
      @sbcode  2 роки тому

      see @8:30 on how you might start solving your bespoke problem.

  • @megabucket1955
    @megabucket1955 Рік тому

    Can we write query variable for elastic search data and get dropdown ?

    • @sbcode
      @sbcode  Рік тому +1

      Some examples :
      Source : {"find": "terms", "field": "@source"}
      Host : {"find": "terms", "field": "@hostname", "query": "@source:$source"}
      See play.grafana.org/d/VaeQyXDMz/elastic-gauge-labels?orgId=1

  • @anishpk123
    @anishpk123 10 місяців тому +1

    Can we make the same selection feature at panel level instead of dashboard level

    • @sbcode
      @sbcode  10 місяців тому +1

      I haven’t seen it being done. The variable is available for whole dashboard

  • @premkumar.g6510
    @premkumar.g6510 6 місяців тому

    Latest influxdb this query option will not work from udemy i will follow same steps but influx is new version.

    • @sbcode
      @sbcode  6 місяців тому

      Thanks for letting me know. If you have a suggestion to fix, I can update my docs.

  • @kusumsharma8804
    @kusumsharma8804 2 роки тому

    how i can use variable to display current date

    • @sbcode
      @sbcode  2 роки тому +1

      ${__from:date:YYYY-MM} and ${__from:date:YYYY-MM}
      See grafana.com/docs/grafana/latest/variables/variable-types/global-variables/#__from-and-__to

    • @ajaypabba32
      @ajaypabba32 Рік тому

      Where can we setup that under variables tab?

  • @sandeepdubey19922
    @sandeepdubey19922 Рік тому

    How to add latency graph

    • @sbcode
      @sbcode  Рік тому

      add some more detail to your question, and then type it into your favourite search engine, or chatgpt