Architecture of grafana/grafana-zabbix
grafana/grafana-zabbix is 259 source files holding 1,047 symbols across 7 modules, written mainly in TypeScript, Go, JavaScript. The largest module is src, with 127 files, and 1 file is an entry point into the dependency graph.
How grafana-zabbix fits together
Zabbix is added to Grafana as a data source, and panels send their queries through it to Zabbix. The entry point src/components/index.ts registers the plugin's components with Grafana. src/datasource/datasource.ts holds the data source logic that handles panel queries. src/datasource/zabbix/zabbix.ts contains the Zabbix-specific code that requests and shapes the monitoring data before it is drawn. The pkg directory holds the Go files, which make up the plugin's backend. The docs directory contains the guides for templating, alerting and metric processing functions.
Largest modules
- src: 127 files and 6,086 lines of code
- pkg: 45 files and 5,101 lines of code
- devenv: 25 files
- root: 19 files
- .config: 16 files and 75 lines of code
- .github: 14 files
- docs: 9 files
- .changeset: 4 files
Languages
By file count: TypeScript 128 files, Go 46 files, JavaScript 9 files, Dockerfile 7 files, Python 5 files, Makefile 2 files.
More on grafana-zabbix: summary and FAQ, codebase overview, code health.
Related guide: Best dependency graph tools for monorepos