Closed BoKKeR closed 1 year ago
That's a YAML validation error, I think you need to either quote the whole SQL command, or use something like:
sql: |
SELECT count("id") as metric1 FROM rss
The problem was that the sql
field was mis-indented
Describe the bug
A clear and concise description of what the bug is and when it happens.
Installation details
To Reproduce
I am just a SQL newbie trying to setup my first metric, a simple gauge count based on how many entries there are in the table. The error I get is
Invalid config at queries/sql: 'SELECT count("id") as metric1 FROM rss' is not of type 'object'