Used to test the log collection function. Generate 15w logs at a time.
docker pull scholarli/log_dotter:latest
It can be used directly instead of having to build the image yourself. (Docker Hub scholarli/log_dotter)
log_dotter -timeout 60 -time 1000
docker run -p 9093:9093 -p 9094:9094 scholarli/log_dotter
This image is configurable using different flags
Flag name | Default | Description |
---|---|---|
http | false | start http |
interval | 1000 | log cron interval time (s) |
timeout | 60 | log cron timeout (minute) |
port | 9094 | Addresses port using of server |
file | log file path |
http://localhost:9094/metrics
curl --location --request POST '127.0.0.1:9093/reset' \
--header 'Content-Type: application/json' \
--data-raw '{
"timeout": 60,
"interval": 1
}'
curl --location --request GET '127.0.0.1:9093/config'
curl --location --request POST '127.0.0.1:9093/stop'