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.

Home Page:https://www.influxdata.com/products/influxdb-templates/gallery/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ADS-B Template doesn't provide a Bucket variable

marekpow opened this issue · comments

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?

  • InfluxDB Cloud platform
  • [ x] InfluxDB 2.0 on a remote server
  • InfluxDB 2.0 on my local machine

Additional context

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

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

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

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

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.

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

@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?

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