Comments (6)
Hi @fr05t1k
Series Overrides in Grafana allows to change only visual aspects, but not time range. I guess, there is misleading value for alias or regex
in example.
If you are looking for time shifting - plz take a look on time range tab
from clickhouse-grafana.
Hi @hagen1778
As I understand Time range allow to shift all metrics. I'm trying to do smth like this
from clickhouse-grafana.
I got it. Seems like he has 2 metrics which are shifted manually
from clickhouse-grafana.
But when I do smth like this
SELECT
$timeSeries as t,
count() as users
FROM $table
WHERE
registeredDate BETWEEN toDate($from - 3600 * 24 * 30) and toDate($to - 3600 * 24 * 30) and
registeredAt BETWEEN toDateTime($from - 3600 * 24 * 30) and toDateTime($to - 3600 * 24 * 30)
GROUP BY t
ORDER BY t
The data becomes outside of time range.
from clickhouse-grafana.
You will also need to override $timeSeries
as following:
SELECT
(intDiv(toUInt32(registeredAt + 3600 * 24 * 30), 3600) * 3600) * 1000 as t,
count() as users
....
When Grafana provides $from and $to values, it also adjusts the panel for that timerange. So when you querying the data with timestamps that are outside of Grafana's timerange it would be impossible to display them. So you need to fake those timestamps.
Another option is Grafana's time shifting where it will be done automatically
from clickhouse-grafana.
Yes. That's what I need. Thanks ;)
from clickhouse-grafana.
Related Issues (20)
- alert metric name problem HOT 2
- check `lttb` function application for work HOT 1
- Ad-hoc filters - error when evaluating varchar field with numeric value HOT 2
- WHERE field IN ('value1','value2') vs WHERE field IN ['value1','value2'] have side effects
- Support TRACE and Flamegraph formats HOT 7
- auto-complete for field names and table names
- Write e2e tests + coverage for coveralls in github actions
- Update screenshots to Grafana 10
- Explore format "as table" work different with old version of plugin HOT 1
- Grafana Cloud Support HOT 12
- Issue with plugin on grafana cloud HOT 2
- Annotations setup page don't contain Query textfield
- `Reformat Query` button do nothing, need return it nad fix wrong formatting
- Support for multiple grouping columns for calculations like increaseColumns HOT 1
- Unexpected error when using $conditionalTest macro HOT 11
- The 'Format As' feature is not working. HOT 1
- No longer possible to specify custom timestamp column value in 3.0.0 HOT 1
- golang part of plugin ignore tlsSkipVerify oprtion from datasource settings
- Broken table with specific query in 3.0.0 HOT 6
- databend datase return 400 error code which not correctly handled on plugin side HOT 12
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from clickhouse-grafana.