influxdata / community-templates

InfluxDB Community Templates: Quickly collect & analyze time series data from a range of sources: Kubernetes, MySQL, Postgres, AWS, Nginx, Jenkins, and more.
https://www.influxdata.com/products/influxdb-templates/gallery/
Apache License 2.0
352 stars 157 forks source link

Raspberry Pi System Template unsupported scheme $INFLUX #319

Closed Slin-nilS closed 1 year ago

Slin-nilS commented 1 year ago

Template: Raspberry Pi System Template

Describe the problem Error unsupported scheme $INFLUX

To Reproduce Steps to reproduce the behavior:

  1. Installation like this Tutorial

  2. influx config create --config-name influx-config \ --host-url http://127.0.0.1:8086 \ --org myOrganization \ --token dSar9XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXcensoredXXXXXXXXXXXX== \ --active

  3. pi@openplotter:~ $ telegraf --config http://192.168.0.40:8086/api/v2/telegrafs/0af27a773d136000 2023-03-25T18:35:23Z I! Loading config url: http://192.168.0.40:8086/api/v2/telegrafs/0af27a773d136000 2023-03-25T18:35:23Z I! Starting Telegraf 1.26.0 2023-03-25T18:35:23Z I! Available plugins: 235 inputs, 9 aggregators, 27 processors, 22 parsers, 57 outputs, 2 secret-stores 2023-03-25T18:35:23Z I! Loaded inputs: cpu disk diskio exec mem net processes swap system temp 2023-03-25T18:35:23Z I! Loaded aggregators: 2023-03-25T18:35:23Z I! Loaded processors: 2023-03-25T18:35:23Z I! Loaded secretstores: 2023-03-25T18:35:23Z I! Loaded outputs: influxdb_v2 2023-03-25T18:35:23Z I! Tags enabled: host=openplotter 2023-03-25T18:35:23Z I! [agent] Config: Interval:10s, Quiet:false, Hostname:"openplotter", Flush Interval:10s 2023-03-25T18:35:23Z E! [agent] Failed to connect to [outputs.influxdb_v2], retrying in 15s, error was "unsupported scheme [\"$INFLUX_HOST\"]: \"\"" 2023-03-25T18:35:38Z E! [telegraf] Error running agent: connecting output outputs.influxdb_v2: error connecting to output "outputs.influxdb_v2": unsupported scheme ["$INFLUX pi@openplotter:~ $ echo $INFLUX_HOST http://127.0.0.1:8086

Expected behavior Starting telegraf

what am i doing wrong? Thank´s for your tips.

How are you running InfluxDB?