添加链接 注册    登录
link管理
链接快照平台
  • 输入网页链接,自动生成快照
  • 标签化管理网页链接
相关文章推荐
奔放的熊猫  ·  TiDB Dashboard 概况页面 | ...·  2 周前    · 
淡定的葡萄  ·  GitHub - ...·  5 天前    · 
威武的帽子  ·  Monitoring containers ...·  5 天前    · 
帅气的稀饭  ·  Docker + InfluxDB + ...·  5 天前    · 
爱笑的紫菜汤  ·  Métricas cAdvisor no ...·  3 天前    · 
含蓄的斑马  ·  断电延时型时间继电器工作原理和典型电路-百合 ...·  1 月前    · 
任性的弓箭  ·  中森青子 - 萌娘百科 萬物皆可萌的百科全書·  2 月前    · 
捣蛋的松球  ·  Stata ...·  1 年前    · 
仗义的眼镜  ·  TVアニメ『彼女、お借りします』第3期公式サイト·  2 年前    · 
大方的手电筒  ·  2020东京奥运会·  2 年前    · 
link管理  ›  Query and transform data | Grafana documentation
data transform prometheus grafana
https://grafana.com/docs/grafana/latest/panels-visualizations/query-transform-data/
没读研的大葱
4 周前
Create free account Contact us

Products

Grafana Cloud

Monitor, analyze, and act faster with AI-powered observability.

Grafana Cloud
Grafana Cloud overview

LGTM+ Stack

Grafana Cloud Logs

Logs

powered by Grafana Loki

Grafana

Grafana

for visualization

Grafana Cloud Traces

Traces

powered by Grafana Tempo

Grafana Cloud Metrics

Metrics

powered by Grafana Mimir and Prometheus

Key Capabilities

AI/ML

AI/ML insights

Identify anomalies and reduce toil

Grafana Cloud Asserts

Contextual root cause analysis

Automated anomaly correlation

Grafana SLO

SLO management

Create SLOs and error budget alerts

Grafana Alerting

Alerting

Trigger alerts from any data source

Plugins

Plugins

Connect Grafana to data sources, apps, and more

Observability Solutions

Application Observability

Application Observability

Monitor application performance

Infrastructure Observability

Infrastructure observability

Ensure infrastructure health and performance

Testing

Grafana Cloud k6

Performance testing

Powered by Grafana k6

Synthetic Monitoring

Synthetic Monitoring

powered by Grafana k6

IRM

Incident

Incident response

Routine task automation for incidents

OnCall

On-call management

Flexible on-call management

Open Source

Grafana Loki

Multi-tenant log aggregation system

Grafana

Query, visualize, and alert on data

Grafana Tempo

High-scale distributed tracing backend

Grafana Mimir

Scalable and performant metrics backend

Grafana Pyroscope

Scalable continuous profiling backend

Grafana Beyla

eBPF auto-instrumentation

Grafana Faro

Frontend application observability web SDK

Grafana Alloy

OpenTelemetry Collector distribution with Prometheus pipelines

Grafana k6

Load testing for engineering teams

Prometheus

Monitor Kubernetes and cloud native

OpenTelemetry

Instrument and collect telemetry data

Graphite

Scalable monitoring for time series data

All

Community resources

Dashboard templates

Try out and share prebuilt visualizations

Prometheus exporters

Get your metrics into Prometheus quickly

end-to-end solutions

Opinionated solutions that help you get there easier and faster

Kubernetes Monitoring

Get K8s health, performance, and cost monitoring from cluster to container

Application Observability

Monitor application performance

Frontend Observability

Gain real user monitoring insights

Incident Response & Management

Detect and respond to incidents with a simplified workflow

All monitoring and visualization solutions

monitor infrastructure

Out-of-the-box KPIs, dashboards, and alerts for observability

linux server logo
Linux
windows logo
Windows
docker logo
Docker
postgresql logo
Postgres
mysql logo
MySQL
aws logo
AWS
kafka logo
Kafka
jenkins logo
Jenkins
rabbitmq logo
RabbitMQ
mongodb logo
MongoDB
microsoft azure observability logo
Microsoft Azure
google cloud observability with grafana cloud logo
Google Cloud
All monitoring solutions

visualize any data

Instantly connect all your data sources to Grafana

mongodb logo
MongoDB
appdynamics logo
AppDynamics
oracle database logo
Oracle
gitlab logo
GitLab
jira logo
Jira
salesforce logo
Salesforce
splunk logo
Splunk
datadog logo
Datadog
new relic logo
New Relic
snowflake logo
Snowflake
All visualization solutions

Learn

Community and events

Events

Upcoming in-person and virtual events

ObservabilityCON 2025 (7-9 Oct)

Our flagship observability event

GrafanaCON 2025

Our annual OSS community conference

ObservabilityCON on the Road

Our observability conference on the road

Community

Join the Grafana community

Community forums

Ask the community for help

Resources

Blog

News, releases, cool stories, and more

Observability survey report 2025

Industry insights on the state of observability

Benefits of Observability

New research, reports, and insights

Success stories

By use case, product, and industry

How-to

Documentation

All the docs

Webinars and videos

Demos, webinars, and feature tours

Tutorials

Step-by-step guides

Workshops

Free, in-person or online

Learning Journeys

Expert guidance for mastering our platform

Professional Services

Expert guidance and training

Docs
Pricing

Help build the future of open source observability software Open positions

Check out the open source projects we support Downloads

Sign in

Grafana Cloud

Monitor, analyze, and act faster with AI-powered observability.

Grafana Cloud
Grafana Cloud overview

LGTM+ Stack

Grafana Cloud Logs

Logs

Grafana

Grafana

Grafana Cloud Traces

Traces

Grafana Cloud Metrics

Metrics

Key Capabilities

AI/ML

AI/ML insights

Grafana Cloud Asserts

Contextual root cause analysis

Grafana SLO

SLO management

Grafana Alerting

Alerting

Plugins

Plugins

Observability Solutions

Application Observability

Application Observability

Infrastructure Observability

Infrastructure observability

Testing

Grafana Cloud k6

Performance testing

Synthetic Monitoring

Synthetic Monitoring

IRM

Incident

Incident response

OnCall

On-call management

The actually useful free plan

Grafana Cloud Free Tier
check

10k series Prometheus metrics

check

50GB logs, 50GB traces, 50GB profiles

check

500VUk k6 testing

check

20+ Enterprise data source plugins

check

100+ pre-built solutions

Create account
Grafana Cloud Logs

Grafana Loki

Multi-tenant log aggregation system

Grafana

Grafana

Query, visualize, and alert on data

Grafana Cloud Traces

Grafana Tempo

High-scale distributed tracing backend

Grafana Cloud Metrics

Grafana Mimir

Scalable and performant metrics backend

Grafana Cloud Profiles

Grafana Pyroscope

Scalable continuous profiling backend

Grafana Beyla

eBPF auto-instrumentation

Grafana Faro

Grafana Faro

Frontend application observability web SDK

Grafana Alloy

Grafana Alloy

OpenTelemetry Collector distribution with Prometheus pipelines

Grafana Cloud k6

Grafana k6

Load testing for engineering teams

Prometheus

Prometheus

Monitor Kubernetes and cloud native

OpenTelemetry

OpenTelemetry

Instrument and collect telemetry data

Graphite

Graphite

Scalable monitoring for time series data

All

Community resources

Dashboard templates
Try out and share prebuilt visualizations
Prometheus exporters
Get your metrics into Prometheus quickly

end-to-end solutions

Opinionated solutions that help you get there easier and faster

Kubernetes Monitoring

Kubernetes Monitoring

Get K8s health, performance, and cost monitoring from cluster to container

Application Observability

Application Observability

Monitor application performance

Frontend Observability

Frontend Observability

Gain real user monitoring insights

Incident Response & Management

Incident Response & Management

Detect and respond to incidents with a simplified workflow

monitor infrastructure

Out-of-the-box KPIs, dashboards, and alerts for observability

