-
Notifications
You must be signed in to change notification settings - Fork 177
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
2.0 beta2 documentation updates (#564)
* bump beta version * update docs for 2.0 beta 2
- Loading branch information
Showing
4 changed files
with
26 additions
and
32 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,33 +1,11 @@ | ||
# InfluxDB Support | ||
|
||
Trickster 1.0 provides support for accelerating InfluxDB queries that return time series data normally visualized on a dashboard. Acceleration works by using the Time Series Delta Proxy Cache to minimize the number and time range of queries to the upstream InfluxDB server. | ||
Trickster provides support for accelerating InfluxDB queries that return time series data normally visualized on a dashboard. Acceleration works by using the Time Series Delta Proxy Cache to minimize the number and time range of queries to the upstream InfluxDB server. | ||
|
||
## Scope of Support | ||
|
||
Trickster is tested with the built-in [InfluxDB DataSource Plugin for Grafana](https://grafana.com/grafana/plugins/influxdb) v5.0.0. | ||
|
||
Trickster uses pre-compiled Regular Expression pattern matches on the incoming InfluxDB query to deconstruct its components, determine if it is cacheable and, if so, what elements are factored into the cache key derivation. We also determine what parts of the query are template-able (e.g., `time >= $ts1 AND <= $ts2`) based on the provided absolute values, in order to normalize the query before hashing the cache key. | ||
Trickster uses InfluxDB-provided packages to parse and normalize queries for caching and acceleration. If you find query or response structures that are not yet supported, or providing inconsistent or unexpected results, we'd love for you to report those so we can further improve our InfluxDB support. | ||
|
||
If you find query or response structures that are not yet supported, or providing inconsistent or unexpected results, we'd love for you to report those. We also always welcome any contributions around this functionality. The regular expression patterns we currently use will likely grow in complexity as support for more query patterns is added. Thus, we may need to find a more robust query parsing solution, and welcome any assistance with that as well. | ||
|
||
Trickster currently supports the following InfluxDB query patterns (case-insensitive), which align with queries generated by the InfluxDB Data Source Plugin for Grafana: | ||
|
||
```sql | ||
SELECT field1 [, field2, field3...] | ||
FROM "exampledb"."example_table" | ||
WHERE ("some_field" = "some_val") | ||
AND $timeExpression | ||
GROUP BY time($duration) [, group2, group3...] | ||
``` | ||
|
||
The `$timeExpression` section must be in the format of `time <operator1> $ts1 [AND <operator2> $ts2]` | ||
|
||
Example `$timeExpression` strings: | ||
|
||
* `time >= now()` | ||
* `time >= 1574699000000ms` | ||
* `time >= 1574699000000ms AND time <= 1574699900000ms` | ||
|
||
$duration must be in the format of `<integer>ms` such as `60s`. | ||
|
||
The InfluxDB `epoch` HTTP request query parameter is currently required to be set to `ms`. | ||
Trickster supports integrations with InfluxDB 1.x and 2.0, however, the Flux language is not currently supported. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters