Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/cyriltovena/logger
golang application to generate random logs
https://github.com/cyriltovena/logger
Last synced: about 2 months ago
JSON representation
golang application to generate random logs
- Host: GitHub
- URL: https://github.com/cyriltovena/logger
- Owner: cyriltovena
- License: apache-2.0
- Created: 2019-05-16T02:01:26.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2021-01-14T17:40:10.000Z (almost 4 years ago)
- Last Synced: 2024-06-20T06:28:52.628Z (7 months ago)
- Language: Go
- Size: 10.9 MB
- Stars: 8
- Watchers: 1
- Forks: 4
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Loki log generator
This project is a simple golang application to generate random logs.
This app runs in a single goroutine, if you want to generate more load, scale the app.
To build the app run `make build`.
`./logger` to start outputting log to stdout you'll need Promtail or an agent to send the logs.
`./logger --url=http://localhost:3100/api/prom/push` to send log to Loki directlyBy default the app log 500 logs per seconds, this can be increased or decrease using the flag `--logps`. For example
`./logger --logps=1` will log one line per second.To build a docker image use `make build-image`.
To run the image use: `docker run ctovena/logger:0.1 --url=http://localhost:3100/api/prom/push`