Metrics Collector :: Telegraf
+----------+ +-----------+ +-----------+ +----------+
| observed | | telegraf | | influxDB | | grafana |
| machine <------+in observed+--------> <-----+ |
| | | machine | | | | |
+----------+ +-----------+ +-----------+ +----------+
docker compose up
generate default Telegraf config
telegraf config > telegraf.conf
version: '3'
services:
grafana:
image: grafana/grafana
ports:
- 3000:3000
volumes:
- ./datasource.yaml:/etc/grafana/provisioning/datasources/datasource.yaml
environment:
- GF_PATHS_PROVISIONING=/etc/grafana/provisioning
apiVersion: 1
datasources:
- name: InfluxDB
type: influxdb
access: proxy
url: http://influxdb.example.com:8086
database: mydatabase
user: myusername
password: mypassword
basicAuth: true
isDefault: true
editable: false
datasource.yaml
apiVersion: 1
datasources:
- name: Prometheus
type: prometheus
access: proxy
url: http://prometheus.example.com:9090
basicAuth: false
isDefault: true
editable: false