Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
2 tasks
marekpow opened this issue Oct 21, 2021 · 7 comments
Open
2 tasks

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

marekpow opened this issue Oct 21, 2021 · 7 comments
Assignees
Labels
Template Issue A problem with a specific Template

Comments

@marekpow
Copy link

marekpow commented Oct 21, 2021

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

@marekpow marekpow added the Template Issue A problem with a specific Template label Oct 21, 2021
@marekpow
Copy link
Author

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

@marekpow
Copy link
Author

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
Copy link
Contributor

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

@marekpow
Copy link
Author

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
Copy link
Contributor

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

@mhall119 mhall119 changed the title Problem with installing ADS-B Template ADS-B Template doesn't provide a Bucket variable Oct 27, 2021
@mhall119 mhall119 assigned tkyocum and unassigned mhall119 Oct 27, 2021
@mhall119
Copy link
Contributor

@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
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Template Issue A problem with a specific Template
Projects
None yet
Development

No branches or pull requests

3 participants