# Development environment for the plugin

This docker environment contains preconfigured Zabbix instance with several monitored hosts and preconfigured Grafana with added data source and dashboards for testing. Environment uses plugin built
from sources, so in order to start environment, run commands from plugin root directory:

```shell
# Build plugin
make dist

# Test plugin with Zabbix 6.0
cd devenv/zabbix60
docker-compose up -d
```

Run bootstrap again in case of error:

```shell
docker-compose up -d --build bootstrap
```

Grafana will be available at http://localhost:3001 (with default `admin:admin` credentials).

If you want to edit sources, do it, rebuild plugin and then restart grafana container:

```shell
docker-compose restart grafana
```
