Data source variable (DataSourceVariable) - Defines the list of data sources of a given type. Custom variable (CustomVariable) - Defines variable options manually, using a comma-separated list. Constant variable (ConstantVariable) - Defines a constant value variable. Text box variable (TextBoxVar...
| Data source | 数据源列表 | 多数据源切换 | | Global | 全局变量 | 跨仪表盘共享 |## 三、创建变量实战演示### 3.1 基础创建流程1.进入仪表盘设置 → Variables2.点击"Add variable"按钮3.配置关键参数:```plaintext Name: server Type: Query Data source: Prometheus Query: label_values(up, inst...
Select Add to add the variable to the dashboard.Adding a custom variable Use a custom variable for a value that does not change, such as a number or a string.For example, if you have server names or Region names that never change, then you might want to create them as custom variable...
UPDATE 03/2021: Message query now uses a text box variable instead of ad-hoc query, which stopped working with Grafana 7.x UPDATE 09/2020: Rebuilt the dashboard to take advantage of the new table panel possibilities with Grafana 7.x, e.g. dedicated severity colors. The Syslog dashboard ...
Similar to text, variables also works for numeric fields. In the below example, ${age} is a text box variable where it accepts numbers and then compares against the numeric field in the table. select * from "users" where "age" > ${age} --- wil be translated into select * from "us...
It is used to monitor Linux, MySQL, Redis, Go processes, and more, for example, once the agent has been installed, and like magic, it shows preconfigured dashboards and alerts right out of the box. Clients that are already usingPrometheus(which we will have a look at later, too),Graph...
https://grafana.com/grafana/download?pg=get&plcmt=selfmanaged-box1-cta1#grafana启停/状态/加入开机启动systemctl start grafana-server.service systemctl stop grafana-server.service systemctl status grafana-server.service systemctlenablegrafana-server.service ...
For example, given a data source variable (datasourceVariable), the following string: ``` ${datasourceVariable} Name: ${datasourceVariable:text} UID: ${datasourceVariable:raw} ``` was previously interpolated as: ``` grafanacloud-k8smonitoring-prom Name: grafanacloud...
Click New variable. Configure the parameters for the template variable. Then, click Add. The following table describes the parameters. Parameter Description Name The name of the template variable. Example: myinterval. If you use a template variable in a query criteria, you must add two doll...
In 11.6, the variable name is interpolated, so the alias ends up being whatever the value of the variable is with the math equation. So for the above example, if var1 is 10, the alias is "10 - 1" When you build variable overrides on these fields, the field name breaks whenever the...