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

https://www.mm218.dev/posts/2020/05/ #3

Open
utterances-bot opened this issue Mar 4, 2021 · 5 comments
Open

https://www.mm218.dev/posts/2020/05/ #3

utterances-bot opened this issue Mar 4, 2021 · 5 comments

Comments

@utterances-bot
Copy link

Mike Mahoney: Installing the TIG stack on Raspberry Pi

https://www.mm218.dev/posts/2020/05/

Copy link

I'm new to it, how do you set up the query on grafana? I got: Expected response data to be array, got undefined

@mikemahoney218
Copy link
Owner

Howdy @Oystein-github ! I'm gonna point you to the Grafana docs on that: https://grafana.com/docs/grafana/latest/panels/queries/

Copy link

I'm with Oystein, I can't figure out how to query the output in Grafana. I can test the output and I get data. Can you please post a picture of one or all of your queries? Maybe also the RAW text? It would be great help, it's a big follow-up step. Thanks!

@mikemahoney218
Copy link
Owner

Howdy @jptech1499 ! Here's a handful of queries.

The main reason I point to the docs is because I can't debug people's setups -- anyone running into error messages will be better served by googling the errors and seeing what's worked for other people; I'm not capable of IDing what's wrong without being able to futz around on the box and change things.

That said, I grabbed a few of the more visually complicated graphs and pasted their queries below. If you've got your influx data source successfully added to grafana as "default" then these should work:

Screenshot from 2021-05-24 12-12-11

SELECT last("temp") / 1000 FROM "systemp" WHERE $timeFilter GROUP BY time($__interval) fill(null)

Screenshot from 2021-05-24 12-14-34

SELECT last("average_response_ms") FROM "ping" WHERE time >= now() - 6h GROUP BY time(15s), "url" fill(previous)

Screenshot from 2021-05-24 12-16-15

SELECT last("used_percent") FROM "disk" WHERE time >= now() - 6h GROUP BY time(2m) fill(previous)

Copy link

jptech1499 commented May 24, 2021

Thanks Mike! That's a big help. I've tried a few other tutorials and got them working but they primarily use other scripts and not these plugins. I've wrestled with your tutorial and the Graf documentation to no avail and I needed this guidance. Thanks for your info and prompt reply. I'm happy to say it's all working nicely!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants