Read and write requsets into influxdb Concurrently. Logs in Explore by grafana.
docker pull influxdb:2.0.6
docker run -p 8086:8086 \
-e DOCKER_INFLUXDB_INIT_USERNAME=kimiuser \
-e DOCKER_INFLUXDB_INIT_PASSWORD=kimipassword \
influxdb:2.0.6
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"
docker run -d -p 3000:3000 grafana/grafana
default account/passwword is admin/admin
# 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
curl 127.0.0.1:9193/monitor