Skip to content

Scholar-Li/log_dotter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

log_dotter

Used to test the log collection function. Generate 15w logs at a time.

Docker Hub Image

docker pull scholarli/log_dotter:latest

It can be used directly instead of having to build the image yourself. (Docker Hub scholarli/log_dotter)

Run

Run Binary

log_dotter -timeout 60 -time 1000

Run Docker Image

docker run -p 9093:9093 -p 9094:9094 scholarli/log_dotter

Flags

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

API

Metrics

http://localhost:9094/metrics

operate

Reset

curl --location --request POST '127.0.0.1:9093/reset' \
--header 'Content-Type: application/json' \
--data-raw '{
    "timeout": 60,
    "interval": 1
}'

Get

curl --location --request GET '127.0.0.1:9093/config'

Stop

curl --location --request POST '127.0.0.1:9093/stop'