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

ADS-B Template doesn't provide a Bucket variable #285

Open marekpow opened 3 years ago

marekpow commented 3 years ago

Template: ADS-B

Describe the problem I installed the ads-b.yml template from InfluxDB 2.0 community templates. I have the following situation on the screen.

I did that many times on different instances of InfluxDb, always without any problem. But today I have that strange problem.

PS. Error message is: "type error @1:14-1:15: record is missing label bucket".

To Reproduce Steps to reproduce the behavior: Simply install ads-b template using InfluxDb 2.0 GUI (Settings -> Template -> Lookup Template -> Create template -> etc...)

Expected behavior Dashoard without error message right after creation from ads-b template.

Screenshots image

How are you running InfluxDB?

Additional context

Python: Python 3.8.10 OS: Ubuntu Server 20.04.3 LTS Raspberry Pi 4, 8GB RAM

marekpow commented 3 years ago

Hallo @mhall119, what is going on with my issue?

marekpow commented 3 years ago

Variable bucket (CSV type) was missing in my configuration. After the added value of my default bucket to that variable board started to work.

mhall119 commented 3 years ago

@marekpow was it just that you needed INFLUX_BUCKET defined as an environment variable?

marekpow commented 3 years ago

No. That environment variable was defined at the bgining of my InfluxDb 2.0 installation. Look at this picture:

image

One thing that I did was add the variable named "bucket". After that, the board defined by the installation ADS-B template has been start working.

image

Why does it start to work after that?

image

image

And look at template configuration on the github:

image

That template needs the variable "bucket" to be defined.

mhall119 commented 3 years ago

Ah, yes the template should provide that. I'll update this issue to be specifically about that.

mhall119 commented 2 years ago

@tkyocum this template provides a Bucket called ads-b but uses an undefined variable v.bucket in all the Flux queries, and uses an envvar for bucket in the Telegraf config.

Would you like to replace the predefined bucket with a variable? Or change your queries and config to use the predefined bucket?

marekpow commented 2 years ago

I did it about two months ago. But I think you should change the template or describe how to use it for next users.