Installation
Installation on Linux
Installation on RedHat and CentOS
Installation on Docker
Dockerfile for all three services on the same container
# Use the official InfluxDB image
FROM influxdb:latest AS influxdb
# Use the official Telegraf image
FROM telegraf:latest AS telegraf
# Use the official Grafana image
FROM grafana/grafana:latest AS grafana
# Set up InfluxDB
FROM influxdb
COPY --from=influxdb /etc/influxdb/influxdb.conf /etc/influxdb/influxdb.conf
EXPOSE 8086
# Set up Telegraf
FROM telegraf
COPY --from=telegraf /etc/telegraf/telegraf.conf /etc/telegraf/telegraf.conf
EXPOSE 8125/udp
# Set up Grafana
FROM grafana
COPY --from=grafana /etc/grafana/grafana.ini /etc/grafana/grafana.ini
EXPOSE 3000
# Start all services
CMD ["sh", "-c", "influxd & telegraf & grafana-server --homepath=/usr/share/grafana"]Configuration
Run docker
Docker compose for services in different containers
docker-compose.yml
Configuration
Run docker-compose
Docker-compose for 2 containers: 1 for grafana and another one for influxdb and telegraf
Dockerfile
Docker-compose
Build and start services
API Commands
Access Database
Last updated