当前位置:网站首页>Grafana 9 is officially released, which is easier to use and more cool!

Grafana 9 is officially released, which is easier to use and more cool!

2022-06-22 18:06:00 Program ape DD_

Produce | OSC The open source community (ID:oschina2013)

Grafana 9.0 The main focus of is improvement Grafana User experience , Make observability and data visualization easier to use and more accessible . Whether through Prometheus and Loki The visual query builder is also a panel and dashboard search function ,Grafana 9.0 Have introduced an updated workflow , Make finding and investigating data easier and more intuitive .

Learn more about all the latest features , You can join in GrafanaCONline Held Grafana 9.0 meeting :https://grafana.com/go/grafanaconline/2022/grafana-9-deep-dive/?pg=blog&plcmt=body-txt

a2fc9d1a11580824c8bffb77225c9e2a.png
picture

Visual Prometheus Query builder

c15aff206f903b7485ab4d328ca0979f.png
picture

Even though PromQL Is a powerful query language , But when it comes to writing queries , It is not the simplest , It is not easy to understand them . about Prometheus beginners , Starting to write queries can be daunting .

Prometheus The new query builder is built to solve this problem . stay Grafana 9.0 in , You will be in Explore See a new visual query builder interface in , Allow anyone to write 、 Edit and understand the role of a query .

There are many ways to write queries

You are already familiar with Explore The interface now adds a switch field , You can select in text editing mode (Code) Or visual generator mode (Builder) Written in PromQL Inquire about . When you choose Builder Mode time , A new visual interface allows you to select the indicators of interest through the multi word search drop-down menu to make your query . You can switch between these modes , Keep your text changes as well .

Generate your query with metrics and tag filters

This new Query Builder allows you to search and select an indicator through multi word search . You can start by selecting an indicator or a tag filter .

Perform mathematical operations on the indicators

Operations Fields are used to pass through various functions 、 Aggregation and binary operations perform mathematical operations on metrics of interest . You can go through + Operation Buttons layer these operations . because Operations Is presented in the order of execution , Not in reverse order in the text query , This makes it easier to read and edit queries .

Continuous learning through in app guidelines

If you are PromQL novice , You can use the third mode , namely Explain, Use the in app guide to learn about the queries that have been written . You can Builder Patterns and Explain Switch between modes , Keep the query at the same time , To learn more about the queried indicators and the operations performed .

474ee34ae51d9e39576010c799c518b7.png
picture

Upper figure : Switch to Explain Pattern get in app guide to understand queries .

eb92af50abd2c9d32327b2111729f852.png
picture

Upper figure : View the detailed description of what the different parameters of the query represent .

The new visualization generator is also called "hints" The advice of , Will provide timely suggestions for correct operation

49b75712eb09e030ac55825bace276ac.png
picture

Upper figure :Hints Guide you to select the most suitable operation for the index to be queried .

Visual Grafana Loki Query builder

stay Grafana 9.0 in , To write LogQL The query is also assisted by a visual query generation interface . in many ways LogQL Than PromQL More complicated , There is more grammar to remember . The new query builder will help you write and understand Loki Inquire about , Without having to remember any grammar .

As shown in the figure below Loki Query builder , You can add and edit tag filters 、 Parsers and functions, etc .Loki The query builder supports the Prometheus All the functions of the query builder , Include Explain Pattern , And in Code Patterns and Builder The function of switching between modes .

1cf9b7d027eebd6dc636a759006024f3.png
picture

Explore-to-dashboard Workflow

although Grafana It always supports moving from the dashboard to Explore Without losing the function of context , But not vice versa .

Grafana 9.0 Announced a new Explore Workflow to dashboard , Allow you to go directly from Explore Mode to create a panel or dashboard . When a complex query works , You no longer have to painstakingly copy it or rewrite it to a new dashboard . Instead, simply indicate Grafana, By clicking a button ( See the picture below ), You can directly from Explore Create a new panel / Dashboard or add to an existing panel .

d9880287a16031715741831a04799b07.png
picture

new heatmap panel

New and revised heatmap The panel has undergone architectural changes , Make it have higher performance ( Can be more than 20 Time series are presented on 10000 data points ), The speed has also increased by several orders of magnitude . In addition to performance ,heatmap The resolution on the panel is also higher , You can now customize and fine control the chromatogram .

e8921c2e64bf7909526cebd4a3ae0ca2.png
picture

Command Panel

The command panel is a great productivity boost for those who use keyboard shortcuts . Use cmd+K(macOS) or ctrl+K(Linux/Windows), You can call up a command panel , Make navigation and dashboard search easier . According to what you're doing Grafana Location in the user interface , You can run a query quickly 、 Switch to split view 、 Navigate between dashboards , Or change the theme preference .

9b152727f3dd01b5f9228cfe937805f6.png
picture

Panel search

If you manage multiple dashboards and many different panels under each dashboard , Searching for panel titles saves time scrolling through dashboards or switching between dashboards to find the right panel . With the latest updates to the search function , You can now search the panel by title .

ff907b580722a61762b32ea2d415f603.png
picture

In the instrument cluster Trace panel

stay Grafana 9.0 in , You can now add... In the dashboard Trace panel , adopt Trace View to visualize , Not in Explore View them in mode . This feature is currently in Grafana 9.0 In the testing phase .

Dashboard preview

This beta feature provides a summary overview of all available dashboards , When the name is insufficient , It can help you quickly find the dashboard you need .

7cab76f8802fc5448c267f7b0f23bd50.png
picture

New navigation

Expand the navigation bar , In order to better understand Grafana And the integration you installed .Grafana 9 A method will also be introduced , Let you fill your dashboard with stars , And easily access them from the navigation menu . You can open savedItems Function to select access to the marked dashboard .

Grafana Alerting Improvement

stay v8.0 in ,Grafana A new alarm user experience is introduced , To simplify the process of spanning multiple data sources and Grafana Deployed alarm creation and management . stay Grafana 9.0 in , This is now the default setting , With this change ,Grafana It also further improves the alarm experience —— especially UI And documentation .

download

link :https://grafana.com/grafana/download

More details can be found at :https://github.com/grafana/grafana/releases/tag/v9.0.0

We have created a high-quality technical exchange group , With good people , I will be excellent myself , hurriedly Click Add group , Enjoy growing up together . in addition , If you want to change jobs recently , Years ago, I spent 2 A wave of large factory classics were collected in a week , Those who are ready to change jobs after the festival can Click here to get

Recommended reading

··································

Hello , I'm a procedural ape DD,10 Old driver developed in 、 Alibaba cloud MVP、 Tencent cloud TVP、 I have published books and started a business 、 State-owned enterprises 4 In the Internet 6 year . From ordinary developers to architects 、 Then to the partner . Come all the way , My deepest feeling is that I must keep learning and pay attention to the frontier . As long as you can hold on , Think more 、 Don't complain 、 Do it frequently , It's easy to overtake on a curve ! therefore , Don't ask me what I'm doing now, whether it's in time . If you are optimistic about one thing , It must be persistence to see hope , Instead of sticking to it when you see hope . believe me , Just stick to it , You must be better than now ! If you don't have any direction , You can pay attention to me first , Some cutting-edge information is often shared here , Help you accumulate the capital to overtake on the curve .

Click to collect 2022 newest 10000T Learning materials

原网站

版权声明
本文为[Program ape DD_]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/173/202206221629292754.html