linux server logo Linux
windows logo Windows
docker logo Docker
postgresql logo Postgres
mysql logo MySQL
aws logo Kafka
jenkins logo Jenkins
rabbitmq logo RabbitMQ
mongodb logo MongoDB
microsoft azure observability logo Microsoft Azure
google cloud observability with grafana cloud logo Google Cloud

visualize any data

Instantly connect all your data sources to Grafana

mongodb logo MongoDB
appdynamics logo AppDynamics
oracle database logo Oracle
gitlab logo GitLab
jira logo Salesforce
splunk logo Splunk
datadog logo Datadog
new relic logo New Relic
snowflake logo Snowflake
All monitoring and visualization solutions

Community and events

Events

ObservabilityCON 2025 (7-9 Oct)

GrafanaCON 2025

ObservabilityCON on the Road

Community

Community forums

Resources

Blog

Observability survey report 2025

Benefits of Observability

Success stories

How-to

Documentation

Webinars and videos

Tutorials

Workshops

Learning Journeys

Professional Services

Featured webinar

Getting started with grafana LGTM stack

Getting started with managing your metrics, logs, and traces using Grafana

Learn how to unify, correlate, and visualize data with dashboards using Grafana.

Learn more →
Site search Ask Grot AI
Technical documentation Plugin catalog
Choose a product
Viewing: v12.1 (latest) Find another version
  • Grafana documentation
    • What's new in Grafana v12.1
    • What's new in Grafana v12.0
    • What's new in Grafana v11.6
    • What's new in Grafana v11.5
    • What's new in Grafana v11.4
    • What's new in Grafana v11.3
    • What's new in Grafana v11.2
    • What's new in Grafana v11.1
    • What's new in Grafana v11.0
    • What's new in Grafana v10.4
    • What's new in Grafana v10.3
    • What's new in Grafana v10.2
    • What's new in Grafana v10.1
    • What's new in Grafana v10.0
    • What's new in Grafana v9.5
    • What's new in Grafana v9.4
    • What's new in Grafana v9.3
    • What's new in Grafana v9.2
    • Breaking changes in Grafana v11.0
    • Breaking changes in Grafana v10.3
    • Breaking changes in Grafana v10.0
    • Upgrade strategies
    • Upgrade to v12.1
    • Upgrade to v12.0
    • Upgrade to v11.6
    • Upgrade to v11.5
    • Upgrade to v11.4
    • Upgrade to v11.3
    • Upgrade to v11.2
    • Upgrade to v11.1
    • Upgrade to v11.0
    • Upgrade to v10.4
    • Upgrade to v10.3
    • Upgrade to v10.2
    • Upgrade to v10.1
    • Upgrade to v10.0
    • Upgrade to v9.5
    • Upgrade to v9.4
    • Upgrade to v9.3
    • Upgrade to v9.2
    • Upgrade to v9.1
    • Upgrade to v9.0
    • Upgrade to v8.5
    • Upgrade to v8.4
    • Upgrade to v8.3
    • Upgrade to v8.2
    • Upgrade to v8.1
    • Upgrade to v8.0
    • Grafana Enterprise
    • Grafana Cloud
    • What is Prometheus?
    • Dashboard overview
    • Introduction to time series
    • Time series dimensions
    • Histograms and heatmaps
    • Exemplars
    • Glossary
    • Build your first dashboard
    • Get started with Grafana and Prometheus
    • Get started with Grafana and InfluxDB
    • Get started with Grafana and MS SQL Server
      • Debian or Ubuntu
      • RHEL or Fedora
      • SUSE or openSUSE
      • Grafana Docker image
      • Grafana on Kubernetes
      • Grafana on Helm Charts
      • macOS
      • Windows
      • Configure Grafana Enterprise
      • Configure feature toggles
      • Configure profiling and tracing
      • Configure custom branding
      • Settings updates at runtime
      • Configure data source proxy
    • Start Grafana
    • Sign in to Grafana
      • Plan your IAM integration strategy
        • Basic auth
        • Passwordless
        • Anonymous access
        • LDAP
        • LDAP user interface
        • Enhanced LDAP
          • SAML user interface
          • SAML configuration options
          • Configure SAML signing and encryption
          • Configure Role and Team sync for SAML
          • Configure Organisation mapping for SAML
          • Configure SAML single logout
          • Configure SAML with Entra ID
          • Configure SAML with Okta
          • Troubleshooting
        • Generic OAuth
        • Azure AD/Entra ID OAuth
        • GitHub OAuth
        • GitLab OAuth
        • Google OAuth
        • Grafana Cloud OAuth2
        • Keycloak OAuth2
        • Multiple providers with Keycloak
        • Okta OIDC
        • Auth proxy
        • JWT
        • Manage users and teams with SCIM
        • Configure SCIM with Azure AD
        • Configure SCIM with Okta
        • Encrypt database secrets using Google Cloud KMS
        • Encrypt database secrets using Hashicorp Vault
        • Encrypt database secrets using AWS KMS
        • Encrypt database secrets using Azure Key Vault
        • Integrate Grafana with Hashicorp Vault
      • Audit a Grafana instance
      • Export logs of usage insights
      • Configure secret scanning
      • Configure Team Sync
      • Configure request security
      • Configure security hardening
    • Set up Grafana monitoring
    • Set up HA
    • Set up HTTPS
      • Monitor the image renderer
      • Troubleshooting
    • Set up Grafana Live
    • Configure a Docker image
    • Back up Grafana
        • Configure LBAC for data sources for Loki
        • Configure LBAC for data sources for Prometheus
        • Create LBAC for data sources rules for a supported data source
      • Configure Grafana Teams
      • Administer Grafana Teams
    • Manage organizations
        • Assign or remove Grafana server administrator privileges
        • Add or remove a user in an organization
        • Change a user's organization permissions
      • Manage user preferences
      • Manage users in an organization
      • Manage dashboard permissions
    • Grafana Advisor
    • Recorded queries
        • Plan your RBAC rollout strategy
        • Configure RBAC
        • Assign RBAC roles
        • Manage RBAC roles
        • Provisioning RBAC with Grafana
        • Provisioning RBAC with Terraform
        • RBAC role definitions
        • RBAC permissions, actions, and scopes
        • RBAC for app plugins
        • Troubleshooting RBAC
    • View server statistics and license
        • Activate a Grafana Enterprise license from AWS Marketplace on EKS
        • Activate a Grafana Enterprise license from AWS Marketplace on ECS
        • Activate a Grafana Enterprise license from AWS on an instance deployed outside of AWS
        • Manage your Grafana Enterprise license in AWS Marketplace
        • Transfer your AWS Marketplace Grafana Enterprise license
    • Organization preferences
      • Types of plugins
      • Install a plugin
      • Plugin signatures
      • Customize navigation placement of plugin pages
      • Plugin backend communication
      • Isolate plugin code with the Plugin Frontend Sandbox
    • Provision Grafana
      • Migrate API keys
      • Correlation
      • Permissions
      • Add permissions
      • Create a new correlation
      • Use variables and transformations in a correlation
      • Use correlations in visualizations
    • Announcement banner
      • Manually migrate to Grafana Cloud
      • Migrate to Grafana Cloud using the Grafana Cloud Migration Assistant
    • Alertmanager
      • AWS authentication
      • Query editor
      • Template variables
      • Query editor
      • Template variables
      • Configure Elasticsearch
      • Query editor
      • Template variables
      • Authentication
      • Query editor
      • Template variables
      • Configure
      • Query editor
      • Template variables
      • Configure the InfluxDB data source
      • Query editor
      • Template variables
      • Configure Loki
      • Query editor
      • Template variables
    • Jaeger
      • Configure
      • Query editor
      • Template variables
      • Configure the MySQL data source
      • MySQL query editor
    • OpenTSDB
    • Parca
      • Configure
      • Query editor
      • Configure the Prometheus data source
      • Prometheus query editor
      • Prometheus template variables
      • Configure Pyroscope
      • How profiling and tracing work together
      • Configure traces to profiles
      • Query profile data
      • Configure Tempo
      • Best practices
        • Link to a trace ID
        • Upload JSON trace file
        • Trace correlations
        • TraceQL query structure
        • Search traces
        • Write TraceQL queries
      • Service Graph and Service Graph view
      • Span filters
    • TestData
    • Zipkin
    • Use dashboards
      • Create a dashboard
      • Import dashboards
      • Modify dashboard settings
      • Manage dashboard links
      • Dashboard URL variables
      • Manage library panels
      • Manage version history
      • Annotate visualizations
      • JSON model
      • Best practices
    • Manage dashboards
    • Search dashboards
    • Manage playlists
      • Settings
      • Shared dashboards
      • Add variables
      • Inspect variables
      • Variable syntax
    • Assess dashboard usage
    • Troubleshoot dashboards
      • Time series
      • Alert list
      • Annotations list
      • Bar chart
      • Bar gauge
      • Candlestick
      • Canvas
      • Dashboard list
      • Datagrid
      • Flame graph
      • Gauge
      • Geomap
      • Heatmap
      • Histogram
      • Logs
      • News
      • Node graph
      • Pie chart
      • Stat
      • State timeline
      • Status history
      • Table
      • Text
      • Traces
      • Trend
      • XY chart
    • Panel overview
    • Panel editor
    • The panel inspect view
      • Write expression queries
      • SQL expressions
      • Share query results
      • Transform data
      • Troubleshoot queries
      • Calculation types
    • Configure panel options
    • Configure standard options
    • Configure a legend
    • Configure tooltips
    • Configure data links and actions
    • Configure value mappings
    • Configure thresholds
    • Configure field overrides
  • Search
    • Get started with Explore
    • Query management in Explore
    • Query inspector in Explore
    • Correlations Editor in Explore
    • Logs in Explore
    • Traces in Explore
        • Access or Install
        • Get started
        • Labels and Fields
        • Log patterns
        • Viewing JSON logs
        • Sorting and ordering
        • Troubleshooting
          • Profile settings
          • What is profiling?
          • Continuous profiling
          • Understand profiling types
          • Flame graphs
        • Get started
        • Determine your use case
        • Choose a view
          • Use Flame graph AI
        • Access or install
          • Traces and telemetry
          • Trace structure
          • Visualize data
          • Glossary
        • Get started
          • Choose span data
          • Choose a RED metric
          • Analyze tracing data
          • Add filters
          • View exemplars
        • UI reference
        • Metrics and telemetry
        • Get started
        • Drill down your metrics
        • Investigations
        • Start investigations
        • Compare time ranges
    • Get started with Observability as Code
      • Install Grafana CLI
      • Set up Grafana CLI
      • Manage resources with Grafana CLI
      • annotations schema
      • PanelKind schema
      • LibraryPanelKind schema
      • layout schema
      • links schema
      • timesettings schema
      • variables schema
      • Automate dashboard provisioning with CI/CD
      • Git Sync
      • Set up Git Sync
      • Set up file provisioning
      • Work with provisioned dashboards
      • Manage repositories
        • Queries and conditions
        • Labels and annotations
        • No Data and Error states
        • Stale alert instances
        • Alert rule state and health
        • Evaluation within a group
        • Contact points
        • Notification policies
        • Grouping
      • Templates
      • Configure Grafana-managed alert rules
      • Create and link alert rules to panels
      • Import to Grafana-managed rules
      • Configure data source-managed alert rules
        • Create Grafana-managed recording rules
        • Create data source-managed recording rules
        • Migrate recorded queries
        • Template reference
        • Examples
        • Template language
        • Alertmanager
        • Amazon SNS
        • Discord
        • Email
        • Google Chat
        • Grafana IRM
        • Jira
        • Microsoft Teams
        • MQTT
        • Opsgenie
        • PagerDuty
        • Slack
        • Telegram
        • Webhook
      • Configure notification policies
      • Configure mute timings
      • Configure silences
        • Manage templates
        • Template reference
        • Examples
        • Template language
        • Use images
      • View alert rules
      • View alert state
      • View alert state history
      • View active notifications
      • Declare incidents from firing alerts
      • Configure roles and permissions
        • Manage access using roles
        • Manage access using folders or data sources
      • Configure Alertmanagers
      • Configure alert state history
        • Use configuration files to provision
        • Use Terraform to provision
        • Export alerting resources
        • Use the HTTP API to manage alerting resources
      • Configure high availability
      • Meta monitoring
      • Performance considerations and limitations
      • Handle connectivity errors
      • Handle missing data
      • Examples of multi-dimensional alerts
      • Examples of table data
      • Examples of dynamic thresholds
      • Examples of dynamic labels
      • Tutorials
    • Send panel to support
    • Send a support bundle to support
    • Generate a HAR capture
      • Authentication
        • API Tutorial: Create Service Account tokens and dashboards for an organization
        • cURL examples
      • Admin HTTP API
      • Alerting Provisioning HTTP API
      • Annotations HTTP API
      • Correlations HTTP API
      • Dashboard HTTP API
      • Dashboard Permissions HTTP API
      • Dashboard Versions HTTP API
      • Data source HTTP API
      • Datasource LBAC rules HTTP API
      • Datasource Permissions HTTP API
      • Folder HTTP API
      • Folder Permissions HTTP API
      • Folder/Dashboard Search HTTP API
      • Library Element HTTP API
      • Licensing HTTP API
      • New API Structure
      • Organization HTTP API
      • Other HTTP API
      • Playlist HTTP API
      • Preferences API
      • Query and Resource Caching HTTP API
      • Query History HTTP API
      • RBAC HTTP API
      • Reporting API
      • Service account HTTP API
      • Shared Dashboards HTTP API
      • Short URL HTTP API
      • Snapshot API
      • SSO Settings API
      • Team HTTP API
      • Team Sync HTTP API
      • User HTTP API
    • Contribute to Grafana
    • Contributor License Agreement (CLA)
    • Grafana Cloud Enterprise Open source

      Query and transform data

      Grafana supports many types of data sources . Data source queries return data that Grafana can transform and visualize. Each data source uses its own query language, and data source plugins each implement a query-building user interface called a query editor.

      About queries

      Grafana panels communicate with data sources via queries, which retrieve data for the visualization. A query is a question written in the query language used by the data source.

      You can configure query frequency and data collection limits in the panel’s data source options. Grafana supports up to 26 queries per panel.

      Important: You must be familiar with a data source’s query language. For more information, refer to Data sources .

      Query editors

      The InfluxDB query editor

      Each data source’s query editor provides a customized user interface that helps you write queries that take advantage of its unique capabilities.

      Because of the differences between query languages, each data source query editor looks and functions differently. Depending on your data source, the query editor might provide auto-completion features, metric names, variable suggestions, or a visual query-building interface.

      For example, this video demonstrates the visual Prometheus query builder:

 
推荐文章
奔放的熊猫  ·  TiDB Dashboard 概况页面 | TiDB 文档中心
2 周前
淡定的葡萄  ·  GitHub - LMacPhail/zabbix-history-influxdb: A loadable module for zabbix which will export history d
5 天前
威武的帽子  ·  Monitoring containers using Glances and Grafana - Tinkering - Roon Labs Community
5 天前
帅气的稀饭  ·  Docker + InfluxDB + Telegraf + Grafana - Installation - openHAB Community
5 天前
爱笑的紫菜汤  ·  Métricas cAdvisor no Kubernetes com Prometheus e Grafana - DEV Community
3 天前
含蓄的斑马  ·  断电延时型时间继电器工作原理和典型电路-百合电子工作室
1 月前
任性的弓箭  ·  中森青子 - 萌娘百科 萬物皆可萌的百科全書
2 月前
捣蛋的松球  ·  Stata 学习笔记(1):数值型与字符串型变量的转换 - 知乎
1 年前
仗义的眼镜  ·  TVアニメ『彼女、お借りします』第3期公式サイト
2 年前
大方的手电筒  ·  2020东京奥运会
2 年前
Link管理   ·   Sov5搜索   ·   小百科
link管理 - 链接快照平台