How abinithishkumarprabakaran/grafana works
Grafana is an observability platform whose user-facing loop is to query data sources, inspect results in dashboards or Explore, and configure alerts that notify external systems. The repository also includes platform services for dashboards, search, folders, and resource storage. The README documents the product capabilities; source-index references and excerpts support the narrower internal relationships shown. Several major frontend modules are indexed but not excerpted, so their implementation details and wiring are represented only at subsystem level.
Main entry points: publicDashboardQueryHandler.ts Query runtime · useAlertmanagerNotificationRoutingPreview.ts Notification route preview · useRecentlyDeletedStateManager.ts Deleted dashboard state · alertmanagerApi.ts Alerting interface
Components 26
Query and Explore
- Data sources
- Query runtime
packages/grafana-runtime/src/utils/publicDashboardQueryHandler.ts - Backend service
packages/grafana-runtime/src/services/backendSrv.ts - Query response
packages/grafana-runtime/src/utils/queryResponse.ts - Query type registry
pkg/registry/apis/query/queryschema/query_type_storage.go - Visualizations
Dashboards and Search
- Dashboard definitions
apps/dashboard/pkg/apis/dashboard/v0alpha1/dashboard_spec.go - Folder browsing
public/app/core/components/NestedFolderPicker/useFoldersQueryAppPlatform.ts - Folder service
pkg/services/folder/folderimpl/folder_unifiedstorage.go - Deleted dashboard state
public/app/features/browse-dashboards/api/useRecentlyDeletedStateManager.ts - Deleted dashboard cache
public/app/features/search/service/deletedDashboardsCache.ts - Search state
public/app/features/search/state/SearchStateManager.ts
Alerting
- Alerting interface
public/app/features/alerting/unified/api/alertmanagerApi.ts - Alert data sources
public/app/features/alerting/unified/utils/datasource.ts - Source permission hook
public/app/features/alerting/unified/hooks/useAlertManagerSources.ts - Notification route preview
public/app/features/alerting/unified/components/rule-editor/notificaton-preview/useAlertmanagerNotificationRoutingPreview.ts - Route group matcher
public/app/features/alerting/unified/useRouteGroupsMatcher.ts - Route utilities
public/app/features/alerting/unified/utils/amroutes.ts - Notification policies
public/app/features/alerting/unified/utils/notification-policies.ts - Alert rules
public/app/features/alerting/unified/utils/rules.ts - Notification services
Platform Services
- Unified resource storage
pkg/storage/unified/resource/storage_backend.go - Storage configuration
pkg/setting/setting_unified_storage.go - Folder cascade deletion
pkg/registry/apis/folders/cascade_delete_storage.go
Other components
- Grafana user
- Grafana experience
Connections 24
- Grafana user → Grafana experience: uses
- Grafana experience → Data sources: queries
- Data sources → Query runtime: provides data
- Grafana experience → Visualizations: views results
- Grafana experience → Dashboard definitions: creates and shares
- Grafana experience → Alerting interface: configures alerts
- Alerting interface → Alert rules: defines rules
- Alert rules → Notification services: sends notifications
- Grafana experience → Query runtime: queries public panels
- Query runtime → Backend service: fetches
packages/grafana-runtime/src/utils/publicDashboardQueryHandler.ts - Query runtime → Query response: converts response
packages/grafana-runtime/src/utils/publicDashboardQueryHandler.ts - Grafana experience → Folder browsing: browses folders
- Folder browsing → Dashboard definitions: lists folder content
- Grafana experience → Deleted dashboard state: browses deleted
- Deleted dashboard state → Deleted dashboard cache: searches
public/app/features/browse-dashboards/api/useRecentlyDeletedStateManager.ts - Deleted dashboard state → Search state: updates
public/app/features/browse-dashboards/api/useRecentlyDeletedStateManager.ts - Alerting interface → Alert data sources: uses sources
public/app/features/alerting/unified/utils/datasource.ts - Source permission hook → Alert data sources: selects sources
public/app/features/alerting/unified/hooks/useAlertManagerSources.ts - Notification route preview → Route group matcher: matches routes
public/app/features/alerting/unified/components/rule-editor/notificaton-preview/useAlertmanagerNotificationRoutingPreview.ts - Notification route preview → Route utilities: adds route identity
public/app/features/alerting/unified/components/rule-editor/notificaton-preview/useAlertmanagerNotificationRoutingPreview.ts - Notification route preview → Notification policies: normalizes route
public/app/features/alerting/unified/components/rule-editor/notificaton-preview/useAlertmanagerNotificationRoutingPreview.ts - Storage configuration → Unified resource storage: configures
- Folder service → Unified resource storage: uses storage
pkg/services/folder/folderimpl/folder_unifiedstorage.go - Folder cascade deletion → Unified resource storage: uses storage