Skip to content

Read and write requsets into influxdb Concurrently. Logs in Explore by grafana.

Notifications You must be signed in to change notification settings

kimi0230/logprocess_influxdb

Repository files navigation

logprocess_influxdb 2.0

Read and write requsets into influxdb Concurrently. Logs in Explore by grafana.

influxdb

install

docker pull influxdb:2.0.6

run

docker run -p 8086:8086 \
-e DOCKER_INFLUXDB_INIT_USERNAME=kimiuser \
-e DOCKER_INFLUXDB_INIT_PASSWORD=kimipassword \
influxdb:2.0.6

test

curl -i -XPOST 'http://localhost:8086/api/v2/write?org=kimiORG&bucket=kk&precision=s'  -u kimiuser:kimipassword \
 --header "Authorization: Token rOdFRpyoGg9aGQKt6GhUlBHgkmFOCX5HNIirOmBU3fCFbiwAY4jviMtbxtBBJ9cry_OGiEjieHrEPnfSeRO1mw==" \
 --data-binary "kk,machine_id=1,region=tw value=0.5"

grafana

install & run

docker run -d -p 3000:3000 grafana/grafana

default account/passwword is admin/admin

Demo: docker compose

# Background execution (docker run)
docker-compose up -d

# (docker ps)
docker-compose ps 

# show logs (docker logs)
docker-compose logs

# start (docker start)
docker-compose start

# Stop execution (docker stop)
docker-compose stop

# remove (docker rm)
docker-compose down

# Stop execution, then remove  
docker-compose rm -s

System Info API

curl 127.0.0.1:9193/monitor

Screenshot

influxDB

influxDB

grafana

grafana

Reference

About

Read and write requsets into influxdb Concurrently. Logs in Explore by grafana.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages