Skills2026年4月10日·1 分钟阅读

Grafana — Open Source Data Visualization & Observability

Grafana is the leading open-source platform for monitoring and observability. Visualize metrics, logs, and traces from Prometheus, Loki, Elasticsearch, and 100+ data sources.

Agent 就绪

这个资产会安全暂存

这个资产会先安全暂存。复制的指令会要求 Agent 读取暂存文件,并在激活脚本、MCP 配置或全局配置前先确认。

Stage only · 29/100策略:需暂存
Agent 入口
任意 MCP/CLI Agent
类型
Skill
安装
Stage only
信任
信任等级:Community
入口
step-1.md
安全暂存命令
npx -y tokrepo@latest install ed1a524f-34ae-11f1-9bc6-00163e2b0d79 --target codex

先暂存文件;激活前需要读取暂存 README 和安装计划。

TL;DR
Grafana connects to 100+ data sources and transforms metrics, logs, and traces into interactive dashboards.
§01

What it is

Grafana is the leading open-source platform for monitoring, observability, and data visualization. It connects to virtually any data source -- Prometheus, InfluxDB, Elasticsearch, PostgreSQL, MySQL, Loki, and over 100 more -- and transforms raw metrics, logs, and traces into interactive dashboards.

Grafana is built for SREs, DevOps engineers, and data teams who need unified visibility across infrastructure, applications, and business metrics.

§02

How it saves time or tokens

Grafana provides a single pane of glass for all your observability data. Instead of switching between Prometheus for metrics, Elasticsearch for logs, and Jaeger for traces, you query all of them from one dashboard. Alerting rules trigger notifications across Slack, PagerDuty, email, and webhooks, reducing the time from anomaly detection to response.

§03

How to use

  1. Start Grafana with Docker:
docker run -d --name grafana -p 3000:3000 grafana/grafana-oss:latest
  1. Open http://localhost:3000 and login with admin/admin
  2. Add a data source (Prometheus, InfluxDB, PostgreSQL, etc.)
  3. Create a dashboard and add panels with queries
§04

Example

{
  "dashboard": {
    "title": "API Performance",
    "panels": [
      {
        "title": "Request Rate",
        "type": "timeseries",
        "targets": [
          {
            "expr": "rate(http_requests_total[5m])",
            "legendFormat": "{{method}} {{path}}"
          }
        ]
      },
      {
        "title": "P99 Latency",
        "type": "timeseries",
        "targets": [
          {
            "expr": "histogram_quantile(0.99, rate(http_request_duration_seconds_bucket[5m]))"
          }
        ]
      }
    ]
  }
}
§05

Related on TokRepo

§06

Common pitfalls

  • Creating too many panels per dashboard, which slows down loading and makes it hard to scan
  • Not setting appropriate time ranges for queries, leading to excessive data retrieval
  • Using Grafana as a long-term data store instead of configuring proper retention in the underlying data source

常见问题

Is Grafana free to use?+

Grafana OSS is free and open-source under AGPL-3.0. Grafana Cloud offers a free tier with 10K metrics and 50GB logs. Grafana Enterprise adds features like RBAC, reporting, and enterprise plugins for a paid license.

What data sources does Grafana support?+

Grafana supports over 100 data sources including Prometheus, InfluxDB, Elasticsearch, PostgreSQL, MySQL, Loki, Jaeger, Tempo, CloudWatch, BigQuery, and many more through official and community plugins.

How does Grafana alerting work?+

Grafana evaluates alert rules against your data sources at configurable intervals. When a threshold is breached, it sends notifications to configured contact points: Slack, PagerDuty, email, webhooks, and others.

Can Grafana visualize logs, not just metrics?+

Yes. With Loki as a data source, Grafana provides a log exploration interface similar to Kibana. You can correlate logs with metrics on the same dashboard, clicking from a metric spike to related log entries.

How do I share Grafana dashboards with my team?+

Export dashboards as JSON and import them in another instance. Use Grafana Cloud or the dashboard provisioning system to manage dashboards as code in version control. Public dashboards can be shared via URL without authentication.

引用来源 (3)
🙏

来源与感谢

讨论

登录后参与讨论。
还没有评论,来写第一条吧。

相关资产