File size: 1,158 Bytes
b47934a | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 | # Seeding OpenMeter with sample data
It's often useful to seed OpenMeter with test data during development.
We use [Benthos](https://www.benthos.dev) as a seeder (even though it's not built for this purpose, it works just fine).
To run the seeder continuously ingesting data, run the following command:
```sh
make seed
```
If you would like to see the generated events, enable logging:
```sh
make SEEDER_LOG=true seed
```
In some cases, you might want to fine tune the total number of events and at what rate they are ingested:
```sh
make SEEDER_COUNT=100 SEEDER_INTERVAL=1s seed
```
This tells Benthos to ingest 100 events at 1 event/s rate.
(By default Benthos will ingest 1 event / 50ms until the process is stopped)
Finally, you can configure the maximum number of subjects you would like to see:
```sh
make SEEDER_MAX_SUBJECTS=100 seed
```
(The default is 100)
Take a look at [seed.yaml](../etc/seed/seed.yaml) for further details.
You can find seeders for all meters defined in the example config. You can run them together via Benthos's streams mode:
```sh
benthos -c ./etc/seed/observability.yaml streams ./etc/seed/streams/*.yaml
```
|