grafana
アプリケーションgrafana/grafana
メトリクス、ログ、分散トレーシングをサポートする、オープンソースのオブザーバビリティおよびデータ可視化プラットフォーム。
概要
Grafanaは、複数のデータソースからのメトリクス、ログ、トレースのクエリ、可視化、アラートをサポートしています。動的ダッシュボード、インタラクティブな探索機能、強力なアラートエンジンを提供します。プラットフォームはプラグインによる拡張をサポートしています。
README プレビュー
\n\n\nThe open-source platform for monitoring and observability\n\n[](LICENSE)\n[](https://goreportcard.com/report/github.com/grafana/grafana)\n\nGrafana allows you to query, visualize, alert on and understand your metrics no matter where they are stored. Create, explore, and share dashboards with your team and foster a data-driven culture:\n\n- **Visualizations:** Fast and flexible client side graphs with a multitude of options. Panel plugins offer many different ways to visualize metrics and logs.\n- **Dynamic Dashboards:** Create dynamic & reusable dashboards with template variables that appear as dropdowns at the top of the dashboard.\n- **Explore Metrics:** Explore your data through ad-hoc queries and dynamic drilldown. Split view and compare different time ranges, queries and data sources side by side.\n- **Explore Logs:** Experience the magic of switching from metrics to logs with preserved label filters. Quickly search through all your logs or streaming them live.\n- **Alerting:** Visually define alert rules for your most important metrics. Grafana will continuously evaluate and send notifications to systems like Slack, PagerDuty, VictorOps, OpsGenie.\n- **Mixed Data Sources:** Mix different data sources in the same graph! You can specify a data source on a per-query basis. This works for even custom datasources.\n\n## Get started\n\n- [Get Grafana](https://grafana.com/get)\n- [Installation guides](https://grafana.com/docs/grafana/latest/setup-grafana/installation/)\n\nUnsure if Grafana is for you? Watch Grafana in action on [play.grafana.org](https://play.grafana.org/)!\n\n## Documentation\n\nThe Grafana documentation is available at [grafana.com/docs](https://grafana.com/docs/).\n\n## Contributing\n\nIf you're interested in contributing to the Grafana project:\n\n- Start by reading the [Contributing guide](https://github.com/grafana/grafana/blob/HEAD/CONTRIBUTING.md).\n- Learn how to set up your local environment, in our [Developer guide](https://github.co
FAQ (4)
トラブル対応メタデータが欠落している場合に、Signal Explorer が `*_total` などのメトリクスに対して「Unknown type」と表示する問題を修正するにはどうすればよいですか?
PR「Explore: Infer metric type from its name in the Signal Explorer when metadata is missing」を含む Grafana/Cloud リリースにアップグレードしてください。この修正では、**Unknown type** にフォールバックする前にメトリクス名のヒューリスティクスが適用されます。たとえば、grafanacloud_instance_discarded_attributed_samples_total は _total サフィックスによりカウンターとして識別されます。バックポートする際は、grafana/metrics-drilldown のロジックを再利用してください: src/shared/GmdVizPanel/matchers/getMetricType.ts および src/shared/GmdVizPanel/matchers/isCounterMetric.ts(main で現在のパスを確認してください。この issue はコミット 97ec532 を参照しています)。
トラブル対応Signal Explorer でラベル値が省略表示されている場合に、完全な値を確認するにはどうすればよいですか?
これは、Signal Explorer レールで切り詰められたラベルキーと値にホバーツールチップを追加することで修正されました。PR「Signal Explorer: Reveal full label keys and values on hover」を含むリリースにアップグレードしてから、切り詰められたラベルにカーソルを合わせると、その全文が表示されます。古いバージョンでは、この修正を含むビルドを入手する以外に、製品内での回避策はありません。
トラブル対応アップグレード後に、gaugeが有効になっているGrafanaのsinglestatパネルが、gaugeではなくstatに移行されるのはなぜですか?
自動移行は、すべての singlestat および grafana-singlestat-panel を stat にマッピングしており、古い gauge.show 設定を無視しています。移行後のタイプを割り当てる前に、public/app/features/dashboard/state/PanelModel.ts 内の restoreModel() でパネルタイプの選択を修正してください:
let newType = getPanelPluginToMigrateTo(this);
if (this.type === 'singlestat' || this.type === 'grafana-singlestat-panel') {
if ((this as any).gauge?.show) {
newType = 'gauge';
} else {
newType = 'stat';
}
}
if (newType) {
this.autoMigrateFrom = this.type;
this.type = newType;
}
これにより、以前の v24 の動作が維持されます: gauge.show === true のパネルは gauge に移行され、その他のすべての singlestat パネルは stat に移行されます。gauge.show: true を持つレガシーな singlestat ダッシュボードに対して移行を実行し、結果のパネルタイプが gauge であることを検証するリグレッションテストを追加してください。
how_toSort by transformationを使用して、Grafanaテーブルを複数の列で並べ替えるにはどうすればよいですか?
単一の Sort by 変換を使用し、そこに複数のフィールドを追加してください。パネルで Transformations → Add transformation → Sort by に移動し、最初のフィールドを追加してから、さらにフィールドを追加します。フィールドを優先順にドラッグします。最初のフィールドがプライマリソートとなり、後の各フィールドは前のフィールドの同順位を解消します。昇順/降順はフィールドごとに個別に設定します。複数の独立した Sort by 変換を重ねて使用しないでください。それぞれの変換がデータセット全体を再ソートし、それ以前の順序を保持しないためです。Grafana UI でソートフィールドを1つしか指定できない場合は、複数フィールド対応の Sort by 変換の PR を含むリリースにアップグレードしてください。