Skip to content

Commit

Permalink
update to 1.4.0
Browse files Browse the repository at this point in the history
  • Loading branch information
hagen1778 committed Mar 8, 2018
1 parent 3a6d5ed commit 4277e42
Show file tree
Hide file tree
Showing 7 changed files with 73 additions and 3 deletions.
12 changes: 12 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,15 @@
# 1.4.0 (2018-03-08)

## New Features
Ad-hoc filters support:
* If there is an Ad-hoc variable, plugin will fetch all columns of all tables of all databases (except system database) as tags.
So in dropdown menu will be options like `database.table.column`
* If there are ENUM columns, plugin will fetch their options and use them as tag values
* Plugin will apply Ad-hoc filters to all queries on the dashboard if their settings `$database` and `$table` are the same
as Ad-hoc's `database.table`
* There are no option to apply OR operator for multiple Ad-hoc filters - see grafana/grafana#10918
* There are no option to use IN operator for Ad-hoc filters due to Grafana limitations

# 1.3.1 (2018-02-12)

## Fixes
Expand Down
23 changes: 23 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ Copy files to your [Grafana plugin directory](http://docs.grafana.org/plugins/in
* Templates
* Table view
* SingleStat view
* Ad-hoc filters


### Access to CH via HTTP
Expand Down Expand Up @@ -285,8 +286,30 @@ FROM some_table

// It is also possible to use query without macros

### Ad-hoc filters

If there is an Ad-hoc variable, plugin will fetch all columns of all tables of all databases (except system database) as tags.
So in dropdown menu will be options like `database.table.column`. If there are ENUM columns,
plugin will fetch their options and use them as tag values.

Plugin will apply Ad-hoc filters to all queries on the dashboard if their settings `$database` and `$table` are the same
as Ad-hoc's `database.table`

![ad-hoc](https://user-images.githubusercontent.com/2902918/37139531-ed67f222-22b6-11e8-8815-9268850f16fb.png)

// There are no option to apply OR operator for multiple Ad-hoc filters - see grafana/grafana#10918
// There are no option to use IN operator for Ad-hoc filters due to Grafana limitations


### FAQ

> Time series last point is not the real last point
Plugin extrapolates last datapoint if timerange is `last N` to avoid displaying of constantly decreasing graphs
when timestamp in table is rounded to minute or bigger.
If it so then in 99% cases last datapoint will be much less than previous one, because last minute is not finished yet.
That's why plugin checks prev datapoints and tries to predict last datapoint value just as it was already written into db.

> Why no alerts support?
Alerts feature requires changes in `Grafana`'s backend, which can't be extended for now. `Grafana`'s maintainers are working on this feature.
Expand Down
12 changes: 12 additions & 0 deletions dist/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,15 @@
# 1.4.0 (2018-03-08)

## New Features
Ad-hoc filters support:
* If there is an Ad-hoc variable, plugin will fetch all columns of all tables of all databases (except system database) as tags.
So in dropdown menu will be options like `database.table.column`
* If there are ENUM columns, plugin will fetch their options and use them as tag values
* Plugin will apply Ad-hoc filters to all queries on the dashboard if their settings `$database` and `$table` are the same
as Ad-hoc's `database.table`
* There are no option to apply OR operator for multiple Ad-hoc filters - see grafana/grafana#10918
* There are no option to use IN operator for Ad-hoc filters due to Grafana limitations

# 1.3.1 (2018-02-12)

## Fixes
Expand Down
23 changes: 23 additions & 0 deletions dist/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ Copy files to your [Grafana plugin directory](http://docs.grafana.org/plugins/in
* Templates
* Table view
* SingleStat view
* Ad-hoc filters


### Access to CH via HTTP
Expand Down Expand Up @@ -285,8 +286,30 @@ FROM some_table

// It is also possible to use query without macros

### Ad-hoc filters

If there is an Ad-hoc variable, plugin will fetch all columns of all tables of all databases (except system database) as tags.
So in dropdown menu will be options like `database.table.column`. If there are ENUM columns,
plugin will fetch their options and use them as tag values.

Plugin will apply Ad-hoc filters to all queries on the dashboard if their settings `$database` and `$table` are the same
as Ad-hoc's `database.table`

![ad-hoc](https://user-images.githubusercontent.com/2902918/37139531-ed67f222-22b6-11e8-8815-9268850f16fb.png)

// There are no option to apply OR operator for multiple Ad-hoc filters - see grafana/grafana#10918
// There are no option to use IN operator for Ad-hoc filters due to Grafana limitations


### FAQ

> Time series last point is not the real last point
Plugin extrapolates last datapoint if timerange is `last N` to avoid displaying of constantly decreasing graphs
when timestamp in table is rounded to minute or bigger.
If it so then in 99% cases last datapoint will be much less than previous one, because last minute is not finished yet.
That's why plugin checks prev datapoints and tries to predict last datapoint value just as it was already written into db.

> Why no alerts support?
Alerts feature requires changes in `Grafana`'s backend, which can't be extended for now. `Grafana`'s maintainers are working on this feature.
Expand Down
2 changes: 1 addition & 1 deletion dist/plugin.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,6 @@
"url": "https://github.com/Vertamedia/clickhouse-grafana"
}
],
"version": "1.3.1"
"version": "1.4.0"
}
}
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "vertamedia-clickhouse",
"version": "1.3.1",
"version": "1.4.0",
"description": "ClickHouse datasource for Grafana",
"scripts": {
"build": "grunt",
Expand Down
2 changes: 1 addition & 1 deletion src/plugin.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,6 @@
"url": "https://github.com/Vertamedia/clickhouse-grafana"
}
],
"version": "1.3.1"
"version": "1.4.0"
}
}

0 comments on commit 4277e42

Please sign in to comment.