Slide 13 of 13

Data sources at a glance

Quick reference

Data sourceTypeBest forQuery language
CloudWatchCloudAWS resourcesCloudWatch syntax
ElasticsearchLogsFull-text searchLucene/DSL
Google SheetsFlexibleSpreadsheet dataCell references
InfinityFlexibleAPIs, filesJSONPath
InfluxDBMetricsIoT, high-volumeFlux, InfluxQL, SQL (v3+)
LokiLogsCost-effective logsLogQL
MySQL/PostgreSQLSQLApplication dataSQL
PrometheusMetricsK8s, cloud-nativePromQL

Decision flowchart

Data source decision flowchart: start with data type, then narrow by use case

Script

Let’s bring it all together with a quick reference. When you’re deciding which data source to use, start with your data type and use case.

Cloud-native metrics? Prometheus. High-volume IoT data? InfluxDB. Cost-effective logs? Loki. Full-text log search? Elasticsearch. AWS resources? CloudWatch. Application data in a database? MySQL or PostgreSQL. External API or file? Infinity. Spreadsheet data? Google Sheets.

Most environments use multiple data sources, and that’s fine. Grafana handles it gracefully. The key is matching each data source to what it does best.