jkehres/docker-compose-influxdb-grafana
소개
InfluxDB, Chronograf, Grafana를 함께 사용하는 멀티 컨테이너 Docker 앱
시스템 및 인프라측정된 스타 증가
- in 24h
- 0
- in 7 days
- 0
- in 15 days
- 0
- in 1 month
- 기록 수집 중
서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.
README.md
Originaldocker-compose-influxdb-grafana
Multi-container Docker app built from the following services:
- InfluxDB - time series database
- Chronograf - admin UI for InfluxDB
- Grafana - visualization UI for InfluxDB
Useful for quickly setting up a monitoring stack for performance testing. Combine with serverless-artillery and artillery-plugin-influxdb to create a performance testing environment in minutes.
Quick Start
To start the app:
- Install docker-compose on the docker host.
- Clone this repo on the docker host.
- Optionally, change default credentials or Grafana provisioning.
- Run the following command from the root of the cloned repo:
docker-compose up -d
To stop the app:
- Run the following command from the root of the cloned repo:
docker-compose down
Ports
The services in the app run on the following ports:
| Host Port | Service |
|---|---|
| 3000 | Grafana |
| 8086 | InfluxDB |
| 127.0.0.1:8888 | Chronograf |
Note that Chronograf does not support username/password authentication. Anyone who can connect to the service has full admin access. Consequently, the service is not publically exposed and can only be access via the loopback interface on the same machine that runs docker.
If docker is running on a remote machine that supports SSH, use the following command to setup an SSH tunnel to securely access Chronograf by forwarding port 8888 on the remote machine to port 8888 on the local machine:
ssh [options] <user>@<docker-host> -L 8888:localhost:8888 -N
Volumes
The app creates the following named volumes (one for each service) so data is not lost when the app is stopped:
- influxdb-storage
- chronograf-storage
- grafana-storage
Users
The app creates two admin users - one for InfluxDB and one for Grafana. By default, the username and password of both accounts is admin. To override the default credentials, set the following environment variables before starting the app:
INFLUXDB_USERNAMEINFLUXDB_PASSWORDGRAFANA_USERNAMEGRAFANA_PASSWORD
Database
The app creates a default InfluxDB database called db0.
Data Sources
The app creates a Grafana data source called InfluxDB that's connected to the default IndfluxDB database (e.g. db0).
To provision additional data sources, see the Grafana documentation and add a config file to ./grafana-provisioning/datasources/ before starting the app.
Dashboards
By default, the app does not create any Grafana dashboards. An example dashboard that's configured to work with artillery-plugin-influxdb is located at ./grafana-provisioning/dashboards/artillery.json.example. To use this dashboard, rename it to artillery.json.
To provision additional dashboards, see the Grafana documentation and add a config file to ./grafana-provisioning/dashboards/ before starting the app.
관련 프로젝트 살펴보기
불러오는 중…