In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-17 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
It is believed that many inexperienced people have no idea about how to use Global Variables in Grafana. Therefore, this article summarizes the causes and solutions of the problem. Through this article, I hope you can solve this problem.
Time range variable
The scope of filtering time in Grafana can be filtered directly in the upper right corner, but we may need to use the start and end times of the current page when we implement a requirement. Then you can use the time range variable.
& _ _ from, & _ _ to is used to obtain the time range of the current Dashboard.
For example, when drilling for analysis, you need to get the current time that corresponds to the time of the jump page. You can directly add from=& _ _ from&to=& _ _ to to the connection to achieve time unification.
Or directly based on the chart presentation can be directly used in the chart & _ _ from & _ _ to.
Interval variable
In the chart display, we choose the maximum number of people online per minute. There are 60 points in an hour. But if you want to show for three days, you need 4320 points. Maybe more in seven days.
Grouping through large time intervals can improve query efficiency, and it cannot be shown on the chart if there are more points than on the chart. For example, we might want to be able to group by hour in 7 days. Then we can use the & _ _ interval and * * & _ _ interval_ms** variables.
& _ _ interval has a unit of time, such as 2m, 1h, 1d, etc.
TimeFilter
TimeFilter implements the generation of time expressions. For example, we can see the variable and the generated results when we use SQL directly.
After reading the above, have you mastered how to use Global Variables in Grafana? If you want to learn more skills or want to know more about it, you are welcome to follow the industry information channel, thank you for reading!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.