logger

command module
v0.0.0-...-43c9b4a Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 14, 2021 License: Apache-2.0 Imports: 11 Imported by: 0

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 directly

By 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

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL