Hi
i've a problem to store data into InfluxDB throught Telegraf.
I've a Raspberry Pi5 8GB and i've done this step:
Could you please help me with this stuff?
Here all the file that I think you need to help me
docker-compose.yamltelegraf.confI've compose my directory like this schema:
/home/pi/docker/{data;volume;config;storage}/<application>
Log of InfluxDBLog of TelegrafWhats wrong on it?
Please help me... i'm working on it since 2 days
i've a problem to store data into InfluxDB throught Telegraf.
I've a Raspberry Pi5 8GB and i've done this step:
- I've installed InfluxDB and Telegraf in my container
- I've create an All Access Api Token for Telegraf
- I've configure the file telegraf.conf
Could you please help me with this stuff?
Here all the file that I think you need to help me
docker-compose.yaml
Code:
services: portainer: image: portainer/portainer-ce:latest container_name: Portainer ports: - 9443:9443 volumes: - /home/pi/docker/data/portainer:/data - /var/run/docker.sock:/var/run/docker.sock restart: unless-stopped influxdb: image: influxdb:2 container_name: InfluxDB restart: always ports: - '8086:8086' environment: DOCKER_INFLUXDB_INIT_MODE: setup DOCKER_INFLUXDB_INIT_USERNAME: admin DOCKER_INFLUXDB_INIT_PASSWORD: impero89 DOCKER_INFLUXDB_INIT_ORG: Casa DOCKER_INFLUXDB_INIT_BUCKET: Casa volumes: - /home/pi/docker/data/influxdb:/var/lib/influxdb2 - /home/pi/docker/config/influxdb:/etc/influxdb2 grafana: image: grafana/grafana container_name: Grafana restart: unless-stopped ports: - '3000:3000' volumes: - /home/pi/docker/storage/grafana:/var/lib/grafana telegraf: image: telegraf container_name: Telegraf restart: unless-stopped environment: - HOST_ETC=/hostfs/etc - HOST_PROC=/hostfs/proc - HOST_SYS=/hostfs/sys - HOST_VAR=/hostfs/var - HOST_RUN=/hostfs/run - HOST_MOUNT_PREFIX=/hostfs volumes: - /home/pi/docker/config/telegraf/telegraf.conf:/etc/telegraf/telegraf.conf:ro - /home/pi/docker/log/telegraf:/host/var/log:ro command: telegraf --config /etc/telegraf/telegraf.conf
Code:
#OUTPUT PLUGINS[[outputs.influxdb_v2]]urls = ["http://192.168.5.122:8086"]token = "ua9sWq30skSqMursbcCGZPmvGVguvW4JRPOCYj4vueK6EgG4oKx8naKRcjN6VjI0rVSNUPNP1S97L_rqtT-DAw=="organization = "Casa"bucket = "Casa"# INPUT PLUGINS[[inputs.cpu]] percpu = true totalcpu = true
/home/pi/docker/{data;volume;config;storage}/<application>
Log of InfluxDB
Code:
InfluxDB | 2024-08-04T15:40:45.194262198Z info found existing boltdb file, skipping setup wrapper {"system": "docker", "bolt_path": "/var/lib/influxdb2/influxd.bolt"}InfluxDB | 2024-08-04T15:40:45.263685621Z info found existing boltdb file, skipping setup wrapper {"system": "docker", "bolt_path": "/var/lib/influxdb2/influxd.bolt"}InfluxDB | ts=2024-08-04T15:40:45.374030Z lvl=info msg="Welcome to InfluxDB" log_id=0qoWe1kG000 version=v2.7.8 commit=18c989726c build_date=2024-07-25T19:55:35Z log_level=infoInfluxDB | ts=2024-08-04T15:40:45.374082Z lvl=warn msg="nats-port argument is deprecated and unused" log_id=0qoWe1kG000InfluxDB | ts=2024-08-04T15:40:53.169655Z lvl=info msg="Resources opened" log_id=0qoWe1kG000 service=bolt path=/var/lib/influxdb2/influxd.boltInfluxDB | ts=2024-08-04T15:40:53.169839Z lvl=info msg="Resources opened" log_id=0qoWe1kG000 service=sqlite path=/var/lib/influxdb2/influxd.sqliteInfluxDB | ts=2024-08-04T15:40:56.985490Z lvl=info msg="Checking InfluxDB metadata for prior version." log_id=0qoWe1kG000 bolt_path=/var/lib/influxdb2/influxd.boltInfluxDB | ts=2024-08-04T15:40:56.985792Z lvl=info msg="Using data dir" log_id=0qoWe1kG000 service=storage-engine service=store path=/var/lib/influxdb2/engine/dataInfluxDB | ts=2024-08-04T15:40:56.985862Z lvl=info msg="Compaction settings" log_id=0qoWe1kG000 service=storage-engine service=store max_concurrent_compactions=2 throughput_bytes_per_second=50331648 throughput_bytes_per_second_burst=50331648InfluxDB | ts=2024-08-04T15:40:56.985879Z lvl=info msg="Open store (start)" log_id=0qoWe1kG000 service=storage-engine service=store op_name=tsdb_open op_event=startInfluxDB | ts=2024-08-04T15:40:56.985992Z lvl=info msg="Open store (end)" log_id=0qoWe1kG000 service=storage-engine service=store op_name=tsdb_open op_event=end op_elapsed=0.098msInfluxDB | ts=2024-08-04T15:40:56.986045Z lvl=info msg="Starting retention policy enforcement service" log_id=0qoWe1kG000 service=retention check_interval=30mInfluxDB | ts=2024-08-04T15:40:56.986063Z lvl=info msg="Starting precreation service" log_id=0qoWe1kG000 service=shard-precreation check_interval=10m advance_period=30mInfluxDB | ts=2024-08-04T15:40:56.988087Z lvl=info msg="Starting query controller" log_id=0qoWe1kG000 service=storage-reads concurrency_quota=1024 initial_memory_bytes_quota_per_query=9223372036854775807 memory_bytes_quota_per_query=9223372036854775807 max_memory_bytes=0 queue_size=1024InfluxDB | ts=2024-08-04T15:40:56.993127Z lvl=info msg="Configuring InfluxQL statement executor (zeros indicate unlimited)." log_id=0qoWe1kG000 max_select_point=0 max_select_series=0 max_select_buckets=0InfluxDB | ts=2024-08-04T15:40:57.077814Z lvl=info msg=Listening log_id=0qoWe1kG000 service=tcp-listener transport=http addr=:8086 port=8086InfluxDB | ts=2024-08-04T15:40:57.077823Z lvl=info msg=Starting log_id=0qoWe1kG000 service=telemetry interval=8h
Code:
Telegraf | 2024-08-04T15:40:57Z I! Loading config: /etc/telegraf/telegraf.confTelegraf | 2024-08-04T15:40:57Z I! Starting Telegraf 1.31.2 brought to you by InfluxData the makers of InfluxDBTelegraf | 2024-08-04T15:40:57Z I! Available plugins: 234 inputs, 9 aggregators, 32 processors, 26 parsers, 60 outputs, 6 secret-storesTelegraf | 2024-08-04T15:40:57Z I! Loaded inputs: cpuTelegraf | 2024-08-04T15:40:57Z I! Loaded aggregators:Telegraf | 2024-08-04T15:40:57Z I! Loaded processors:Telegraf | 2024-08-04T15:40:57Z I! Loaded secretstores:Telegraf | 2024-08-04T15:40:57Z I! Loaded outputs: influxdb_v2Telegraf | 2024-08-04T15:40:57Z I! Tags enabled: host=0e6d8e10024eTelegraf | 2024-08-04T15:40:57Z I! [agent] Config: Interval:10s, Quiet:false, Hostname:"0e6d8e10024e", Flush Interval:10s
Please help me... i'm working on it since 2 days
Statistics: Posted by Cadmir — Sun Aug 04, 2024 3:51 pm