How mohammedayad1/grafana works
Grafana is a monitoring and observability platform: users query data sources, visualize results in dashboards, and explore metrics and logs; alert rules are evaluated and can send notifications to external systems. The graph preserves those documented capabilities and includes dashboard, query, alerting, and notification components present in the tree. Source excerpts show public-dashboard query dispatch, alert-route matching, folder retrieval, and unified resource storage; other relationships are documented at a higher level in the README, so implementation links are omitted where evidence is unavailable.
Main entry points: dashboard_spec.go Dashboards · publicDashboardQueryHandler.ts Public dashboard query · useFoldersQueryAppPlatform.ts Folder picker · validator.go Alert rules
Components 14
Dashboards
- Dashboards
apps/dashboard/pkg/apis/dashboard/v0alpha1/dashboard_spec.go - Folder picker
public/app/core/components/NestedFolderPicker/useFoldersQueryAppPlatform.ts - Folder service
pkg/services/folder/folderimpl/folder_unifiedstorage.go
Querying
- Public dashboard query
packages/grafana-runtime/src/utils/publicDashboardQueryHandler.ts - Data sources
packages/grafana-runtime/src/utils/DataSourceWithBackend.ts - Visualizations
packages/grafana-runtime/src/utils/queryResponse.ts - Metrics and logs
public/app/features/explore/TraceView/components/TracePageHeader/useTraceAdHocFiltersController.ts
Alerting
- Alert rules
apps/alerting/rules/pkg/app/alertrule/validator.go - Rule evaluation
pkg/services/ngalert/backtesting/engine.go - Route matching
public/app/features/alerting/unified/components/rule-editor/notificaton-preview/useAlertmanagerNotificationRoutingPreview.ts - Notification settings
apps/alerting/notifications/pkg/app/app.go
Storage
- Unified resource storage
pkg/storage/unified/resource/storage_backend.go
Other components
- Grafana user
- Notification systems
Connections 13
- Grafana user → Dashboards: creates and views
- Dashboards → Public dashboard query: queries data
- Public dashboard query → Data sources: queries
- Public dashboard query → Visualizations: returns results
packages/grafana-runtime/src/utils/publicDashboardQueryHandler.ts - Grafana user → Metrics and logs: explores data
- Grafana user → Folder picker: browses folders
- Folder picker → Folder service: requests folders
- Dashboards → Unified resource storage: persists resources
- Grafana user → Alert rules: defines rules
- Alert rules → Rule evaluation: evaluates continuously
- Rule evaluation → Notification settings: sends notifications
- Notification settings → Notification systems: notifies
- Route matching → Grafana user: previews routes
public/app/features/alerting/unified/components/rule-editor/notificaton-preview/useAlertmanagerNotificationRoutingPreview.ts