openmeter / docs /seeder.md
Leon4gr45's picture
Upload folder using huggingface_hub (part 5)
b47934a verified
|
Raw
History Blame Contribute Delete
1.16 kB

Seeding OpenMeter with sample data

It's often useful to seed OpenMeter with test data during development.

We use Benthos 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:

make seed

If you would like to see the generated events, enable logging:

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:

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:

make SEEDER_MAX_SUBJECTS=100 seed

(The default is 100)

Take a look at 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:

benthos -c ./etc/seed/observability.yaml streams ./etc/seed/streams/*.yaml