Grafana:数据在你的系统里,图表现查现画Grafana: charts and alerts on data that lives in your systems
Grafana 画图、发告警,数据在你的系统里。每次打开面板,它都去问那些系统。
一个程序。 服务器提供网页和接口,检查每个请求,存仪表盘和规则,替面板查数据。
面板的数据。 服务器核对身份,按数据源拆开并行去问,结果以数据帧返回。
插件。 数据源、面板、应用都是插件。大多数数据源是启动时装的,不内置。没签名的默认不加载。
仪表盘是一份 JSON,可以在网页里画,也可以从文件或 Git 加载。
存储。 自己的库默认是 SQLite 文件,也可用 MySQL 或 Postgres。仪表盘已改用库里带版本号的新存储。
告警。 调度器每 10 秒跑到点的规则,触发的告警交给内置 Alertmanager。
它分组、静默,再发到 23 种联系点。
访问。 用密码、LDAP 或单点登录进来,每个组织一个角色。SAML 和自定义角色是企业版。
分享。 链接要登录,快照是数据副本,公开仪表盘有链接就能看,只跑存好的查询。
运行。 一台起步;扩容就在负载均衡后多跑几台,共享 MySQL 或 Postgres。
Grafana draws charts and sends alerts on data that lives in your own systems. Each time a panel loads, it asks the system that holds the data.
One program. The server serves the web app and the APIs, checks every request, keeps dashboards and rules, and runs the queries.
A panel's data. The server checks the caller, splits the query by data source and asks them in parallel. Answers come back as data frames.
Plugins. Data sources, panels and apps are plugins. Most data sources are installed at start, not built in. Unsigned plugins are blocked by default.
Dashboards are JSON, built in the web app or loaded from files or Git.
Storage. Grafana's own database is a SQLite file by default, or MySQL or Postgres. Dashboards now sit in a newer, versioned store in that same database.
Alerts. A scheduler ticks every 10 seconds and runs due rules. Firing alerts go to the built-in Alertmanager.
It groups them, holds back silenced ones, and sends the rest to 23 kinds of contact point.
Access. People sign in with a password, LDAP or single sign-on, and get a role in each organisation. SAML and custom roles are Enterprise.
Sharing. A link needs sign-in. A snapshot is a copy of the data. Anyone with a public dashboard's link can view it; it runs only its saved queries.
Running it. Start with one server. To grow, run more behind a load balancer, sharing a MySQL or Postgres database.
来源Source: github.com