Replies: 1 comment 2 replies
-
Hello @hvisage , typically we use promql over prometheus compatible data source because it's more natural to run those queries. So if you are familiar with promql, I would recommend you to switch from telegraf to a prometheus based data source. But don't worry, you can still use promql over these custom tables. You only need to do some customization because:
So the promql will look like
Docs for our extension to promql: https://docs.greptime.com/user-guide/query-data/promql/#greptimedbs-extensions-to-promql |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
busy testing, and evaluating, pushing data from unbound using telegraf to database DNS into table unbound.
I got the following SQL:
SELECT "ts","total_num_queries" FROM dns."unbound" ORDER BY "ts" DESC LIMIT 100;
Q1: How do I present that in PromQL?
Q2: And in Grafana using PromQL/Prometheus plugin? Sofar I can't see that
total_num_queries
in the Grafana query builder's explorer?Beta Was this translation helpful? Give feedback.
All reactions