How tvarit-foggy/grafana works
Grafana is a monitoring and observability platform: users query data sources, inspect or transform results, visualize them in panels and dashboards, and can configure alerts. The README also documents templated dashboards, metrics and log exploration, and mixed data sources. The sampled sources show SQL query execution and alert evaluation, plus a few UI state helpers; other major capabilities are represented from the README and tree, so their internal wiring is not inferred.
Main entry points: app Grafana UI · dashboard Dashboards and variables · QueryRunner.ts Query runner · sql_engine.go SQL query engine
Components 17
Query and data
- Data source runtime
packages/grafana-runtime/src/services/dataSourceSrv.ts - Query runner
packages/grafana-runtime/src/services/QueryRunner.ts - SQL query engine
pkg/tsdb/sqleng/sql_engine.go - Data frames and transformations
packages/grafana-data/src/dataframe/index.ts
Dashboards and exploration
- Grafana UI
public/app - Dashboards and variables
public/app/features/dashboard - Metrics and logs exploration
public/app/features/explore - Panel plugins and rendering
packages/grafana-runtime/src/components - Dashboard search
public/app/features/search/hooks/useSearchQuery.ts
Alerting
- Alert rule configuration
public/app/features/alerting - Alert evaluation engine
pkg/services/alerting/engine.go - Alert source selection
public/app/features/alerting/unified/hooks/useAlertManagerSourceName.ts
Shared platform
- URL query state
public/app/core/hooks/useQueryParams.ts
Other components
- Grafana user
- SQL data source
- External data sources
- Notification services
Connections 17
- Grafana user → Grafana UI: uses
- Grafana UI → Dashboards and variables: creates and views
- Grafana UI → Metrics and logs exploration: explores
- Grafana UI → Dashboard search: searches
- Dashboards and variables → Data source runtime: queries
- Metrics and logs exploration → Data source runtime: queries
- Data source runtime → Query runner: dispatches queries
- Query runner → SQL query engine: runs SQL queries
- SQL query engine → SQL data source: queries
- SQL query engine → Data frames and transformations: converts rows
- Query runner → External data sources: dispatches queries
- Data frames and transformations → Panel plugins and rendering: provides results
- Dashboards and variables → Panel plugins and rendering: renders panels
- Dashboards and variables → URL query state: reads and updates URL
- Grafana user → Alert rule configuration: configures rules
- Alert evaluation engine → Notification services: sends notifications
- Alert source selection → URL query state: reads and updates URL