SQL updates and gap filling (#4911)

* ports upstream sql changes to docs, closes #4881

* WIP gapfill functions

* WIP gapfill docs

* gapfill function reference

* document how to fill gaps in data with sql, closes #4870

* Apply suggestions from code review

Co-authored-by: Jason Stirnaman <stirnamanj@gmail.com>

* updated phrase of date_bin_gapfill, ported content to dedicated

---------

Co-authored-by: Jason Stirnaman <stirnamanj@gmail.com>
pull/4914/head
Scott Anderson 2023-04-28 08:22:21 -06:00 committed by GitHub
parent 13eddccde0
commit 274d4a0444
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
27 changed files with 1806 additions and 394 deletions

8
assets/js/datetime.js Normal file
View File

@ -0,0 +1,8 @@
var date = new Date()
var currentTimestamp = date.toISOString().replace(/^(.*)(\.\d+)(Z)/, '$1$3') // 2023-01-01T12:34:56Z
var currentTime = date.toISOString().replace(/(^.*T)(.*)(Z)/, '$2') + '084216' // 12:34:56.000084216
var currentDate = date.toISOString().replace(/\d{2}\:\d{2}\:\d{2}\.\d*/, '00:00:00') // 2023-01-01T00:00:00Z
$('span.current-timestamp').text(currentTimestamp)
$('span.current-time').text(currentTime)
$('span.current-date').text(currentDate)

View File

@ -1,4 +0,0 @@
var date = new Date()
var timestamp = date.toISOString().replace(/^(.*)(\.\d+)(Z)/, '$1$3')
$('span.current-time').text(timestamp)

View File

@ -86,63 +86,63 @@ When scraped by Flux, these metrics return the following stream of tables:
| _time | _measurement | url | _field | _value |
| :------------------------ | :----------- | :---------------------------- | :---------------------------- | -----------: |
| {{< flux/current-time >}} | prometheus | http://localhost:8086/metrics | go_memstats_alloc_bytes_total | 1422764240.0 |
| {{< datetime/current-timestamp >}} | prometheus | http://localhost:8086/metrics | go_memstats_alloc_bytes_total | 1422764240.0 |
| _time | _measurement | url | _field | _value |
| :------------------------ | :----------- | :---------------------------- | :------------------------------ | --------: |
| {{< flux/current-time >}} | prometheus | http://localhost:8086/metrics | go_memstats_buck_hash_sys_bytes | 5259247.0 |
| {{< datetime/current-timestamp >}} | prometheus | http://localhost:8086/metrics | go_memstats_buck_hash_sys_bytes | 5259247.0 |
| _time | _measurement | task_type | url | le | _field | _value |
| :------------------------ | :----------- | :-------- | :---------------------------- | :--- | :-------------------------------- | -----: |
| {{< flux/current-time >}} | prometheus | system | http://localhost:8086/metrics | 0.25 | task_executor_run_latency_seconds | 4413 |
| {{< datetime/current-timestamp >}} | prometheus | system | http://localhost:8086/metrics | 0.25 | task_executor_run_latency_seconds | 4413 |
| _time | _measurement | task_type | url | le | _field | _value |
| :------------------------ | :----------- | :-------- | :---------------------------- | :-- | :-------------------------------- | -----: |
| {{< flux/current-time >}} | prometheus | system | http://localhost:8086/metrics | 0.5 | task_executor_run_latency_seconds | 11901 |
| {{< datetime/current-timestamp >}} | prometheus | system | http://localhost:8086/metrics | 0.5 | task_executor_run_latency_seconds | 11901 |
| _time | _measurement | task_type | url | le | _field | _value |
| :------------------------ | :----------- | :-------- | :---------------------------- | :-- | :-------------------------------- | -----: |
| {{< flux/current-time >}} | prometheus | system | http://localhost:8086/metrics | 1 | task_executor_run_latency_seconds | 12565 |
| {{< datetime/current-timestamp >}} | prometheus | system | http://localhost:8086/metrics | 1 | task_executor_run_latency_seconds | 12565 |
| _time | _measurement | task_type | url | le | _field | _value |
| :------------------------ | :----------- | :-------- | :---------------------------- | :-- | :-------------------------------- | -----: |
| {{< flux/current-time >}} | prometheus | system | http://localhost:8086/metrics | 2.5 | task_executor_run_latency_seconds | 12823 |
| {{< datetime/current-timestamp >}} | prometheus | system | http://localhost:8086/metrics | 2.5 | task_executor_run_latency_seconds | 12823 |
| _time | _measurement | task_type | url | le | _field | _value |
| :------------------------ | :----------- | :-------- | :---------------------------- | :-- | :-------------------------------- | -----: |
| {{< flux/current-time >}} | prometheus | system | http://localhost:8086/metrics | 5 | task_executor_run_latency_seconds | 12844 |
| {{< datetime/current-timestamp >}} | prometheus | system | http://localhost:8086/metrics | 5 | task_executor_run_latency_seconds | 12844 |
| _time | _measurement | task_type | url | le | _field | _value |
| :------------------------ | :----------- | :-------- | :---------------------------- | :--- | :-------------------------------- | -----: |
| {{< flux/current-time >}} | prometheus | system | http://localhost:8086/metrics | +Inf | task_executor_run_latency_seconds | 74429 |
| {{< datetime/current-timestamp >}} | prometheus | system | http://localhost:8086/metrics | +Inf | task_executor_run_latency_seconds | 74429 |
| _time | _measurement | task_type | url | _field | _value |
| :------------------------ | :----------- | :-------- | :---------------------------- | :------------------------------------ | ----------------: |
| {{< flux/current-time >}} | prometheus | system | http://localhost:8086/metrics | task_executor_run_latency_seconds_sum | 425678353867.9698 |
| {{< datetime/current-timestamp >}} | prometheus | system | http://localhost:8086/metrics | task_executor_run_latency_seconds_sum | 425678353867.9698 |
| _time | _measurement | task_type | url | _field | _value |
| :------------------------ | :----------- | :-------- | :---------------------------- | :-------------------------------------- | -----: |
| {{< flux/current-time >}} | prometheus | system | http://localhost:8086/metrics | task_executor_run_latency_seconds_count | 74429 |
| {{< datetime/current-timestamp >}} | prometheus | system | http://localhost:8086/metrics | task_executor_run_latency_seconds_count | 74429 |
| _time | _measurement | task_type | taskID | url | quantile | _field | _value |
| :------------------------ | :----------- | :-------- | :---------------- | :---------------------------- | :------- | :------------------------- | ----------: |
| {{< flux/current-time >}} | prometheus | threshold | 00xx0Xx0xx00XX0x0 | http://localhost:8086/metrics | 0.5 | task_executor_run_duration | 5.178160855 |
| {{< datetime/current-timestamp >}} | prometheus | threshold | 00xx0Xx0xx00XX0x0 | http://localhost:8086/metrics | 0.5 | task_executor_run_duration | 5.178160855 |
| _time | _measurement | task_type | taskID | url | quantile | _field | _value |
| :------------------------ | :----------- | :-------- | :---------------- | :---------------------------- | :------- | :------------------------- | ----------: |
| {{< flux/current-time >}} | prometheus | threshold | 00xx0Xx0xx00XX0x0 | http://localhost:8086/metrics | 0.9 | task_executor_run_duration | 5.178160855 |
| {{< datetime/current-timestamp >}} | prometheus | threshold | 00xx0Xx0xx00XX0x0 | http://localhost:8086/metrics | 0.9 | task_executor_run_duration | 5.178160855 |
| _time | _measurement | task_type | taskID | url | quantile | _field | _value |
| :------------------------ | :----------- | :-------- | :---------------- | :---------------------------- | :------- | :------------------------- | ----------: |
| {{< flux/current-time >}} | prometheus | threshold | 00xx0Xx0xx00XX0x0 | http://localhost:8086/metrics | 0.99 | task_executor_run_duration | 5.178160855 |
| {{< datetime/current-timestamp >}} | prometheus | threshold | 00xx0Xx0xx00XX0x0 | http://localhost:8086/metrics | 0.99 | task_executor_run_duration | 5.178160855 |
| _time | _measurement | task_type | taskID | url | _field | _value |
| :------------------------ | :----------- | :-------- | :---------------- | :---------------------------- | :----------------------------- | -----------------: |
| {{< flux/current-time >}} | prometheus | threshold | 00xx0Xx0xx00XX0x0 | http://localhost:8086/metrics | task_executor_run_duration_sum | 2121.9758301650004 |
| {{< datetime/current-timestamp >}} | prometheus | threshold | 00xx0Xx0xx00XX0x0 | http://localhost:8086/metrics | task_executor_run_duration_sum | 2121.9758301650004 |
| _time | _measurement | task_type | taskID | url | _field | _value |
| :------------------------ | :----------- | :-------- | :---------------- | :---------------------------- | :------------------------------- | -----: |
| {{< flux/current-time >}} | prometheus | threshold | 00xx0Xx0xx00XX0x0 | http://localhost:8086/metrics | task_executor_run_duration_count | 570 |
| {{< datetime/current-timestamp >}} | prometheus | threshold | 00xx0Xx0xx00XX0x0 | http://localhost:8086/metrics | task_executor_run_duration_count | 570 |
{{% note %}}
#### Different data structures for scraped Prometheus metrics

View File

@ -0,0 +1,138 @@
---
title: Fill gaps in data
seotitle: Fill gaps in data with SQL
description: >
Use [`date_bin_gapfill`](/influxdb/cloud-dedicated/reference/sql/functions/time-and-date/#date_bin_gapfill)
with [`interpolate`](/influxdb/cloud-dedicated/reference/sql/functions/misc/#interpolate)
or [`locf`](/influxdb/cloud-dedicated/reference/sql/functions/misc/#locf) to
fill gaps of time where no data is returned.
menu:
influxdb_cloud_dedicated:
parent: Query with SQL
weight: 206
list_code_example: |
```sql
SELECT
date_bin_gapfill(INTERVAL '30 minutes', time) as _time,
room,
interpolate(avg(temp))
FROM home
WHERE
time >= '2022-01-01T08:00:00Z'
AND time <= '2022-01-01T10:00:00Z'
GROUP BY _time, room
```
---
Use [`date_bin_gapfill`](/influxdb/cloud-dedicated/reference/sql/functions/time-and-date/#date_bin_gapfill)
with [`interpolate`](/influxdb/cloud-dedicated/reference/sql/functions/misc/#interpolate)
or [`locf`](/influxdb/cloud-dedicated/reference/sql/functions/misc/#locf) to
fill gaps of time where no data is returned.
Gap-filling SQL queries handle missing data in time series data by filling in
gaps with interpolated values or by carrying forward the last available observation.
**To fill gaps in data:**
1. Use the `date_bin_gapfill` function to window your data into time-based groups
and apply an [aggregate function](/influxdb/cloud-dedicated/reference/sql/functions/aggregate/)
to each window. If no data exists in a window, `date_bin_gapfill` inserts
a new row with the starting timestamp of the window, all columns in the
`GROUP BY` clause populated, and null values for the queried fields.
2. Use either `interpolate` or `locf` to fill the inserted null values in the specified column.
- **interpolate**: fills null values by interpolating values between non-null values.
- **locf**: fills null values by carrying the last observed value forward.
{{% note %}}
The expression passed to `interpolate` or `locf` must use an
[aggregate function](/influxdb/cloud-dedicated/reference/sql/functions/aggregate/).
{{% /note %}}
3. Include a `WHERE` clause that sets upper and lower time bounds.
For example:
{{% influxdb/custom-timestamps %}}
```sql
WHERE time >= '2022-01-01T08:00:00Z' AND time <= '2022-01-01T10:00:00Z'
```
{{% /influxdb/custom-timestamps %}}
## Example of filling gaps in data
The following examples use the sample data set provided in
[Get started with InfluxDB tutorial](/influxdb/cloud-dedicated/get-started/write/#construct-line-protocol)
to show how to use `date_bin_gapfill` and the different results of `interplate`
and `locf`.
{{< tabs-wrapper >}}
{{% tabs "small" %}}
[interpolate](#)
[locf](#)
{{% /tabs %}}
{{% tab-content %}}
{{% influxdb/custom-timestamps %}}
```sql
SELECT
date_bin_gapfill(INTERVAL '30 minutes', time) as _time,
room,
interpolate(avg(temp))
FROM home
WHERE
time >= '2022-01-01T08:00:00Z'
AND time <= '2022-01-01T10:00:00Z'
GROUP BY _time, room
```
| _time | room | AVG(home.temp) |
| :------------------- | :---------- | -------------: |
| 2022-01-01T08:00:00Z | Kitchen | 21 |
| 2022-01-01T08:30:00Z | Kitchen | 22 |
| 2022-01-01T09:00:00Z | Kitchen | 23 |
| 2022-01-01T09:30:00Z | Kitchen | 22.85 |
| 2022-01-01T10:00:00Z | Kitchen | 22.7 |
| 2022-01-01T08:00:00Z | Living Room | 21.1 |
| 2022-01-01T08:30:00Z | Living Room | 21.25 |
| 2022-01-01T09:00:00Z | Living Room | 21.4 |
| 2022-01-01T09:30:00Z | Living Room | 21.6 |
| 2022-01-01T10:00:00Z | Living Room | 21.8 |
{{% /influxdb/custom-timestamps %}}
{{% /tab-content %}}
{{% tab-content %}}
{{% influxdb/custom-timestamps %}}
```sql
SELECT
date_bin_gapfill(INTERVAL '30 minutes', time) as _time,
room,
locf(avg(temp))
FROM home
WHERE
time >= '2022-01-01T08:00:00Z'
AND time <= '2022-01-01T10:00:00Z'
GROUP BY _time, room
```
| _time | room | AVG(home.temp) |
| :------------------- | :---------- | -------------: |
| 2022-01-01T08:00:00Z | Kitchen | 21 |
| 2022-01-01T08:30:00Z | Kitchen | 21 |
| 2022-01-01T09:00:00Z | Kitchen | 23 |
| 2022-01-01T09:30:00Z | Kitchen | 23 |
| 2022-01-01T10:00:00Z | Kitchen | 22.7 |
| 2022-01-01T08:00:00Z | Living Room | 21.1 |
| 2022-01-01T08:30:00Z | Living Room | 21.1 |
| 2022-01-01T09:00:00Z | Living Room | 21.4 |
| 2022-01-01T09:30:00Z | Living Room | 21.4 |
| 2022-01-01T10:00:00Z | Living Room | 21.8 |
{{% /influxdb/custom-timestamps %}}
{{% /tab-content %}}
{{< /tabs-wrapper >}}

View File

@ -17,10 +17,12 @@ group or SQL partition and return a single row per group containing the
aggregate value.
- [General aggregate functions](#general-aggregate-functions)
- [array_agg](#array_agg)
- [avg](#avg)
- [count](#count)
- [max](#max)
- [mean](#mean)
- [median](#median)
- [min](#min)
- [sum](#sum)
- [Statistical aggregate functions](#statistical-aggregate-functions)
@ -44,12 +46,56 @@ aggregate value.
## General aggregate functions
- [array_agg](#array_agg)
- [avg](#avg)
- [count](#count)
- [max](#max)
- [mean](#mean)
- [median](#median)
- [min](#min)
- [sum](#sum)
### array_agg
Returns an array created from the expression elements.
{{% note %}}
`array_agg` returns a `LIST` arrow type which is not supported by InfluxDB.
To use with InfluxDB, use bracket notation to reference the index of an element
in the returned array. Arrays are 1-indexed.
{{% /note %}}
```sql
array_agg(expression)
```
#### Arguments
- **expression**: Expression to operate on.
Can be a constant, column, or function, and any combination of arithmetic operators.
{{< expand-wrapper >}}
{{% expand "View `array_agg` query example" %}}
_The following example uses the sample data set provided in the
[Get started with InfluxDB tutorial](/influxdb/cloud-dedicated/get-started/write/#construct-line-protocol)._
```sql
SELECT
room,
array_agg(temp)[3] AS '3rd_temp'
FROM home
GROUP BY room
```
| room | 3rd_temp |
| :---------- | -------: |
| Kitchen | 22.7 |
| Living Room | 21.8 |
{{% /expand %}}
{{< /expand-wrapper >}}
### avg
Returns the average of numeric values in the specified column.
@ -161,6 +207,38 @@ GROUP BY location
_Alias of [avg](#avg)._
### median
Returns the median value in the specified column.
```
median(expression)
```
#### Arguments
- **expression**: Expression to operate on.
Can be a constant, column, or function, and any combination of arithmetic operators.
{{< expand-wrapper >}}
{{% expand "View `median` query example" %}}
```sql
SELECT
location,
median(water_level) AS water_level_max
FROM h2o_feet
GROUP BY location
```
| location | water_level_median |
| :----------- | -----------------: |
| coyote_creek | 5.4645 |
| santa_monica | 3.471 |
{{% /expand %}}
{{< /expand-wrapper >}}
### min
Returns the minimum value in the specified column.

View File

@ -23,9 +23,11 @@ performing mathematic operations:
- [exp](#exp)
- [floor](#floor)
- [ln](#ln)
- [log](#log)
- [log10](#log10)
- [log2](#log2)
- [power](#power)
- [pow](#pow)
- [random](#random)
- [round](#round)
- [signum](#signum)
@ -356,6 +358,47 @@ SELECT ln(temp) AS ln FROM home LIMIT 3
{{% /expand %}}
{{< /expand-wrapper >}}
## log
Returns the base-x logarithm of a number.
```
log([base, ]numeric_expression)
```
#### Arguments
- **base**: Base numeric expression to operate on.
Can be a constant, column, or function, and any combination of arithmetic operators.
Default is `10`.
- **numeric_expression**: Numeric expression to operate on.
Can be a constant, column, or function, and any combination of arithmetic operators.
{{< expand-wrapper >}}
{{% expand "View `log` query example" %}}
_The following example uses the sample data set provided in the
[Get started with InfluxDB tutorial](/influxdb/cloud-dedicated/get-started/write/#construct-line-protocol)._
```sql
SELECT
temp,
log(2, temp) AS temp_log2,
log(4, temp) AS temp_log4,
log(temp) AS temp_log10
FROM home
LIMIT 3
```
| temp | temp_log2 | temp_log4 | temp_log10 |
| :--- | ----------------: | -----------------: | -----------------: |
| 21 | 4.392317422778761 | 2.1961587113893803 | 1.322219294733919 |
| 23 | 4.523561956057013 | 2.2617809780285065 | 1.3617278360175928 |
| 22.7 | 4.504620392403553 | 2.2523101962017766 | 1.3560258571931225 |
{{% /expand %}}
{{< /expand-wrapper >}}
## log10
Returns the base-10 logarithm of a number.
@ -390,7 +433,7 @@ SELECT log10(temp) AS log10 FROM home LIMIT 3
## log2
Returns the base-2 logarithm or a number.
Returns the base-2 logarithm of a number.
```sql
log2(numeric_expression)
@ -422,15 +465,19 @@ SELECT log2(temp) AS log2 FROM home LIMIT 3
## power
Returns a base number raised to the power of an exponent.
Returns a base expression raised to the power of an exponent.
```sql
power(base, exponent)
```
##### Aliases
- `pow`
##### Arguments
- **power**: Base numeric expression to operate on.
- **base**: Numeric expression to operate on.
Can be a constant, column, or function, and any combination of arithmetic operators.
- **exponent**: Exponent numeric expression to operate on.
Can be a constant, column, or function, and any combination of arithmetic operators.
@ -454,6 +501,10 @@ SELECT power(temp, hum * .1) AS power FROM home LIMIT 3
{{% /expand %}}
{{< /expand-wrapper >}}
## `pow`
_Alias of [power](#power)._
## random
Returns a random float value between 0 and 1.

View File

@ -15,9 +15,11 @@ for performing a variety of operations:
- [arrow_cast](#arrow_cast)
- [arrow_typeof](#arrow_typeof)
- [interpolate](#interpolate)
- [locf](#locf)
<!-- - [struct](#struct) -->
### `arrow_cast`
## arrow_cast
Casts a value to a specific Arrow data type.
@ -93,6 +95,128 @@ LIMIT 1
{{% /expand %}}
{{< /expand-wrapper >}}
## interpolate
Fills null values in a specified aggregated column by interpolating values
from existing values.
Must be used with [`date_bin_gapfill`](/influxdb/cloud-dedicated/reference/sql/functions/time-and-date/#date_bin_gapfill).
```sql
interpolate(aggregate_expression)
```
##### Arguments
- **aggregate_expression**: Aggregate operation on a specified expression.
The operation can use any [aggregate function](/influxdb/cloud-dedicated/reference/sql/functions/aggregate/).
The expression can be a constant, column, or function, and any combination of
arithmetic operators supported by the aggregate function.
##### Related functions
[date_bin_gapfill](/influxdb/cloud-dedicated/reference/sql/functions/time-and-date/#date_bin_gapfill),
[locf](#locf)
{{< expand-wrapper >}}
{{% expand "View `interpolate` query example" %}}
_The following example uses the sample data set provided in the
[Get started with InfluxDB tutorial](/influxdb/cloud-dedicated/get-started/write/#construct-line-protocol)._
{{% influxdb/custom-timestamps %}}
```sql
SELECT
date_bin_gapfill(INTERVAL '30 minutes', time) as _time,
room,
interpolate(avg(temp))
FROM home
WHERE
time >= '2022-01-01T08:00:00Z'
AND time <= '2022-01-01T10:00:00Z'
GROUP BY _time, room
```
| _time | room | AVG(home.temp) |
| :------------------- | :---------- | -------------: |
| 2022-01-01T08:00:00Z | Kitchen | 21 |
| 2022-01-01T08:30:00Z | Kitchen | 22 |
| 2022-01-01T09:00:00Z | Kitchen | 23 |
| 2022-01-01T09:30:00Z | Kitchen | 22.85 |
| 2022-01-01T10:00:00Z | Kitchen | 22.7 |
| 2022-01-01T08:00:00Z | Living Room | 21.1 |
| 2022-01-01T08:30:00Z | Living Room | 21.25 |
| 2022-01-01T09:00:00Z | Living Room | 21.4 |
| 2022-01-01T09:30:00Z | Living Room | 21.6 |
| 2022-01-01T10:00:00Z | Living Room | 21.8 |
{{% /influxdb/custom-timestamps %}}
{{% /expand %}}
{{< /expand-wrapper >}}
## locf
Fills null values in a specified aggregated column by carrying the last observed
value forward.
Must be used with [`date_bin_gapfill`](/influxdb/cloud-dedicated/reference/sql/functions/time-and-date/#date_bin_gapfill).
_LOCF is an initialism of "last observation carried forward."_
```sql
locf(aggregate_expression)
```
##### Arguments
- **aggregate_expression**: Aggregate operation on a specified expression.
The operation can use any [aggregate function](/influxdb/cloud-dedicated/reference/sql/functions/aggregate/).
The expression can be a constant, column, or function, and any combination of
arithmetic operators supported by the aggregate function.
##### Related functions
[date_bin_gapfill](/influxdb/cloud-dedicated/reference/sql/functions/time-and-date/#date_bin_gapfill),
[interpolate](#interpolate)
{{< expand-wrapper >}}
{{% expand "View `locf` query example" %}}
_The following example uses the sample data set provided in the
[Get started with InfluxDB tutorial](/influxdb/cloud-dedicated/get-started/write/#construct-line-protocol)._
{{% influxdb/custom-timestamps %}}
```sql
SELECT
date_bin_gapfill(INTERVAL '30 minutes', time) as _time,
room,
locf(avg(temp))
FROM home
WHERE
time >= '2022-01-01T08:00:00Z'
AND time <= '2022-01-01T10:00:00Z'
GROUP BY _time, room
```
| _time | room | AVG(home.temp) |
| :------------------- | :---------- | -------------: |
| 2022-01-01T08:00:00Z | Kitchen | 21 |
| 2022-01-01T08:30:00Z | Kitchen | 21 |
| 2022-01-01T09:00:00Z | Kitchen | 23 |
| 2022-01-01T09:30:00Z | Kitchen | 23 |
| 2022-01-01T10:00:00Z | Kitchen | 22.7 |
| 2022-01-01T08:00:00Z | Living Room | 21.1 |
| 2022-01-01T08:30:00Z | Living Room | 21.1 |
| 2022-01-01T09:00:00Z | Living Room | 21.4 |
| 2022-01-01T09:30:00Z | Living Room | 21.4 |
| 2022-01-01T10:00:00Z | Living Room | 21.8 |
{{% /influxdb/custom-timestamps %}}
{{% /expand %}}
{{< /expand-wrapper >}}
<!--
## struct

View File

@ -43,6 +43,7 @@ operating on string values:
- [translate](#translate)
- [trim](#trim)
- [upper](#upper)
- [uuid](#uuid)
## ascii
@ -485,7 +486,7 @@ FROM home
## lpad
Pads the left side a string with another string to a specified string length.
Pads the left side of a string with another string to a specified string length.
```sql
lpad(str, n[, padding_str])
@ -794,7 +795,8 @@ FROM home
{{< /expand-wrapper >}}
## rpad
right side a string with another string to a specified string length.
Pads the right side of a string with another string to a specified string length.
```sql
rpad(str, n[, padding_str])
@ -878,7 +880,7 @@ FROM
## split_part
Splits a string based on a specified delimiter and returns the substring a the
Splits a string based on a specified delimiter and returns the substring in the
specified position.
```sql
@ -1183,3 +1185,32 @@ FROM home
{{% /expand %}}
{{< /expand-wrapper >}}
## uuid
Returns a UUID v4 string value that is unique per row.
```sql
uuid()
```
{{< expand-wrapper >}}
{{% expand "View `upper` query example" %}}
_The following example uses the sample data set provided in the
[Get started with InfluxDB tutorial](/influxdb/cloud-dedicated/get-started/write/#construct-line-protocol)._
```sql
SELECT
room,
uuid() AS uuid
FROM (SELECT DISTINCT room FROM home)
```
| room | uuid |
| :---------- | :----------------------------------: |
| Kitchen | f0b41da9-e334-4b7d-b925-a54ca6b082f3 |
| Living Room | c31be90e-c4ed-4304-b633-47b969ef3ab6 |
{{% /expand %}}
{{< /expand-wrapper >}}

View File

@ -12,44 +12,109 @@ weight: 305
InfluxDB's SQL implementation supports time and date functions that are useful when working with time series data.
- [now](#now)
- [current_date](#current_date)
- [current_time](#current_time)
- [date_bin](#date_bin)
- [date_trunc](#date_trunc)
- [date_bin_gapfill](#date_bin_gapfill)
- [date_trunc](#date_trunc)
- [datetrunc](#datetrunc)
- [date_part](#date_part)
- [datepart](#datepart)
- [extract](#extract)
- [from_unixtime](#from_unixtime)
- [now](#now)
- [to_timestamp](#to_timestamp)
- [to_timestamp_millis](#to_timestamp_millis)
- [to_timestamp_micros](#to_timestamp_micros)
- [to_timestamp_seconds](#to_timestamp_seconds)
- [from_unixtime](#from_unixtime)
### now
## current_date
Returns the current UTC timestamp.
Returns the current UTC date.
The `now()` return value is determined at query time and will return the same timestamp,
no matter when in the query plan the function executes.
{{% note %}}
`current_date` returns a `DATE32` Arrow type, which isn't supported by InfluxDB.
To use with InfluxDB, [cast the return value to a timestamp](/influxdb/cloud-dedicated/query-data/sql/cast-types/#cast-to-a-timestamp-type).
{{% /note %}}
```sql
now()
The `current_date()` return value is determined at query time and will return
the same date, no matter when in the query plan the function executes.
```
current_date()
```
{{< expand-wrapper >}}
{{% expand "View `now` query example" %}}
{{% expand "View `current_date` query example" %}}
_The following example uses the sample data set provided in
[Get started with InfluxDB tutorial](/influxdb/cloud-dedicated/get-started/write/#construct-line-protocol)._
```sql
SELECT
"water_level",
"time"
FROM h2o_feet
time,
temp,
current_date()::TIMESTAMP AS current_date
FROM home
WHERE
time <= now() - interval '12 minutes'
time > current_date()::TIMESTAMP - INTERVAL '5 years'
LIMIT 3
```
{{% influxdb/custom-timestamps %}}
| time | temp | current_date |
| :------------------- | ---: | :---------------------------- |
| 2022-01-01T08:00:00Z | 21 | {{< datetime/current-date >}} |
| 2022-01-01T09:00:00Z | 23 | {{< datetime/current-date >}} |
| 2022-01-01T10:00:00Z | 22.7 | {{< datetime/current-date >}} |
{{% /influxdb/custom-timestamps %}}
{{% /expand %}}
{{< /expand-wrapper >}}
### date_bin
## current_time
Returns the current UTC time.
{{% note %}}
`current_date` returns a `TIME64` Arrow type, which isn't supported by InfluxDB.
To use with InfluxDB, [cast the return value to a string](/influxdb/cloud-dedicated/query-data/sql/cast-types/#cast-to-a-string-type).
{{% /note %}}
The `current_time()` return value is determined at query time and will return the same time,
no matter when in the query plan the function executes.
```
current_time()
```
{{< expand-wrapper >}}
{{% expand "View `current_time` query example" %}}
_The following example uses the sample data set provided in the
[Get started with InfluxDB tutorial](/influxdb/cloud-dedicated/get-started/write/#construct-line-protocol)._
```sql
SELECT
time,
temp,
current_time()::STRING AS current_time
FROM home
LIMIT 3
```
| time | temp | current_time |
| :------------------- | ---: | :---------------------------- |
| 2022-01-01T08:00:00Z | 21 | {{< datetime/current-time >}} |
| 2022-01-01T09:00:00Z | 23 | {{< datetime/current-time >}} |
| 2022-01-01T10:00:00Z | 22.7 | {{< datetime/current-time >}} |
{{% /expand %}}
{{< /expand-wrapper >}}
## date_bin
Calculates time intervals and returns the start of the interval nearest to the specified timestamp.
Use `date_bin` to downsample time series data by grouping rows into time-based "bins" or "windows"
@ -58,7 +123,7 @@ and applying an aggregate or selector function to each window.
For example, if you "bin" or "window" data into 15 minute intervals, an input timestamp of `2023-01-01T18:18:18Z` will be updated to the start time of the 15 minute bin it is in: `2023-01-01T18:15:00Z`.
```sql
date_bin(interval, expression, origin-timestamp)
date_bin(interval, expression[, origin_timestamp])
```
##### Arguments:
@ -66,7 +131,8 @@ date_bin(interval, expression, origin-timestamp)
- **interval**: Bin interval.
- **expression**: Time expression to operate on.
Can be a constant, column, or function.
- **timestamp**: Starting point used to determine bin boundaries.
- **origin_timestamp**: Starting point used to determine bin boundaries.
_Default is the Unix epoch._
The following intervals are supported:
@ -75,10 +141,10 @@ The following intervals are supported:
- milliseconds
- seconds
- minutes
- hours
- days
- hours
- days
- weeks
- months
- months
- years
- century
@ -113,7 +179,181 @@ ORDER BY time DESC
{{% /expand %}}
{{< /expand-wrapper >}}
### date_trunc
## date_bin_gapfill
Calculates time intervals and returns the start of the interval nearest to the specified timestamp.
If no rows exist in a time interval, a new row is inserted with a `time` value
set to the interval start time, all columns in the `GROUP BY` clause populated,
and null values in aggregate columns.
Use `date_bin_gapfill` with [`interpolate`](/influxdb/cloud-dedicated/reference/sql/functions/misc/#interpolate)
or [`locf`](/influxdb/cloud-dedicated/reference/sql/functions/misc/#locf) to
[fill gaps in data]()
at specified time intervals.
```sql
date_bin_gapfill(interval, expression[, origin_timestamp])
```
{{% note %}}
`date_bin_gapfill` requires [time bounds](/influxdb/cloud-dedicated/query-data/sql/basic-query/#query-data-within-time-boundaries)
in the `WHERE` clause.
{{% /note %}}
##### Arguments:
- **interval**: Bin interval.
- **expression**: Time expression to operate on.
Can be a constant, column, or function.
- **origin_timestamp**: Starting point used to determine bin boundaries.
_Default is the Unix epoch._
The following intervals are supported:
- nanoseconds
- microseconds
- milliseconds
- seconds
- minutes
- hours
- days
- weeks
- months
- years
- century
##### Related functions
[interpolate](/influxdb/cloud-dedicated/reference/sql/functions/misc/#interpolate),
[locf](/influxdb/cloud-dedicated/reference/sql/functions/misc/#locf)
{{< expand-wrapper >}}
{{% expand "View `date_bin_gapfill` query examples" %}}
_The following examples use the sample data set provided in the
[Get started with InfluxDB tutorial](/influxdb/cloud-dedicated/get-started/write/#construct-line-protocol)._
- [Use date_bin_gapfill to insert rows when no rows exists](#use-date_bin_gapfill-to-insert-rows-when-no-rows-exists)
- [Use date_bin_gapfill to fill gaps in data](#use-date_bin_gapfill-to-fill-gaps-in-data)
#### Use date_bin_gapfill to insert rows when no rows exists
{{% influxdb/custom-timestamps %}}
```sql
SELECT
date_bin_gapfill(INTERVAL '30 minutes', time) as _time,
room,
avg(temp) as temp
FROM home
WHERE
time >= '2022-01-01T08:00:00Z'
AND time <= '2022-01-01T10:00:00Z'
GROUP BY _time, room
```
| _time | room | temp |
| :------------------- | :---------- | ---: |
| 2022-01-01T08:00:00Z | Kitchen | 21 |
| 2022-01-01T08:30:00Z | Kitchen | |
| 2022-01-01T09:00:00Z | Kitchen | 23 |
| 2022-01-01T09:30:00Z | Kitchen | |
| 2022-01-01T10:00:00Z | Kitchen | 22.7 |
| 2022-01-01T08:00:00Z | Living Room | 21.1 |
| 2022-01-01T08:30:00Z | Living Room | |
| 2022-01-01T09:00:00Z | Living Room | 21.4 |
| 2022-01-01T09:30:00Z | Living Room | |
| 2022-01-01T10:00:00Z | Living Room | 21.8 |
{{% /influxdb/custom-timestamps %}}
#### Use date_bin_gapfill to fill gaps in data
Use `interpolate` and `locf` to fill the null values in rows inserted by
`date_bin_gapfill`.
{{< tabs-wrapper >}}
{{% tabs "small" %}}
[interpolate](#)
[locf](#)
{{% /tabs %}}
{{% tab-content %}}
The example below uses [`interpolate`](/influxdb/cloud-dedicated/reference/sql/functions/misc/#interpolate)
to fill null values by interpolating values between non-null values.
{{% influxdb/custom-timestamps %}}
```sql
SELECT
date_bin_gapfill(INTERVAL '30 minutes', time) as _time,
room,
interpolate(avg(temp))
FROM home
WHERE
time >= '2022-01-01T08:00:00Z'
AND time <= '2022-01-01T10:00:00Z'
GROUP BY _time, room
```
| _time | room | AVG(home.temp) |
| :------------------- | :---------- | -------------: |
| 2022-01-01T08:00:00Z | Kitchen | 21 |
| 2022-01-01T08:30:00Z | Kitchen | 22 |
| 2022-01-01T09:00:00Z | Kitchen | 23 |
| 2022-01-01T09:30:00Z | Kitchen | 22.85 |
| 2022-01-01T10:00:00Z | Kitchen | 22.7 |
| 2022-01-01T08:00:00Z | Living Room | 21.1 |
| 2022-01-01T08:30:00Z | Living Room | 21.25 |
| 2022-01-01T09:00:00Z | Living Room | 21.4 |
| 2022-01-01T09:30:00Z | Living Room | 21.6 |
| 2022-01-01T10:00:00Z | Living Room | 21.8 |
{{% /influxdb/custom-timestamps %}}
{{% /tab-content %}}
{{% tab-content %}}
The example below uses [`locf`](/influxdb/cloud-dedicated/reference/sql/functions/misc/#locf)
to fill null values by carrying the last observed value forward.
{{% influxdb/custom-timestamps %}}
```sql
SELECT
date_bin_gapfill(INTERVAL '30 minutes', time) as _time,
room,
locf(avg(temp))
FROM home
WHERE
time >= '2022-01-01T08:00:00Z'
AND time <= '2022-01-01T10:00:00Z'
GROUP BY _time, room
```
| _time | room | AVG(home.temp) |
| :------------------- | :---------- | -------------: |
| 2022-01-01T08:00:00Z | Kitchen | 21 |
| 2022-01-01T08:30:00Z | Kitchen | 21 |
| 2022-01-01T09:00:00Z | Kitchen | 23 |
| 2022-01-01T09:30:00Z | Kitchen | 23 |
| 2022-01-01T10:00:00Z | Kitchen | 22.7 |
| 2022-01-01T08:00:00Z | Living Room | 21.1 |
| 2022-01-01T08:30:00Z | Living Room | 21.1 |
| 2022-01-01T09:00:00Z | Living Room | 21.4 |
| 2022-01-01T09:30:00Z | Living Room | 21.4 |
| 2022-01-01T10:00:00Z | Living Room | 21.8 |
{{% /influxdb/custom-timestamps %}}
{{% /tab-content %}}
{{< /tabs-wrapper >}}
{{% /expand %}}
{{< /expand-wrapper >}}
## date_trunc
Truncates a timestamp value to a specified precision.
@ -137,6 +377,10 @@ date_trunc(precision, expression)
- **expression**: Time expression to operate on.
Can be a constant, column, or function.
##### Aliases
- `datetrunc`
{{< expand-wrapper >}}
{{% expand "View `date_trunc` query examples" %}}
@ -189,7 +433,11 @@ ORDER BY week
{{% /expand %}}
{{< /expand-wrapper >}}
### date_part
## datetrunc
_Alias of [date_trunc](#date_trunc)._
## date_part
Returns the specified part of the date as an integer.
@ -218,6 +466,10 @@ date_part(part, expression)
- **expression**: Time expression to operate on.
Can be a constant, column, or function.
##### Aliases
- `datepart`
{{< expand-wrapper >}}
{{% expand "View `date_part` query examples" %}}
@ -246,7 +498,11 @@ ORDER BY time
{{% /expand %}}
{{< /expand-wrapper >}}
### extract
## datepart
_Alias of [date_part](#date_part)._
## extract
Returns a sub-field from a time value as an integer.
Similar to `date_part`, but with different arguments.
@ -294,7 +550,63 @@ LIMIT 1
{{% /expand %}}
{{< /expand-wrapper >}}
### to_timestamp
## from_unixtime
Converts an integer to RFC3339 timestamp format (`YYYY-MM-DDT00:00:00.000000000Z`).
Input is parsed as a [Unix nanosecond timestamp](/influxdb/cloud-dedicated/reference/glossary/#unix-timestamp)
and returns the corresponding RFC3339 timestamp.
```sql
from_unixtime(expression)
```
##### Arguments:
- **expression**: Integer expression to operate on.
Can be a constant, column, or function, and any combination of arithmetic operators.
{{< expand-wrapper >}}
{{% expand "View `from_unixtime` query example" %}}
```sql
SELECT
from_unixtime(1672531200000000000) AS RFC3339
```
| RFC3339 |
| :------------------- |
| 2023-01-01T00:00:00Z |
{{% /expand %}}
{{< /expand-wrapper >}}
## now
Returns the current UTC timestamp.
The `now()` return value is determined at query time and will return the same timestamp,
no matter when in the query plan the function executes.
```sql
now()
```
{{< expand-wrapper >}}
{{% expand "View `now` query example" %}}
```sql
SELECT
"water_level",
"time"
FROM h2o_feet
WHERE
time <= now() - interval '12 minutes'
```
{{% /expand %}}
{{< /expand-wrapper >}}
## to_timestamp
Converts a value to RFC3339 nanosecond timestamp format (`YYYY-MM-DDT00:00:00.000000000Z`).
Supports timestamp, integer, and unsigned integer types as input.
@ -326,7 +638,7 @@ LIMIT 1
{{% /expand %}}
{{< /expand-wrapper >}}
### to_timestamp_millis
## to_timestamp_millis
Converts a value to RFC3339 millisecond timestamp format (`YYYY-MM-DDT00:00:00.000Z`).
Supports timestamp, integer, and unsigned integer types as input.
@ -361,7 +673,7 @@ Results
{{% /expand %}}
{{< /expand-wrapper >}}
### to_timestamp_micros
## to_timestamp_micros
Converts a value to RFC3339 microsecond timestamp format (`YYYY-MM-DDT00:00:00.000000Z`).
Supports timestamp, integer, and unsigned integer types as input.
@ -394,7 +706,7 @@ LIMIT 1
{{% /expand %}}
{{< /expand-wrapper >}}
### to_timestamp_seconds
## to_timestamp_seconds
Converts a value to RFC3339 second timestamp format (`YYYY-MM-DDT00:00:00Z`).
Supports timestamp, integer, and unsigned integer types as input.
@ -427,34 +739,3 @@ LIMIT 1;
{{% /expand %}}
{{< /expand-wrapper >}}
### from_unixtime
Converts an integer to RFC3339 timestamp format (`YYYY-MM-DDT00:00:00.000000000Z`).
Input is parsed as a [Unix nanosecond timestamp](/influxdb/cloud-dedicated/reference/glossary/#unix-timestamp)
and returns the corresponding RFC3339 timestamp.
```sql
from_unixtime(expression)
```
##### Arguments:
- **expression**: Integer expression to operate on.
Can be a constant, column, or function, and any combination of arithmetic operators.
{{< expand-wrapper >}}
{{% expand "View `from_unixtime` query example" %}}
```sql
SELECT
from_unixtime(1672531200000000000) AS RFC3339
```
| RFC3339 |
| :------------------- |
| 2023-01-01T00:00:00Z |
{{% /expand %}}
{{< /expand-wrapper >}}

View File

@ -0,0 +1,138 @@
---
title: Fill gaps in data
seotitle: Fill gaps in data with SQL
description: >
Use [`date_bin_gapfill`](/influxdb/cloud-serverless/reference/sql/functions/time-and-date/#date_bin_gapfill)
with [`interpolate`](/influxdb/cloud-serverless/reference/sql/functions/misc/#interpolate)
or [`locf`](/influxdb/cloud-serverless/reference/sql/functions/misc/#locf) to
fill gaps of time where no data is returned.
menu:
influxdb_cloud_serverless:
parent: Query with SQL
weight: 206
list_code_example: |
```sql
SELECT
date_bin_gapfill(INTERVAL '30 minutes', time) as _time,
room,
interpolate(avg(temp))
FROM home
WHERE
time >= '2022-01-01T08:00:00Z'
AND time <= '2022-01-01T10:00:00Z'
GROUP BY _time, room
```
---
Use [`date_bin_gapfill`](/influxdb/cloud-serverless/reference/sql/functions/time-and-date/#date_bin_gapfill)
with [`interpolate`](/influxdb/cloud-serverless/reference/sql/functions/misc/#interpolate)
or [`locf`](/influxdb/cloud-serverless/reference/sql/functions/misc/#locf) to
fill gaps of time where no data is returned.
Gap-filling SQL queries handle missing data in time series data by filling in
gaps with interpolated values or by carrying forward the last available observation.
**To fill gaps in data:**
1. Use the `date_bin_gapfill` function to window your data into time-based groups
and apply an [aggregate function](/influxdb/cloud-serverless/reference/sql/functions/aggregate/)
to each window. If no data exists in a window, `date_bin_gapfill` inserts
a new row with the starting timestamp of the window, all columns in the
`GROUP BY` clause populated, and null values for the queried fields.
2. Use either `interpolate` or `locf` to fill the inserted null values in the specified column.
- **interpolate**: fills null values by interpolating values between non-null values.
- **locf**: fills null values by carrying the last observed value forward.
{{% note %}}
The expression passed to `interpolate` or `locf` must use an
[aggregate function](/influxdb/cloud-serverless/reference/sql/functions/aggregate/).
{{% /note %}}
3. Include a `WHERE` clause that sets upper and lower time bounds.
For example:
{{% influxdb/custom-timestamps %}}
```sql
WHERE time >= '2022-01-01T08:00:00Z' AND time <= '2022-01-01T10:00:00Z'
```
{{% /influxdb/custom-timestamps %}}
## Example of filling gaps in data
The following examples use the sample data set provided in
[Get started with InfluxDB tutorial](/influxdb/cloud-serverless/get-started/write/#construct-line-protocol)
to show how to use `date_bin_gapfill` and the different results of `interplate`
and `locf`.
{{< tabs-wrapper >}}
{{% tabs "small" %}}
[interpolate](#)
[locf](#)
{{% /tabs %}}
{{% tab-content %}}
{{% influxdb/custom-timestamps %}}
```sql
SELECT
date_bin_gapfill(INTERVAL '30 minutes', time) as _time,
room,
interpolate(avg(temp))
FROM home
WHERE
time >= '2022-01-01T08:00:00Z'
AND time <= '2022-01-01T10:00:00Z'
GROUP BY _time, room
```
| _time | room | AVG(home.temp) |
| :------------------- | :---------- | -------------: |
| 2022-01-01T08:00:00Z | Kitchen | 21 |
| 2022-01-01T08:30:00Z | Kitchen | 22 |
| 2022-01-01T09:00:00Z | Kitchen | 23 |
| 2022-01-01T09:30:00Z | Kitchen | 22.85 |
| 2022-01-01T10:00:00Z | Kitchen | 22.7 |
| 2022-01-01T08:00:00Z | Living Room | 21.1 |
| 2022-01-01T08:30:00Z | Living Room | 21.25 |
| 2022-01-01T09:00:00Z | Living Room | 21.4 |
| 2022-01-01T09:30:00Z | Living Room | 21.6 |
| 2022-01-01T10:00:00Z | Living Room | 21.8 |
{{% /influxdb/custom-timestamps %}}
{{% /tab-content %}}
{{% tab-content %}}
{{% influxdb/custom-timestamps %}}
```sql
SELECT
date_bin_gapfill(INTERVAL '30 minutes', time) as _time,
room,
locf(avg(temp))
FROM home
WHERE
time >= '2022-01-01T08:00:00Z'
AND time <= '2022-01-01T10:00:00Z'
GROUP BY _time, room
```
| _time | room | AVG(home.temp) |
| :------------------- | :---------- | -------------: |
| 2022-01-01T08:00:00Z | Kitchen | 21 |
| 2022-01-01T08:30:00Z | Kitchen | 21 |
| 2022-01-01T09:00:00Z | Kitchen | 23 |
| 2022-01-01T09:30:00Z | Kitchen | 23 |
| 2022-01-01T10:00:00Z | Kitchen | 22.7 |
| 2022-01-01T08:00:00Z | Living Room | 21.1 |
| 2022-01-01T08:30:00Z | Living Room | 21.1 |
| 2022-01-01T09:00:00Z | Living Room | 21.4 |
| 2022-01-01T09:30:00Z | Living Room | 21.4 |
| 2022-01-01T10:00:00Z | Living Room | 21.8 |
{{% /influxdb/custom-timestamps %}}
{{% /tab-content %}}
{{< /tabs-wrapper >}}

View File

@ -17,10 +17,12 @@ group or SQL partition and return a single row per group containing the
aggregate value.
- [General aggregate functions](#general-aggregate-functions)
- [array_agg](#array_agg)
- [avg](#avg)
- [count](#count)
- [max](#max)
- [mean](#mean)
- [median](#median)
- [min](#min)
- [sum](#sum)
- [Statistical aggregate functions](#statistical-aggregate-functions)
@ -44,12 +46,56 @@ aggregate value.
## General aggregate functions
- [array_agg](#array_agg)
- [avg](#avg)
- [count](#count)
- [max](#max)
- [mean](#mean)
- [median](#median)
- [min](#min)
- [sum](#sum)
### array_agg
Returns an array created from the expression elements.
{{% note %}}
`array_agg` returns a `LIST` arrow type which is not supported by InfluxDB.
To use with InfluxDB, use bracket notation to reference the index of an element
in the returned array. Arrays are 1-indexed.
{{% /note %}}
```sql
array_agg(expression)
```
#### Arguments
- **expression**: Expression to operate on.
Can be a constant, column, or function, and any combination of arithmetic operators.
{{< expand-wrapper >}}
{{% expand "View `array_agg` query example" %}}
_The following example uses the sample data set provided in the
[Get started with InfluxDB tutorial](/influxdb/cloud-serverless/get-started/write/#construct-line-protocol)._
```sql
SELECT
room,
array_agg(temp)[3] AS '3rd_temp'
FROM home
GROUP BY room
```
| room | 3rd_temp |
| :---------- | -------: |
| Kitchen | 22.7 |
| Living Room | 21.8 |
{{% /expand %}}
{{< /expand-wrapper >}}
### avg
Returns the average of numeric values in the specified column.
@ -161,6 +207,38 @@ GROUP BY location
_Alias of [avg](#avg)._
### median
Returns the median value in the specified column.
```
median(expression)
```
#### Arguments
- **expression**: Expression to operate on.
Can be a constant, column, or function, and any combination of arithmetic operators.
{{< expand-wrapper >}}
{{% expand "View `median` query example" %}}
```sql
SELECT
location,
median(water_level) AS water_level_max
FROM h2o_feet
GROUP BY location
```
| location | water_level_median |
| :----------- | -----------------: |
| coyote_creek | 5.4645 |
| santa_monica | 3.471 |
{{% /expand %}}
{{< /expand-wrapper >}}
### min
Returns the minimum value in the specified column.

View File

@ -23,9 +23,11 @@ performing mathematic operations:
- [exp](#exp)
- [floor](#floor)
- [ln](#ln)
- [log](#log)
- [log10](#log10)
- [log2](#log2)
- [power](#power)
- [pow](#pow)
- [random](#random)
- [round](#round)
- [signum](#signum)
@ -356,6 +358,47 @@ SELECT ln(temp) AS ln FROM home LIMIT 3
{{% /expand %}}
{{< /expand-wrapper >}}
## log
Returns the base-x logarithm of a number.
```
log([base, ]numeric_expression)
```
#### Arguments
- **base**: Base numeric expression to operate on.
Can be a constant, column, or function, and any combination of arithmetic operators.
Default is `10`.
- **numeric_expression**: Numeric expression to operate on.
Can be a constant, column, or function, and any combination of arithmetic operators.
{{< expand-wrapper >}}
{{% expand "View `log` query example" %}}
_The following example uses the sample data set provided in the
[Get started with InfluxDB tutorial](/influxdb/cloud-serverless/get-started/write/#construct-line-protocol)._
```sql
SELECT
temp,
log(2, temp) AS temp_log2,
log(4, temp) AS temp_log4,
log(temp) AS temp_log10
FROM home
LIMIT 3
```
| temp | temp_log2 | temp_log4 | temp_log10 |
| :--- | ----------------: | -----------------: | -----------------: |
| 21 | 4.392317422778761 | 2.1961587113893803 | 1.322219294733919 |
| 23 | 4.523561956057013 | 2.2617809780285065 | 1.3617278360175928 |
| 22.7 | 4.504620392403553 | 2.2523101962017766 | 1.3560258571931225 |
{{% /expand %}}
{{< /expand-wrapper >}}
## log10
Returns the base-10 logarithm of a number.
@ -390,7 +433,7 @@ SELECT log10(temp) AS log10 FROM home LIMIT 3
## log2
Returns the base-2 logarithm or a number.
Returns the base-2 logarithm of a number.
```sql
log2(numeric_expression)
@ -422,15 +465,19 @@ SELECT log2(temp) AS log2 FROM home LIMIT 3
## power
Returns a base number raised to the power of an exponent.
Returns a base expression raised to the power of an exponent.
```sql
power(base, exponent)
```
##### Aliases
- `pow`
##### Arguments
- **power**: Base numeric expression to operate on.
- **base**: Numeric expression to operate on.
Can be a constant, column, or function, and any combination of arithmetic operators.
- **exponent**: Exponent numeric expression to operate on.
Can be a constant, column, or function, and any combination of arithmetic operators.
@ -454,6 +501,10 @@ SELECT power(temp, hum * .1) AS power FROM home LIMIT 3
{{% /expand %}}
{{< /expand-wrapper >}}
## `pow`
_Alias of [power](#power)._
## random
Returns a random float value between 0 and 1.

View File

@ -15,9 +15,11 @@ for performing a variety of operations:
- [arrow_cast](#arrow_cast)
- [arrow_typeof](#arrow_typeof)
- [interpolate](#interpolate)
- [locf](#locf)
<!-- - [struct](#struct) -->
### `arrow_cast`
## arrow_cast
Casts a value to a specific Arrow data type.
@ -93,6 +95,128 @@ LIMIT 1
{{% /expand %}}
{{< /expand-wrapper >}}
## interpolate
Fills null values in a specified aggregated column by interpolating values
from existing values.
Must be used with [`date_bin_gapfill`](/influxdb/cloud-serverless/reference/sql/functions/time-and-date/#date_bin_gapfill).
```sql
interpolate(aggregate_expression)
```
##### Arguments
- **aggregate_expression**: Aggregate operation on a specified expression.
The operation can use any [aggregate function](/influxdb/cloud-serverless/reference/sql/functions/aggregate/).
The expression can be a constant, column, or function, and any combination of
arithmetic operators supported by the aggregate function.
##### Related functions
[date_bin_gapfill](/influxdb/cloud-serverless/reference/sql/functions/time-and-date/#date_bin_gapfill),
[locf](#locf)
{{< expand-wrapper >}}
{{% expand "View `interpolate` query example" %}}
_The following example uses the sample data set provided in the
[Get started with InfluxDB tutorial](/influxdb/cloud-serverless/get-started/write/#construct-line-protocol)._
{{% influxdb/custom-timestamps %}}
```sql
SELECT
date_bin_gapfill(INTERVAL '30 minutes', time) as _time,
room,
interpolate(avg(temp))
FROM home
WHERE
time >= '2022-01-01T08:00:00Z'
AND time <= '2022-01-01T10:00:00Z'
GROUP BY _time, room
```
| _time | room | AVG(home.temp) |
| :------------------- | :---------- | -------------: |
| 2022-01-01T08:00:00Z | Kitchen | 21 |
| 2022-01-01T08:30:00Z | Kitchen | 22 |
| 2022-01-01T09:00:00Z | Kitchen | 23 |
| 2022-01-01T09:30:00Z | Kitchen | 22.85 |
| 2022-01-01T10:00:00Z | Kitchen | 22.7 |
| 2022-01-01T08:00:00Z | Living Room | 21.1 |
| 2022-01-01T08:30:00Z | Living Room | 21.25 |
| 2022-01-01T09:00:00Z | Living Room | 21.4 |
| 2022-01-01T09:30:00Z | Living Room | 21.6 |
| 2022-01-01T10:00:00Z | Living Room | 21.8 |
{{% /influxdb/custom-timestamps %}}
{{% /expand %}}
{{< /expand-wrapper >}}
## locf
Fills null values in a specified aggregated column by carrying the last observed
value forward.
Must be used with [`date_bin_gapfill`](/influxdb/cloud-serverless/reference/sql/functions/time-and-date/#date_bin_gapfill).
_LOCF is an initialism of "last observation carried forward."_
```sql
locf(aggregate_expression)
```
##### Arguments
- **aggregate_expression**: Aggregate operation on a specified expression.
The operation can use any [aggregate function](/influxdb/cloud-serverless/reference/sql/functions/aggregate/).
The expression can be a constant, column, or function, and any combination of
arithmetic operators supported by the aggregate function.
##### Related functions
[date_bin_gapfill](/influxdb/cloud-serverless/reference/sql/functions/time-and-date/#date_bin_gapfill),
[interpolate](#interpolate)
{{< expand-wrapper >}}
{{% expand "View `locf` query example" %}}
_The following example uses the sample data set provided in the
[Get started with InfluxDB tutorial](/influxdb/cloud-serverless/get-started/write/#construct-line-protocol)._
{{% influxdb/custom-timestamps %}}
```sql
SELECT
date_bin_gapfill(INTERVAL '30 minutes', time) as _time,
room,
locf(avg(temp))
FROM home
WHERE
time >= '2022-01-01T08:00:00Z'
AND time <= '2022-01-01T10:00:00Z'
GROUP BY _time, room
```
| _time | room | AVG(home.temp) |
| :------------------- | :---------- | -------------: |
| 2022-01-01T08:00:00Z | Kitchen | 21 |
| 2022-01-01T08:30:00Z | Kitchen | 21 |
| 2022-01-01T09:00:00Z | Kitchen | 23 |
| 2022-01-01T09:30:00Z | Kitchen | 23 |
| 2022-01-01T10:00:00Z | Kitchen | 22.7 |
| 2022-01-01T08:00:00Z | Living Room | 21.1 |
| 2022-01-01T08:30:00Z | Living Room | 21.1 |
| 2022-01-01T09:00:00Z | Living Room | 21.4 |
| 2022-01-01T09:30:00Z | Living Room | 21.4 |
| 2022-01-01T10:00:00Z | Living Room | 21.8 |
{{% /influxdb/custom-timestamps %}}
{{% /expand %}}
{{< /expand-wrapper >}}
<!--
## struct

View File

@ -43,6 +43,7 @@ operating on string values:
- [translate](#translate)
- [trim](#trim)
- [upper](#upper)
- [uuid](#uuid)
## ascii
@ -485,7 +486,7 @@ FROM home
## lpad
Pads the left side a string with another string to a specified string length.
Pads the left side of a string with another string to a specified string length.
```sql
lpad(str, n[, padding_str])
@ -794,7 +795,8 @@ FROM home
{{< /expand-wrapper >}}
## rpad
right side a string with another string to a specified string length.
Pads the right side of a string with another string to a specified string length.
```sql
rpad(str, n[, padding_str])
@ -878,7 +880,7 @@ FROM
## split_part
Splits a string based on a specified delimiter and returns the substring a the
Splits a string based on a specified delimiter and returns the substring in the
specified position.
```sql
@ -1183,3 +1185,32 @@ FROM home
{{% /expand %}}
{{< /expand-wrapper >}}
## uuid
Returns a UUID v4 string value that is unique per row.
```sql
uuid()
```
{{< expand-wrapper >}}
{{% expand "View `upper` query example" %}}
_The following example uses the sample data set provided in the
[Get started with InfluxDB tutorial](/influxdb/cloud-serverless/get-started/write/#construct-line-protocol)._
```sql
SELECT
room,
uuid() AS uuid
FROM (SELECT DISTINCT room FROM home)
```
| room | uuid |
| :---------- | :----------------------------------: |
| Kitchen | f0b41da9-e334-4b7d-b925-a54ca6b082f3 |
| Living Room | c31be90e-c4ed-4304-b633-47b969ef3ab6 |
{{% /expand %}}
{{< /expand-wrapper >}}

View File

@ -12,44 +12,109 @@ weight: 305
InfluxDB's SQL implementation supports time and date functions that are useful when working with time series data.
- [now](#now)
- [current_date](#current_date)
- [current_time](#current_time)
- [date_bin](#date_bin)
- [date_trunc](#date_trunc)
- [date_bin_gapfill](#date_bin_gapfill)
- [date_trunc](#date_trunc)
- [datetrunc](#datetrunc)
- [date_part](#date_part)
- [datepart](#datepart)
- [extract](#extract)
- [from_unixtime](#from_unixtime)
- [now](#now)
- [to_timestamp](#to_timestamp)
- [to_timestamp_millis](#to_timestamp_millis)
- [to_timestamp_micros](#to_timestamp_micros)
- [to_timestamp_seconds](#to_timestamp_seconds)
- [from_unixtime](#from_unixtime)
### now
## current_date
Returns the current UTC timestamp.
Returns the current UTC date.
The `now()` return value is determined at query time and will return the same timestamp,
no matter when in the query plan the function executes.
{{% note %}}
`current_date` returns a `DATE32` Arrow type, which isn't supported by InfluxDB.
To use with InfluxDB, [cast the return value to a timestamp](/influxdb/cloud-serverless/query-data/sql/cast-types/#cast-to-a-timestamp-type).
{{% /note %}}
```sql
now()
The `current_date()` return value is determined at query time and will return
the same date, no matter when in the query plan the function executes.
```
current_date()
```
{{< expand-wrapper >}}
{{% expand "View `now` query example" %}}
{{% expand "View `current_date` query example" %}}
_The following example uses the sample data set provided in
[Get started with InfluxDB tutorial](/influxdb/cloud-serverless/get-started/write/#construct-line-protocol)._
```sql
SELECT
"water_level",
"time"
FROM h2o_feet
time,
temp,
current_date()::TIMESTAMP AS current_date
FROM home
WHERE
time <= now() - interval '12 minutes'
time > current_date()::TIMESTAMP - INTERVAL '5 years'
LIMIT 3
```
{{% influxdb/custom-timestamps %}}
| time | temp | current_date |
| :------------------- | ---: | :---------------------------- |
| 2022-01-01T08:00:00Z | 21 | {{< datetime/current-date >}} |
| 2022-01-01T09:00:00Z | 23 | {{< datetime/current-date >}} |
| 2022-01-01T10:00:00Z | 22.7 | {{< datetime/current-date >}} |
{{% /influxdb/custom-timestamps %}}
{{% /expand %}}
{{< /expand-wrapper >}}
### date_bin
## current_time
Returns the current UTC time.
{{% note %}}
`current_date` returns a `TIME64` Arrow type, which isn't supported by InfluxDB.
To use with InfluxDB, [cast the return value to a string](/influxdb/cloud-serverless/query-data/sql/cast-types/#cast-to-a-string-type).
{{% /note %}}
The `current_time()` return value is determined at query time and will return the same time,
no matter when in the query plan the function executes.
```
current_time()
```
{{< expand-wrapper >}}
{{% expand "View `current_time` query example" %}}
_The following example uses the sample data set provided in the
[Get started with InfluxDB tutorial](/influxdb/cloud-serverless/get-started/write/#construct-line-protocol)._
```sql
SELECT
time,
temp,
current_time()::STRING AS current_time
FROM home
LIMIT 3
```
| time | temp | current_time |
| :------------------- | ---: | :---------------------------- |
| 2022-01-01T08:00:00Z | 21 | {{< datetime/current-time >}} |
| 2022-01-01T09:00:00Z | 23 | {{< datetime/current-time >}} |
| 2022-01-01T10:00:00Z | 22.7 | {{< datetime/current-time >}} |
{{% /expand %}}
{{< /expand-wrapper >}}
## date_bin
Calculates time intervals and returns the start of the interval nearest to the specified timestamp.
Use `date_bin` to downsample time series data by grouping rows into time-based "bins" or "windows"
@ -58,7 +123,7 @@ and applying an aggregate or selector function to each window.
For example, if you "bin" or "window" data into 15 minute intervals, an input timestamp of `2023-01-01T18:18:18Z` will be updated to the start time of the 15 minute bin it is in: `2023-01-01T18:15:00Z`.
```sql
date_bin(interval, expression, origin-timestamp)
date_bin(interval, expression[, origin_timestamp])
```
##### Arguments:
@ -66,7 +131,8 @@ date_bin(interval, expression, origin-timestamp)
- **interval**: Bin interval.
- **expression**: Time expression to operate on.
Can be a constant, column, or function.
- **timestamp**: Starting point used to determine bin boundaries.
- **origin_timestamp**: Starting point used to determine bin boundaries.
_Default is the Unix epoch._
The following intervals are supported:
@ -75,10 +141,10 @@ The following intervals are supported:
- milliseconds
- seconds
- minutes
- hours
- days
- hours
- days
- weeks
- months
- months
- years
- century
@ -113,7 +179,181 @@ ORDER BY time DESC
{{% /expand %}}
{{< /expand-wrapper >}}
### date_trunc
## date_bin_gapfill
Calculates time intervals and returns the start of the interval nearest to the specified timestamp.
If no rows exist in a time interval, a new row is inserted with a `time` value
set to the interval start time, all columns in the `GROUP BY` clause populated,
and null values in aggregate columns.
Use `date_bin_gapfill` with [`interpolate`](/influxdb/cloud-serverless/reference/sql/functions/misc/#interpolate)
or [`locf`](/influxdb/cloud-serverless/reference/sql/functions/misc/#locf) to
[fill gaps in data]()
at specified time intervals.
```sql
date_bin_gapfill(interval, expression[, origin_timestamp])
```
{{% note %}}
`date_bin_gapfill` requires [time bounds](/influxdb/cloud-serverless/query-data/sql/basic-query/#query-data-within-time-boundaries)
in the `WHERE` clause.
{{% /note %}}
##### Arguments:
- **interval**: Bin interval.
- **expression**: Time expression to operate on.
Can be a constant, column, or function.
- **origin_timestamp**: Starting point used to determine bin boundaries.
_Default is the Unix epoch._
The following intervals are supported:
- nanoseconds
- microseconds
- milliseconds
- seconds
- minutes
- hours
- days
- weeks
- months
- years
- century
##### Related functions
[interpolate](/influxdb/cloud-serverless/reference/sql/functions/misc/#interpolate),
[locf](/influxdb/cloud-serverless/reference/sql/functions/misc/#locf)
{{< expand-wrapper >}}
{{% expand "View `date_bin_gapfill` query examples" %}}
_The following examples use the sample data set provided in the
[Get started with InfluxDB tutorial](/influxdb/cloud-serverless/get-started/write/#construct-line-protocol)._
- [Use date_bin_gapfill to insert rows when no rows exists](#use-date_bin_gapfill-to-insert-rows-when-no-rows-exists)
- [Use date_bin_gapfill to fill gaps in data](#use-date_bin_gapfill-to-fill-gaps-in-data)
#### Use date_bin_gapfill to insert rows when no rows exists
{{% influxdb/custom-timestamps %}}
```sql
SELECT
date_bin_gapfill(INTERVAL '30 minutes', time) as _time,
room,
avg(temp) as temp
FROM home
WHERE
time >= '2022-01-01T08:00:00Z'
AND time <= '2022-01-01T10:00:00Z'
GROUP BY _time, room
```
| _time | room | temp |
| :------------------- | :---------- | ---: |
| 2022-01-01T08:00:00Z | Kitchen | 21 |
| 2022-01-01T08:30:00Z | Kitchen | |
| 2022-01-01T09:00:00Z | Kitchen | 23 |
| 2022-01-01T09:30:00Z | Kitchen | |
| 2022-01-01T10:00:00Z | Kitchen | 22.7 |
| 2022-01-01T08:00:00Z | Living Room | 21.1 |
| 2022-01-01T08:30:00Z | Living Room | |
| 2022-01-01T09:00:00Z | Living Room | 21.4 |
| 2022-01-01T09:30:00Z | Living Room | |
| 2022-01-01T10:00:00Z | Living Room | 21.8 |
{{% /influxdb/custom-timestamps %}}
#### Use date_bin_gapfill to fill gaps in data
Use `interpolate` and `locf` to fill the null values in rows inserted by
`date_bin_gapfill`.
{{< tabs-wrapper >}}
{{% tabs "small" %}}
[interpolate](#)
[locf](#)
{{% /tabs %}}
{{% tab-content %}}
The example below uses [`interpolate`](/influxdb/cloud-serverless/reference/sql/functions/misc/#interpolate)
to fill null values by interpolating values between non-null values.
{{% influxdb/custom-timestamps %}}
```sql
SELECT
date_bin_gapfill(INTERVAL '30 minutes', time) as _time,
room,
interpolate(avg(temp))
FROM home
WHERE
time >= '2022-01-01T08:00:00Z'
AND time <= '2022-01-01T10:00:00Z'
GROUP BY _time, room
```
| _time | room | AVG(home.temp) |
| :------------------- | :---------- | -------------: |
| 2022-01-01T08:00:00Z | Kitchen | 21 |
| 2022-01-01T08:30:00Z | Kitchen | 22 |
| 2022-01-01T09:00:00Z | Kitchen | 23 |
| 2022-01-01T09:30:00Z | Kitchen | 22.85 |
| 2022-01-01T10:00:00Z | Kitchen | 22.7 |
| 2022-01-01T08:00:00Z | Living Room | 21.1 |
| 2022-01-01T08:30:00Z | Living Room | 21.25 |
| 2022-01-01T09:00:00Z | Living Room | 21.4 |
| 2022-01-01T09:30:00Z | Living Room | 21.6 |
| 2022-01-01T10:00:00Z | Living Room | 21.8 |
{{% /influxdb/custom-timestamps %}}
{{% /tab-content %}}
{{% tab-content %}}
The example below uses [`locf`](/influxdb/cloud-serverless/reference/sql/functions/misc/#locf)
to fill null values by carrying the last observed value forward.
{{% influxdb/custom-timestamps %}}
```sql
SELECT
date_bin_gapfill(INTERVAL '30 minutes', time) as _time,
room,
locf(avg(temp))
FROM home
WHERE
time >= '2022-01-01T08:00:00Z'
AND time <= '2022-01-01T10:00:00Z'
GROUP BY _time, room
```
| _time | room | AVG(home.temp) |
| :------------------- | :---------- | -------------: |
| 2022-01-01T08:00:00Z | Kitchen | 21 |
| 2022-01-01T08:30:00Z | Kitchen | 21 |
| 2022-01-01T09:00:00Z | Kitchen | 23 |
| 2022-01-01T09:30:00Z | Kitchen | 23 |
| 2022-01-01T10:00:00Z | Kitchen | 22.7 |
| 2022-01-01T08:00:00Z | Living Room | 21.1 |
| 2022-01-01T08:30:00Z | Living Room | 21.1 |
| 2022-01-01T09:00:00Z | Living Room | 21.4 |
| 2022-01-01T09:30:00Z | Living Room | 21.4 |
| 2022-01-01T10:00:00Z | Living Room | 21.8 |
{{% /influxdb/custom-timestamps %}}
{{% /tab-content %}}
{{< /tabs-wrapper >}}
{{% /expand %}}
{{< /expand-wrapper >}}
## date_trunc
Truncates a timestamp value to a specified precision.
@ -137,6 +377,10 @@ date_trunc(precision, expression)
- **expression**: Time expression to operate on.
Can be a constant, column, or function.
##### Aliases
- `datetrunc`
{{< expand-wrapper >}}
{{% expand "View `date_trunc` query examples" %}}
@ -189,7 +433,11 @@ ORDER BY week
{{% /expand %}}
{{< /expand-wrapper >}}
### date_part
## datetrunc
_Alias of [date_trunc](#date_trunc)._
## date_part
Returns the specified part of the date as an integer.
@ -218,6 +466,10 @@ date_part(part, expression)
- **expression**: Time expression to operate on.
Can be a constant, column, or function.
##### Aliases
- `datepart`
{{< expand-wrapper >}}
{{% expand "View `date_part` query examples" %}}
@ -246,7 +498,11 @@ ORDER BY time
{{% /expand %}}
{{< /expand-wrapper >}}
### extract
## datepart
_Alias of [date_part](#date_part)._
## extract
Returns a sub-field from a time value as an integer.
Similar to `date_part`, but with different arguments.
@ -294,7 +550,63 @@ LIMIT 1
{{% /expand %}}
{{< /expand-wrapper >}}
### to_timestamp
## from_unixtime
Converts an integer to RFC3339 timestamp format (`YYYY-MM-DDT00:00:00.000000000Z`).
Input is parsed as a [Unix nanosecond timestamp](/influxdb/cloud-serverless/reference/glossary/#unix-timestamp)
and returns the corresponding RFC3339 timestamp.
```sql
from_unixtime(expression)
```
##### Arguments:
- **expression**: Integer expression to operate on.
Can be a constant, column, or function, and any combination of arithmetic operators.
{{< expand-wrapper >}}
{{% expand "View `from_unixtime` query example" %}}
```sql
SELECT
from_unixtime(1672531200000000000) AS RFC3339
```
| RFC3339 |
| :------------------- |
| 2023-01-01T00:00:00Z |
{{% /expand %}}
{{< /expand-wrapper >}}
## now
Returns the current UTC timestamp.
The `now()` return value is determined at query time and will return the same timestamp,
no matter when in the query plan the function executes.
```sql
now()
```
{{< expand-wrapper >}}
{{% expand "View `now` query example" %}}
```sql
SELECT
"water_level",
"time"
FROM h2o_feet
WHERE
time <= now() - interval '12 minutes'
```
{{% /expand %}}
{{< /expand-wrapper >}}
## to_timestamp
Converts a value to RFC3339 nanosecond timestamp format (`YYYY-MM-DDT00:00:00.000000000Z`).
Supports timestamp, integer, and unsigned integer types as input.
@ -326,7 +638,7 @@ LIMIT 1
{{% /expand %}}
{{< /expand-wrapper >}}
### to_timestamp_millis
## to_timestamp_millis
Converts a value to RFC3339 millisecond timestamp format (`YYYY-MM-DDT00:00:00.000Z`).
Supports timestamp, integer, and unsigned integer types as input.
@ -361,7 +673,7 @@ Results
{{% /expand %}}
{{< /expand-wrapper >}}
### to_timestamp_micros
## to_timestamp_micros
Converts a value to RFC3339 microsecond timestamp format (`YYYY-MM-DDT00:00:00.000000Z`).
Supports timestamp, integer, and unsigned integer types as input.
@ -394,7 +706,7 @@ LIMIT 1
{{% /expand %}}
{{< /expand-wrapper >}}
### to_timestamp_seconds
## to_timestamp_seconds
Converts a value to RFC3339 second timestamp format (`YYYY-MM-DDT00:00:00Z`).
Supports timestamp, integer, and unsigned integer types as input.
@ -427,34 +739,3 @@ LIMIT 1;
{{% /expand %}}
{{< /expand-wrapper >}}
### from_unixtime
Converts an integer to RFC3339 timestamp format (`YYYY-MM-DDT00:00:00.000000000Z`).
Input is parsed as a [Unix nanosecond timestamp](/influxdb/cloud-serverless/reference/glossary/#unix-timestamp)
and returns the corresponding RFC3339 timestamp.
```sql
from_unixtime(expression)
```
##### Arguments:
- **expression**: Integer expression to operate on.
Can be a constant, column, or function, and any combination of arithmetic operators.
{{< expand-wrapper >}}
{{% expand "View `from_unixtime` query example" %}}
```sql
SELECT
from_unixtime(1672531200000000000) AS RFC3339
```
| RFC3339 |
| :------------------- |
| 2023-01-01T00:00:00Z |
{{% /expand %}}
{{< /expand-wrapper >}}

View File

@ -99,63 +99,63 @@ task_executor_run_duration,taskID=00xx0Xx0xx00XX0x0,task_type=threshold 0.5=5.17
{{% expand "View version 1 tables when queried from InfluxDB" %}}
| _time | _measurement | _field | _value |
| :------------------------ | :---------------------------- | :------ | -----------: |
| {{< flux/current-time >}} | go_memstats_alloc_bytes_total | counter | 1422764240.0 |
| {{< datetime/current-timestamp >}} | go_memstats_alloc_bytes_total | counter | 1422764240.0 |
| _time | _measurement | _field | _value |
| :------------------------ | :------------------------------ | :----- | --------: |
| {{< flux/current-time >}} | go_memstats_buck_hash_sys_bytes | gauge | 5259247.0 |
| {{< datetime/current-timestamp >}} | go_memstats_buck_hash_sys_bytes | gauge | 5259247.0 |
| _time | _measurement | task_type | _field | _value |
| :------------------------ | :-------------------------------- | :-------- | :----- | -----: |
| {{< flux/current-time >}} | task_executor_run_latency_seconds | system | 0.25 | 4413.0 |
| {{< datetime/current-timestamp >}} | task_executor_run_latency_seconds | system | 0.25 | 4413.0 |
| _time | _measurement | task_type | _field | _value |
| :------------------------ | :-------------------------------- | :-------- | :----- | ------: |
| {{< flux/current-time >}} | task_executor_run_latency_seconds | system | 0.5 | 11901.0 |
| {{< datetime/current-timestamp >}} | task_executor_run_latency_seconds | system | 0.5 | 11901.0 |
| _time | _measurement | task_type | _field | _value |
| :------------------------ | :-------------------------------- | :-------- | :----- | ------: |
| {{< flux/current-time >}} | task_executor_run_latency_seconds | system | 1 | 12565.0 |
| {{< datetime/current-timestamp >}} | task_executor_run_latency_seconds | system | 1 | 12565.0 |
| _time | _measurement | task_type | _field | _value |
| :------------------------ | :-------------------------------- | :-------- | :----- | ------: |
| {{< flux/current-time >}} | task_executor_run_latency_seconds | system | 2.5 | 12823.0 |
| {{< datetime/current-timestamp >}} | task_executor_run_latency_seconds | system | 2.5 | 12823.0 |
| _time | _measurement | task_type | _field | _value |
| :------------------------ | :-------------------------------- | :-------- | :----- | ------: |
| {{< flux/current-time >}} | task_executor_run_latency_seconds | system | 5 | 12844.0 |
| {{< datetime/current-timestamp >}} | task_executor_run_latency_seconds | system | 5 | 12844.0 |
| _time | _measurement | task_type | _field | _value |
| :------------------------ | :-------------------------------- | :-------- | :----- | ------: |
| {{< flux/current-time >}} | task_executor_run_latency_seconds | system | +Inf | 74429.0 |
| {{< datetime/current-timestamp >}} | task_executor_run_latency_seconds | system | +Inf | 74429.0 |
| _time | _measurement | task_type | _field | _value |
| :------------------------ | :-------------------------------- | :-------- | :----- | ----------------: |
| {{< flux/current-time >}} | task_executor_run_latency_seconds | system | sum | 425678353867.9698 |
| {{< datetime/current-timestamp >}} | task_executor_run_latency_seconds | system | sum | 425678353867.9698 |
| _time | _measurement | task_type | _field | _value |
| :------------------------ | :-------------------------------- | :-------- | :----- | -----: |
| {{< flux/current-time >}} | task_executor_run_latency_seconds | system | count | 74429.0 |
| {{< datetime/current-timestamp >}} | task_executor_run_latency_seconds | system | count | 74429.0 |
| _time | _measurement | task_type | _field | _value |
| :------------------------ | :------------------------- | :-------- | :----- | ----------: |
| {{< flux/current-time >}} | task_executor_run_duration | threshold | 0.5 | 5.178160855 |
| {{< datetime/current-timestamp >}} | task_executor_run_duration | threshold | 0.5 | 5.178160855 |
| _time | _measurement | task_type | _field | _value |
| :------------------------ | :------------------------- | :-------- | :----- | ----------: |
| {{< flux/current-time >}} | task_executor_run_duration | threshold | 0.9 | 5.178160855 |
| {{< datetime/current-timestamp >}} | task_executor_run_duration | threshold | 0.9 | 5.178160855 |
| _time | _measurement | task_type | _field | _value |
| :------------------------ | :------------------------- | :-------- | :----- | ----------: |
| {{< flux/current-time >}} | task_executor_run_duration | threshold | 0.99 | 5.178160855 |
| {{< datetime/current-timestamp >}} | task_executor_run_duration | threshold | 0.99 | 5.178160855 |
| _time | _measurement | task_type | _field | _value |
| :------------------------ | :------------------------- | :-------- | :----- | -----------------: |
| {{< flux/current-time >}} | task_executor_run_duration | threshold | sum | 2121.9758301650004 |
| {{< datetime/current-timestamp >}} | task_executor_run_duration | threshold | sum | 2121.9758301650004 |
| _time | _measurement | task_type | _field | _value |
| :------------------------ | :------------------------- | :-------- | :----- | -----: |
| {{< flux/current-time >}} | task_executor_run_duration | threshold | count | 570.0 |
| {{< datetime/current-timestamp >}} | task_executor_run_duration | threshold | count | 570.0 |
{{% /expand %}}
{{< /expand-wrapper >}}
@ -225,62 +225,62 @@ prometheus,url=http://localhost:8086/metrics,taskID=00xx0Xx0xx00XX0x0,task_type=
{{% expand "View version 2 tables when queried from InfluxDB" %}}
| _time | _measurement | url | _field | _value |
| :------------------------ | :----------- | :---------------------------- | :---------------------------- | -----------: |
| {{< flux/current-time >}} | prometheus | http://localhost:8086/metrics | go_memstats_alloc_bytes_total | 1422764240.0 |
| {{< datetime/current-timestamp >}} | prometheus | http://localhost:8086/metrics | go_memstats_alloc_bytes_total | 1422764240.0 |
| _time | _measurement | url | _field | _value |
| :------------------------ | :----------- | :---------------------------- | :------------------------------ | --------: |
| {{< flux/current-time >}} | prometheus | http://localhost:8086/metrics | go_memstats_buck_hash_sys_bytes | 5259247.0 |
| {{< datetime/current-timestamp >}} | prometheus | http://localhost:8086/metrics | go_memstats_buck_hash_sys_bytes | 5259247.0 |
| _time | _measurement | task_type | url | le | _field | _value |
| :------------------------ | :----------- | :-------- | :---------------------------- | :--- | :-------------------------------- | -----: |
| {{< flux/current-time >}} | prometheus | system | http://localhost:8086/metrics | 0.25 | task_executor_run_latency_seconds | 4413 |
| {{< datetime/current-timestamp >}} | prometheus | system | http://localhost:8086/metrics | 0.25 | task_executor_run_latency_seconds | 4413 |
| _time | _measurement | task_type | url | le | _field | _value |
| :------------------------ | :----------- | :-------- | :---------------------------- | :-- | :-------------------------------- | -----: |
| {{< flux/current-time >}} | prometheus | system | http://localhost:8086/metrics | 0.5 | task_executor_run_latency_seconds | 11901 |
| {{< datetime/current-timestamp >}} | prometheus | system | http://localhost:8086/metrics | 0.5 | task_executor_run_latency_seconds | 11901 |
| _time | _measurement | task_type | url | le | _field | _value |
| :------------------------ | :----------- | :-------- | :---------------------------- | :-- | :-------------------------------- | -----: |
| {{< flux/current-time >}} | prometheus | system | http://localhost:8086/metrics | 1 | task_executor_run_latency_seconds | 12565 |
| {{< datetime/current-timestamp >}} | prometheus | system | http://localhost:8086/metrics | 1 | task_executor_run_latency_seconds | 12565 |
| _time | _measurement | task_type | url | le | _field | _value |
| :------------------------ | :----------- | :-------- | :---------------------------- | :-- | :-------------------------------- | -----: |
| {{< flux/current-time >}} | prometheus | system | http://localhost:8086/metrics | 2.5 | task_executor_run_latency_seconds | 12823 |
| {{< datetime/current-timestamp >}} | prometheus | system | http://localhost:8086/metrics | 2.5 | task_executor_run_latency_seconds | 12823 |
| _time | _measurement | task_type | url | le | _field | _value |
| :------------------------ | :----------- | :-------- | :---------------------------- | :-- | :-------------------------------- | -----: |
| {{< flux/current-time >}} | prometheus | system | http://localhost:8086/metrics | 5 | task_executor_run_latency_seconds | 12844 |
| {{< datetime/current-timestamp >}} | prometheus | system | http://localhost:8086/metrics | 5 | task_executor_run_latency_seconds | 12844 |
| _time | _measurement | task_type | url | le | _field | _value |
| :------------------------ | :----------- | :-------- | :---------------------------- | :--- | :-------------------------------- | -----: |
| {{< flux/current-time >}} | prometheus | system | http://localhost:8086/metrics | +Inf | task_executor_run_latency_seconds | 74429 |
| {{< datetime/current-timestamp >}} | prometheus | system | http://localhost:8086/metrics | +Inf | task_executor_run_latency_seconds | 74429 |
| _time | _measurement | task_type | url | _field | _value |
| :------------------------ | :----------- | :-------- | :---------------------------- | :------------------------------------ | ----------------: |
| {{< flux/current-time >}} | prometheus | system | http://localhost:8086/metrics | task_executor_run_latency_seconds_sum | 425678353867.9698 |
| {{< datetime/current-timestamp >}} | prometheus | system | http://localhost:8086/metrics | task_executor_run_latency_seconds_sum | 425678353867.9698 |
| _time | _measurement | task_type | url | _field | _value |
| :------------------------ | :----------- | :-------- | :---------------------------- | :-------------------------------------- | -----: |
| {{< flux/current-time >}} | prometheus | system | http://localhost:8086/metrics | task_executor_run_latency_seconds_count | 74429 |
| {{< datetime/current-timestamp >}} | prometheus | system | http://localhost:8086/metrics | task_executor_run_latency_seconds_count | 74429 |
| _time | _measurement | task_type | taskID | url | quantile | _field | _value |
| :------------------------ | :----------- | :-------- | :---------------- | :---------------------------- | :------- | :------------------------- | ----------: |
| {{< flux/current-time >}} | prometheus | threshold | 00xx0Xx0xx00XX0x0 | http://localhost:8086/metrics | 0.5 | task_executor_run_duration | 5.178160855 |
| {{< datetime/current-timestamp >}} | prometheus | threshold | 00xx0Xx0xx00XX0x0 | http://localhost:8086/metrics | 0.5 | task_executor_run_duration | 5.178160855 |
| _time | _measurement | task_type | taskID | url | quantile | _field | _value |
| :------------------------ | :----------- | :-------- | :---------------- | :---------------------------- | :------- | :------------------------- | ----------: |
| {{< flux/current-time >}} | prometheus | threshold | 00xx0Xx0xx00XX0x0 | http://localhost:8086/metrics | 0.9 | task_executor_run_duration | 5.178160855 |
| {{< datetime/current-timestamp >}} | prometheus | threshold | 00xx0Xx0xx00XX0x0 | http://localhost:8086/metrics | 0.9 | task_executor_run_duration | 5.178160855 |
| _time | _measurement | task_type | taskID | url | quantile | _field | _value |
| :------------------------ | :----------- | :-------- | :---------------- | :---------------------------- | :------- | :------------------------- | ----------: |
| {{< flux/current-time >}} | prometheus | threshold | 00xx0Xx0xx00XX0x0 | http://localhost:8086/metrics | 0.99 | task_executor_run_duration | 5.178160855 |
| {{< datetime/current-timestamp >}} | prometheus | threshold | 00xx0Xx0xx00XX0x0 | http://localhost:8086/metrics | 0.99 | task_executor_run_duration | 5.178160855 |
| _time | _measurement | task_type | taskID | url | _field | _value |
| :------------------------ | :----------- | :-------- | :---------------- | :---------------------------- | :----------------------------- | -----------------: |
| {{< flux/current-time >}} | prometheus | threshold | 00xx0Xx0xx00XX0x0 | http://localhost:8086/metrics | task_executor_run_duration_sum | 2121.9758301650004 |
| {{< datetime/current-timestamp >}} | prometheus | threshold | 00xx0Xx0xx00XX0x0 | http://localhost:8086/metrics | task_executor_run_duration_sum | 2121.9758301650004 |
| _time | _measurement | task_type | taskID | url | _field | _value |
| :------------------------ | :----------- | :-------- | :---------------- | :---------------------------- | :------------------------------- | -----: |
| {{< flux/current-time >}} | prometheus | threshold | 00xx0Xx0xx00XX0x0 | http://localhost:8086/metrics | task_executor_run_duration_count | 570 |
| {{< datetime/current-timestamp >}} | prometheus | threshold | 00xx0Xx0xx00XX0x0 | http://localhost:8086/metrics | task_executor_run_duration_count | 570 |
{{% /expand %}}
{{< /expand-wrapper >}}

View File

@ -99,63 +99,63 @@ task_executor_run_duration,taskID=00xx0Xx0xx00XX0x0,task_type=threshold 0.5=5.17
{{% expand "View version 1 tables when queried from InfluxDB" %}}
| _time | _measurement | _field | _value |
| :------------------------ | :---------------------------- | :------ | -----------: |
| {{< flux/current-time >}} | go_memstats_alloc_bytes_total | counter | 1422764240.0 |
| {{< datetime/current-timestamp >}} | go_memstats_alloc_bytes_total | counter | 1422764240.0 |
| _time | _measurement | _field | _value |
| :------------------------ | :------------------------------ | :----- | --------: |
| {{< flux/current-time >}} | go_memstats_buck_hash_sys_bytes | gauge | 5259247.0 |
| {{< datetime/current-timestamp >}} | go_memstats_buck_hash_sys_bytes | gauge | 5259247.0 |
| _time | _measurement | task_type | _field | _value |
| :------------------------ | :-------------------------------- | :-------- | :----- | -----: |
| {{< flux/current-time >}} | task_executor_run_latency_seconds | system | 0.25 | 4413.0 |
| {{< datetime/current-timestamp >}} | task_executor_run_latency_seconds | system | 0.25 | 4413.0 |
| _time | _measurement | task_type | _field | _value |
| :------------------------ | :-------------------------------- | :-------- | :----- | ------: |
| {{< flux/current-time >}} | task_executor_run_latency_seconds | system | 0.5 | 11901.0 |
| {{< datetime/current-timestamp >}} | task_executor_run_latency_seconds | system | 0.5 | 11901.0 |
| _time | _measurement | task_type | _field | _value |
| :------------------------ | :-------------------------------- | :-------- | :----- | ------: |
| {{< flux/current-time >}} | task_executor_run_latency_seconds | system | 1 | 12565.0 |
| {{< datetime/current-timestamp >}} | task_executor_run_latency_seconds | system | 1 | 12565.0 |
| _time | _measurement | task_type | _field | _value |
| :------------------------ | :-------------------------------- | :-------- | :----- | ------: |
| {{< flux/current-time >}} | task_executor_run_latency_seconds | system | 2.5 | 12823.0 |
| {{< datetime/current-timestamp >}} | task_executor_run_latency_seconds | system | 2.5 | 12823.0 |
| _time | _measurement | task_type | _field | _value |
| :------------------------ | :-------------------------------- | :-------- | :----- | ------: |
| {{< flux/current-time >}} | task_executor_run_latency_seconds | system | 5 | 12844.0 |
| {{< datetime/current-timestamp >}} | task_executor_run_latency_seconds | system | 5 | 12844.0 |
| _time | _measurement | task_type | _field | _value |
| :------------------------ | :-------------------------------- | :-------- | :----- | ------: |
| {{< flux/current-time >}} | task_executor_run_latency_seconds | system | +Inf | 74429.0 |
| {{< datetime/current-timestamp >}} | task_executor_run_latency_seconds | system | +Inf | 74429.0 |
| _time | _measurement | task_type | _field | _value |
| :------------------------ | :-------------------------------- | :-------- | :----- | ----------------: |
| {{< flux/current-time >}} | task_executor_run_latency_seconds | system | sum | 425678353867.9698 |
| {{< datetime/current-timestamp >}} | task_executor_run_latency_seconds | system | sum | 425678353867.9698 |
| _time | _measurement | task_type | _field | _value |
| :------------------------ | :-------------------------------- | :-------- | :----- | -----: |
| {{< flux/current-time >}} | task_executor_run_latency_seconds | system | count | 74429.0 |
| {{< datetime/current-timestamp >}} | task_executor_run_latency_seconds | system | count | 74429.0 |
| _time | _measurement | task_type | _field | _value |
| :------------------------ | :------------------------- | :-------- | :----- | ----------: |
| {{< flux/current-time >}} | task_executor_run_duration | threshold | 0.5 | 5.178160855 |
| {{< datetime/current-timestamp >}} | task_executor_run_duration | threshold | 0.5 | 5.178160855 |
| _time | _measurement | task_type | _field | _value |
| :------------------------ | :------------------------- | :-------- | :----- | ----------: |
| {{< flux/current-time >}} | task_executor_run_duration | threshold | 0.9 | 5.178160855 |
| {{< datetime/current-timestamp >}} | task_executor_run_duration | threshold | 0.9 | 5.178160855 |
| _time | _measurement | task_type | _field | _value |
| :------------------------ | :------------------------- | :-------- | :----- | ----------: |
| {{< flux/current-time >}} | task_executor_run_duration | threshold | 0.99 | 5.178160855 |
| {{< datetime/current-timestamp >}} | task_executor_run_duration | threshold | 0.99 | 5.178160855 |
| _time | _measurement | task_type | _field | _value |
| :------------------------ | :------------------------- | :-------- | :----- | -----------------: |
| {{< flux/current-time >}} | task_executor_run_duration | threshold | sum | 2121.9758301650004 |
| {{< datetime/current-timestamp >}} | task_executor_run_duration | threshold | sum | 2121.9758301650004 |
| _time | _measurement | task_type | _field | _value |
| :------------------------ | :------------------------- | :-------- | :----- | -----: |
| {{< flux/current-time >}} | task_executor_run_duration | threshold | count | 570.0 |
| {{< datetime/current-timestamp >}} | task_executor_run_duration | threshold | count | 570.0 |
{{% /expand %}}
{{< /expand-wrapper >}}
@ -225,62 +225,62 @@ prometheus,url=http://localhost:8086/metrics,taskID=00xx0Xx0xx00XX0x0,task_type=
{{% expand "View version 2 tables when queried from InfluxDB" %}}
| _time | _measurement | url | _field | _value |
| :------------------------ | :----------- | :---------------------------- | :---------------------------- | -----------: |
| {{< flux/current-time >}} | prometheus | http://localhost:8086/metrics | go_memstats_alloc_bytes_total | 1422764240.0 |
| {{< datetime/current-timestamp >}} | prometheus | http://localhost:8086/metrics | go_memstats_alloc_bytes_total | 1422764240.0 |
| _time | _measurement | url | _field | _value |
| :------------------------ | :----------- | :---------------------------- | :------------------------------ | --------: |
| {{< flux/current-time >}} | prometheus | http://localhost:8086/metrics | go_memstats_buck_hash_sys_bytes | 5259247.0 |
| {{< datetime/current-timestamp >}} | prometheus | http://localhost:8086/metrics | go_memstats_buck_hash_sys_bytes | 5259247.0 |
| _time | _measurement | task_type | url | le | _field | _value |
| :------------------------ | :----------- | :-------- | :---------------------------- | :--- | :-------------------------------- | -----: |
| {{< flux/current-time >}} | prometheus | system | http://localhost:8086/metrics | 0.25 | task_executor_run_latency_seconds | 4413 |
| {{< datetime/current-timestamp >}} | prometheus | system | http://localhost:8086/metrics | 0.25 | task_executor_run_latency_seconds | 4413 |
| _time | _measurement | task_type | url | le | _field | _value |
| :------------------------ | :----------- | :-------- | :---------------------------- | :-- | :-------------------------------- | -----: |
| {{< flux/current-time >}} | prometheus | system | http://localhost:8086/metrics | 0.5 | task_executor_run_latency_seconds | 11901 |
| {{< datetime/current-timestamp >}} | prometheus | system | http://localhost:8086/metrics | 0.5 | task_executor_run_latency_seconds | 11901 |
| _time | _measurement | task_type | url | le | _field | _value |
| :------------------------ | :----------- | :-------- | :---------------------------- | :-- | :-------------------------------- | -----: |
| {{< flux/current-time >}} | prometheus | system | http://localhost:8086/metrics | 1 | task_executor_run_latency_seconds | 12565 |
| {{< datetime/current-timestamp >}} | prometheus | system | http://localhost:8086/metrics | 1 | task_executor_run_latency_seconds | 12565 |
| _time | _measurement | task_type | url | le | _field | _value |
| :------------------------ | :----------- | :-------- | :---------------------------- | :-- | :-------------------------------- | -----: |
| {{< flux/current-time >}} | prometheus | system | http://localhost:8086/metrics | 2.5 | task_executor_run_latency_seconds | 12823 |
| {{< datetime/current-timestamp >}} | prometheus | system | http://localhost:8086/metrics | 2.5 | task_executor_run_latency_seconds | 12823 |
| _time | _measurement | task_type | url | le | _field | _value |
| :------------------------ | :----------- | :-------- | :---------------------------- | :-- | :-------------------------------- | -----: |
| {{< flux/current-time >}} | prometheus | system | http://localhost:8086/metrics | 5 | task_executor_run_latency_seconds | 12844 |
| {{< datetime/current-timestamp >}} | prometheus | system | http://localhost:8086/metrics | 5 | task_executor_run_latency_seconds | 12844 |
| _time | _measurement | task_type | url | le | _field | _value |
| :------------------------ | :----------- | :-------- | :---------------------------- | :--- | :-------------------------------- | -----: |
| {{< flux/current-time >}} | prometheus | system | http://localhost:8086/metrics | +Inf | task_executor_run_latency_seconds | 74429 |
| {{< datetime/current-timestamp >}} | prometheus | system | http://localhost:8086/metrics | +Inf | task_executor_run_latency_seconds | 74429 |
| _time | _measurement | task_type | url | _field | _value |
| :------------------------ | :----------- | :-------- | :---------------------------- | :------------------------------------ | ----------------: |
| {{< flux/current-time >}} | prometheus | system | http://localhost:8086/metrics | task_executor_run_latency_seconds_sum | 425678353867.9698 |
| {{< datetime/current-timestamp >}} | prometheus | system | http://localhost:8086/metrics | task_executor_run_latency_seconds_sum | 425678353867.9698 |
| _time | _measurement | task_type | url | _field | _value |
| :------------------------ | :----------- | :-------- | :---------------------------- | :-------------------------------------- | -----: |
| {{< flux/current-time >}} | prometheus | system | http://localhost:8086/metrics | task_executor_run_latency_seconds_count | 74429 |
| {{< datetime/current-timestamp >}} | prometheus | system | http://localhost:8086/metrics | task_executor_run_latency_seconds_count | 74429 |
| _time | _measurement | task_type | taskID | url | quantile | _field | _value |
| :------------------------ | :----------- | :-------- | :---------------- | :---------------------------- | :------- | :------------------------- | ----------: |
| {{< flux/current-time >}} | prometheus | threshold | 00xx0Xx0xx00XX0x0 | http://localhost:8086/metrics | 0.5 | task_executor_run_duration | 5.178160855 |
| {{< datetime/current-timestamp >}} | prometheus | threshold | 00xx0Xx0xx00XX0x0 | http://localhost:8086/metrics | 0.5 | task_executor_run_duration | 5.178160855 |
| _time | _measurement | task_type | taskID | url | quantile | _field | _value |
| :------------------------ | :----------- | :-------- | :---------------- | :---------------------------- | :------- | :------------------------- | ----------: |
| {{< flux/current-time >}} | prometheus | threshold | 00xx0Xx0xx00XX0x0 | http://localhost:8086/metrics | 0.9 | task_executor_run_duration | 5.178160855 |
| {{< datetime/current-timestamp >}} | prometheus | threshold | 00xx0Xx0xx00XX0x0 | http://localhost:8086/metrics | 0.9 | task_executor_run_duration | 5.178160855 |
| _time | _measurement | task_type | taskID | url | quantile | _field | _value |
| :------------------------ | :----------- | :-------- | :---------------- | :---------------------------- | :------- | :------------------------- | ----------: |
| {{< flux/current-time >}} | prometheus | threshold | 00xx0Xx0xx00XX0x0 | http://localhost:8086/metrics | 0.99 | task_executor_run_duration | 5.178160855 |
| {{< datetime/current-timestamp >}} | prometheus | threshold | 00xx0Xx0xx00XX0x0 | http://localhost:8086/metrics | 0.99 | task_executor_run_duration | 5.178160855 |
| _time | _measurement | task_type | taskID | url | _field | _value |
| :------------------------ | :----------- | :-------- | :---------------- | :---------------------------- | :----------------------------- | -----------------: |
| {{< flux/current-time >}} | prometheus | threshold | 00xx0Xx0xx00XX0x0 | http://localhost:8086/metrics | task_executor_run_duration_sum | 2121.9758301650004 |
| {{< datetime/current-timestamp >}} | prometheus | threshold | 00xx0Xx0xx00XX0x0 | http://localhost:8086/metrics | task_executor_run_duration_sum | 2121.9758301650004 |
| _time | _measurement | task_type | taskID | url | _field | _value |
| :------------------------ | :----------- | :-------- | :---------------- | :---------------------------- | :------------------------------- | -----: |
| {{< flux/current-time >}} | prometheus | threshold | 00xx0Xx0xx00XX0x0 | http://localhost:8086/metrics | task_executor_run_duration_count | 570 |
| {{< datetime/current-timestamp >}} | prometheus | threshold | 00xx0Xx0xx00XX0x0 | http://localhost:8086/metrics | task_executor_run_duration_count | 570 |
{{% /expand %}}
{{< /expand-wrapper >}}

View File

@ -99,63 +99,63 @@ task_executor_run_duration,taskID=00xx0Xx0xx00XX0x0,task_type=threshold 0.5=5.17
{{% expand "View version 1 tables when queried from InfluxDB" %}}
| _time | _measurement | _field | _value |
| :------------------------ | :---------------------------- | :------ | -----------: |
| {{< flux/current-time >}} | go_memstats_alloc_bytes_total | counter | 1422764240.0 |
| {{< datetime/current-timestamp >}} | go_memstats_alloc_bytes_total | counter | 1422764240.0 |
| _time | _measurement | _field | _value |
| :------------------------ | :------------------------------ | :----- | --------: |
| {{< flux/current-time >}} | go_memstats_buck_hash_sys_bytes | gauge | 5259247.0 |
| {{< datetime/current-timestamp >}} | go_memstats_buck_hash_sys_bytes | gauge | 5259247.0 |
| _time | _measurement | task_type | _field | _value |
| :------------------------ | :-------------------------------- | :-------- | :----- | -----: |
| {{< flux/current-time >}} | task_executor_run_latency_seconds | system | 0.25 | 4413.0 |
| {{< datetime/current-timestamp >}} | task_executor_run_latency_seconds | system | 0.25 | 4413.0 |
| _time | _measurement | task_type | _field | _value |
| :------------------------ | :-------------------------------- | :-------- | :----- | ------: |
| {{< flux/current-time >}} | task_executor_run_latency_seconds | system | 0.5 | 11901.0 |
| {{< datetime/current-timestamp >}} | task_executor_run_latency_seconds | system | 0.5 | 11901.0 |
| _time | _measurement | task_type | _field | _value |
| :------------------------ | :-------------------------------- | :-------- | :----- | ------: |
| {{< flux/current-time >}} | task_executor_run_latency_seconds | system | 1 | 12565.0 |
| {{< datetime/current-timestamp >}} | task_executor_run_latency_seconds | system | 1 | 12565.0 |
| _time | _measurement | task_type | _field | _value |
| :------------------------ | :-------------------------------- | :-------- | :----- | ------: |
| {{< flux/current-time >}} | task_executor_run_latency_seconds | system | 2.5 | 12823.0 |
| {{< datetime/current-timestamp >}} | task_executor_run_latency_seconds | system | 2.5 | 12823.0 |
| _time | _measurement | task_type | _field | _value |
| :------------------------ | :-------------------------------- | :-------- | :----- | ------: |
| {{< flux/current-time >}} | task_executor_run_latency_seconds | system | 5 | 12844.0 |
| {{< datetime/current-timestamp >}} | task_executor_run_latency_seconds | system | 5 | 12844.0 |
| _time | _measurement | task_type | _field | _value |
| :------------------------ | :-------------------------------- | :-------- | :----- | ------: |
| {{< flux/current-time >}} | task_executor_run_latency_seconds | system | +Inf | 74429.0 |
| {{< datetime/current-timestamp >}} | task_executor_run_latency_seconds | system | +Inf | 74429.0 |
| _time | _measurement | task_type | _field | _value |
| :------------------------ | :-------------------------------- | :-------- | :----- | ----------------: |
| {{< flux/current-time >}} | task_executor_run_latency_seconds | system | sum | 425678353867.9698 |
| {{< datetime/current-timestamp >}} | task_executor_run_latency_seconds | system | sum | 425678353867.9698 |
| _time | _measurement | task_type | _field | _value |
| :------------------------ | :-------------------------------- | :-------- | :----- | -----: |
| {{< flux/current-time >}} | task_executor_run_latency_seconds | system | count | 74429.0 |
| {{< datetime/current-timestamp >}} | task_executor_run_latency_seconds | system | count | 74429.0 |
| _time | _measurement | task_type | _field | _value |
| :------------------------ | :------------------------- | :-------- | :----- | ----------: |
| {{< flux/current-time >}} | task_executor_run_duration | threshold | 0.5 | 5.178160855 |
| {{< datetime/current-timestamp >}} | task_executor_run_duration | threshold | 0.5 | 5.178160855 |
| _time | _measurement | task_type | _field | _value |
| :------------------------ | :------------------------- | :-------- | :----- | ----------: |
| {{< flux/current-time >}} | task_executor_run_duration | threshold | 0.9 | 5.178160855 |
| {{< datetime/current-timestamp >}} | task_executor_run_duration | threshold | 0.9 | 5.178160855 |
| _time | _measurement | task_type | _field | _value |
| :------------------------ | :------------------------- | :-------- | :----- | ----------: |
| {{< flux/current-time >}} | task_executor_run_duration | threshold | 0.99 | 5.178160855 |
| {{< datetime/current-timestamp >}} | task_executor_run_duration | threshold | 0.99 | 5.178160855 |
| _time | _measurement | task_type | _field | _value |
| :------------------------ | :------------------------- | :-------- | :----- | -----------------: |
| {{< flux/current-time >}} | task_executor_run_duration | threshold | sum | 2121.9758301650004 |
| {{< datetime/current-timestamp >}} | task_executor_run_duration | threshold | sum | 2121.9758301650004 |
| _time | _measurement | task_type | _field | _value |
| :------------------------ | :------------------------- | :-------- | :----- | -----: |
| {{< flux/current-time >}} | task_executor_run_duration | threshold | count | 570.0 |
| {{< datetime/current-timestamp >}} | task_executor_run_duration | threshold | count | 570.0 |
{{% /expand %}}
{{< /expand-wrapper >}}
@ -225,62 +225,62 @@ prometheus,url=http://localhost:8086/metrics,taskID=00xx0Xx0xx00XX0x0,task_type=
{{% expand "View version 2 tables when queried from InfluxDB" %}}
| _time | _measurement | url | _field | _value |
| :------------------------ | :----------- | :---------------------------- | :---------------------------- | -----------: |
| {{< flux/current-time >}} | prometheus | http://localhost:8086/metrics | go_memstats_alloc_bytes_total | 1422764240.0 |
| {{< datetime/current-timestamp >}} | prometheus | http://localhost:8086/metrics | go_memstats_alloc_bytes_total | 1422764240.0 |
| _time | _measurement | url | _field | _value |
| :------------------------ | :----------- | :---------------------------- | :------------------------------ | --------: |
| {{< flux/current-time >}} | prometheus | http://localhost:8086/metrics | go_memstats_buck_hash_sys_bytes | 5259247.0 |
| {{< datetime/current-timestamp >}} | prometheus | http://localhost:8086/metrics | go_memstats_buck_hash_sys_bytes | 5259247.0 |
| _time | _measurement | task_type | url | le | _field | _value |
| :------------------------ | :----------- | :-------- | :---------------------------- | :--- | :-------------------------------- | -----: |
| {{< flux/current-time >}} | prometheus | system | http://localhost:8086/metrics | 0.25 | task_executor_run_latency_seconds | 4413 |
| {{< datetime/current-timestamp >}} | prometheus | system | http://localhost:8086/metrics | 0.25 | task_executor_run_latency_seconds | 4413 |
| _time | _measurement | task_type | url | le | _field | _value |
| :------------------------ | :----------- | :-------- | :---------------------------- | :-- | :-------------------------------- | -----: |
| {{< flux/current-time >}} | prometheus | system | http://localhost:8086/metrics | 0.5 | task_executor_run_latency_seconds | 11901 |
| {{< datetime/current-timestamp >}} | prometheus | system | http://localhost:8086/metrics | 0.5 | task_executor_run_latency_seconds | 11901 |
| _time | _measurement | task_type | url | le | _field | _value |
| :------------------------ | :----------- | :-------- | :---------------------------- | :-- | :-------------------------------- | -----: |
| {{< flux/current-time >}} | prometheus | system | http://localhost:8086/metrics | 1 | task_executor_run_latency_seconds | 12565 |
| {{< datetime/current-timestamp >}} | prometheus | system | http://localhost:8086/metrics | 1 | task_executor_run_latency_seconds | 12565 |
| _time | _measurement | task_type | url | le | _field | _value |
| :------------------------ | :----------- | :-------- | :---------------------------- | :-- | :-------------------------------- | -----: |
| {{< flux/current-time >}} | prometheus | system | http://localhost:8086/metrics | 2.5 | task_executor_run_latency_seconds | 12823 |
| {{< datetime/current-timestamp >}} | prometheus | system | http://localhost:8086/metrics | 2.5 | task_executor_run_latency_seconds | 12823 |
| _time | _measurement | task_type | url | le | _field | _value |
| :------------------------ | :----------- | :-------- | :---------------------------- | :-- | :-------------------------------- | -----: |
| {{< flux/current-time >}} | prometheus | system | http://localhost:8086/metrics | 5 | task_executor_run_latency_seconds | 12844 |
| {{< datetime/current-timestamp >}} | prometheus | system | http://localhost:8086/metrics | 5 | task_executor_run_latency_seconds | 12844 |
| _time | _measurement | task_type | url | le | _field | _value |
| :------------------------ | :----------- | :-------- | :---------------------------- | :--- | :-------------------------------- | -----: |
| {{< flux/current-time >}} | prometheus | system | http://localhost:8086/metrics | +Inf | task_executor_run_latency_seconds | 74429 |
| {{< datetime/current-timestamp >}} | prometheus | system | http://localhost:8086/metrics | +Inf | task_executor_run_latency_seconds | 74429 |
| _time | _measurement | task_type | url | _field | _value |
| :------------------------ | :----------- | :-------- | :---------------------------- | :------------------------------------ | ----------------: |
| {{< flux/current-time >}} | prometheus | system | http://localhost:8086/metrics | task_executor_run_latency_seconds_sum | 425678353867.9698 |
| {{< datetime/current-timestamp >}} | prometheus | system | http://localhost:8086/metrics | task_executor_run_latency_seconds_sum | 425678353867.9698 |
| _time | _measurement | task_type | url | _field | _value |
| :------------------------ | :----------- | :-------- | :---------------------------- | :-------------------------------------- | -----: |
| {{< flux/current-time >}} | prometheus | system | http://localhost:8086/metrics | task_executor_run_latency_seconds_count | 74429 |
| {{< datetime/current-timestamp >}} | prometheus | system | http://localhost:8086/metrics | task_executor_run_latency_seconds_count | 74429 |
| _time | _measurement | task_type | taskID | url | quantile | _field | _value |
| :------------------------ | :----------- | :-------- | :---------------- | :---------------------------- | :------- | :------------------------- | ----------: |
| {{< flux/current-time >}} | prometheus | threshold | 00xx0Xx0xx00XX0x0 | http://localhost:8086/metrics | 0.5 | task_executor_run_duration | 5.178160855 |
| {{< datetime/current-timestamp >}} | prometheus | threshold | 00xx0Xx0xx00XX0x0 | http://localhost:8086/metrics | 0.5 | task_executor_run_duration | 5.178160855 |
| _time | _measurement | task_type | taskID | url | quantile | _field | _value |
| :------------------------ | :----------- | :-------- | :---------------- | :---------------------------- | :------- | :------------------------- | ----------: |
| {{< flux/current-time >}} | prometheus | threshold | 00xx0Xx0xx00XX0x0 | http://localhost:8086/metrics | 0.9 | task_executor_run_duration | 5.178160855 |
| {{< datetime/current-timestamp >}} | prometheus | threshold | 00xx0Xx0xx00XX0x0 | http://localhost:8086/metrics | 0.9 | task_executor_run_duration | 5.178160855 |
| _time | _measurement | task_type | taskID | url | quantile | _field | _value |
| :------------------------ | :----------- | :-------- | :---------------- | :---------------------------- | :------- | :------------------------- | ----------: |
| {{< flux/current-time >}} | prometheus | threshold | 00xx0Xx0xx00XX0x0 | http://localhost:8086/metrics | 0.99 | task_executor_run_duration | 5.178160855 |
| {{< datetime/current-timestamp >}} | prometheus | threshold | 00xx0Xx0xx00XX0x0 | http://localhost:8086/metrics | 0.99 | task_executor_run_duration | 5.178160855 |
| _time | _measurement | task_type | taskID | url | _field | _value |
| :------------------------ | :----------- | :-------- | :---------------- | :---------------------------- | :----------------------------- | -----------------: |
| {{< flux/current-time >}} | prometheus | threshold | 00xx0Xx0xx00XX0x0 | http://localhost:8086/metrics | task_executor_run_duration_sum | 2121.9758301650004 |
| {{< datetime/current-timestamp >}} | prometheus | threshold | 00xx0Xx0xx00XX0x0 | http://localhost:8086/metrics | task_executor_run_duration_sum | 2121.9758301650004 |
| _time | _measurement | task_type | taskID | url | _field | _value |
| :------------------------ | :----------- | :-------- | :---------------- | :---------------------------- | :------------------------------- | -----: |
| {{< flux/current-time >}} | prometheus | threshold | 00xx0Xx0xx00XX0x0 | http://localhost:8086/metrics | task_executor_run_duration_count | 570 |
| {{< datetime/current-timestamp >}} | prometheus | threshold | 00xx0Xx0xx00XX0x0 | http://localhost:8086/metrics | task_executor_run_duration_count | 570 |
{{% /expand %}}
{{< /expand-wrapper >}}

View File

@ -99,63 +99,63 @@ task_executor_run_duration,taskID=00xx0Xx0xx00XX0x0,task_type=threshold 0.5=5.17
{{% expand "View version 1 tables when queried from InfluxDB" %}}
| _time | _measurement | _field | _value |
| :------------------------ | :---------------------------- | :------ | -----------: |
| {{< flux/current-time >}} | go_memstats_alloc_bytes_total | counter | 1422764240.0 |
| {{< datetime/current-timestamp >}} | go_memstats_alloc_bytes_total | counter | 1422764240.0 |
| _time | _measurement | _field | _value |
| :------------------------ | :------------------------------ | :----- | --------: |
| {{< flux/current-time >}} | go_memstats_buck_hash_sys_bytes | gauge | 5259247.0 |
| {{< datetime/current-timestamp >}} | go_memstats_buck_hash_sys_bytes | gauge | 5259247.0 |
| _time | _measurement | task_type | _field | _value |
| :------------------------ | :-------------------------------- | :-------- | :----- | -----: |
| {{< flux/current-time >}} | task_executor_run_latency_seconds | system | 0.25 | 4413.0 |
| {{< datetime/current-timestamp >}} | task_executor_run_latency_seconds | system | 0.25 | 4413.0 |
| _time | _measurement | task_type | _field | _value |
| :------------------------ | :-------------------------------- | :-------- | :----- | ------: |
| {{< flux/current-time >}} | task_executor_run_latency_seconds | system | 0.5 | 11901.0 |
| {{< datetime/current-timestamp >}} | task_executor_run_latency_seconds | system | 0.5 | 11901.0 |
| _time | _measurement | task_type | _field | _value |
| :------------------------ | :-------------------------------- | :-------- | :----- | ------: |
| {{< flux/current-time >}} | task_executor_run_latency_seconds | system | 1 | 12565.0 |
| {{< datetime/current-timestamp >}} | task_executor_run_latency_seconds | system | 1 | 12565.0 |
| _time | _measurement | task_type | _field | _value |
| :------------------------ | :-------------------------------- | :-------- | :----- | ------: |
| {{< flux/current-time >}} | task_executor_run_latency_seconds | system | 2.5 | 12823.0 |
| {{< datetime/current-timestamp >}} | task_executor_run_latency_seconds | system | 2.5 | 12823.0 |
| _time | _measurement | task_type | _field | _value |
| :------------------------ | :-------------------------------- | :-------- | :----- | ------: |
| {{< flux/current-time >}} | task_executor_run_latency_seconds | system | 5 | 12844.0 |
| {{< datetime/current-timestamp >}} | task_executor_run_latency_seconds | system | 5 | 12844.0 |
| _time | _measurement | task_type | _field | _value |
| :------------------------ | :-------------------------------- | :-------- | :----- | ------: |
| {{< flux/current-time >}} | task_executor_run_latency_seconds | system | +Inf | 74429.0 |
| {{< datetime/current-timestamp >}} | task_executor_run_latency_seconds | system | +Inf | 74429.0 |
| _time | _measurement | task_type | _field | _value |
| :------------------------ | :-------------------------------- | :-------- | :----- | ----------------: |
| {{< flux/current-time >}} | task_executor_run_latency_seconds | system | sum | 425678353867.9698 |
| {{< datetime/current-timestamp >}} | task_executor_run_latency_seconds | system | sum | 425678353867.9698 |
| _time | _measurement | task_type | _field | _value |
| :------------------------ | :-------------------------------- | :-------- | :----- | -----: |
| {{< flux/current-time >}} | task_executor_run_latency_seconds | system | count | 74429.0 |
| {{< datetime/current-timestamp >}} | task_executor_run_latency_seconds | system | count | 74429.0 |
| _time | _measurement | task_type | _field | _value |
| :------------------------ | :------------------------- | :-------- | :----- | ----------: |
| {{< flux/current-time >}} | task_executor_run_duration | threshold | 0.5 | 5.178160855 |
| {{< datetime/current-timestamp >}} | task_executor_run_duration | threshold | 0.5 | 5.178160855 |
| _time | _measurement | task_type | _field | _value |
| :------------------------ | :------------------------- | :-------- | :----- | ----------: |
| {{< flux/current-time >}} | task_executor_run_duration | threshold | 0.9 | 5.178160855 |
| {{< datetime/current-timestamp >}} | task_executor_run_duration | threshold | 0.9 | 5.178160855 |
| _time | _measurement | task_type | _field | _value |
| :------------------------ | :------------------------- | :-------- | :----- | ----------: |
| {{< flux/current-time >}} | task_executor_run_duration | threshold | 0.99 | 5.178160855 |
| {{< datetime/current-timestamp >}} | task_executor_run_duration | threshold | 0.99 | 5.178160855 |
| _time | _measurement | task_type | _field | _value |
| :------------------------ | :------------------------- | :-------- | :----- | -----------------: |
| {{< flux/current-time >}} | task_executor_run_duration | threshold | sum | 2121.9758301650004 |
| {{< datetime/current-timestamp >}} | task_executor_run_duration | threshold | sum | 2121.9758301650004 |
| _time | _measurement | task_type | _field | _value |
| :------------------------ | :------------------------- | :-------- | :----- | -----: |
| {{< flux/current-time >}} | task_executor_run_duration | threshold | count | 570.0 |
| {{< datetime/current-timestamp >}} | task_executor_run_duration | threshold | count | 570.0 |
{{% /expand %}}
{{< /expand-wrapper >}}
@ -225,62 +225,62 @@ prometheus,url=http://localhost:8086/metrics,taskID=00xx0Xx0xx00XX0x0,task_type=
{{% expand "View version 2 tables when queried from InfluxDB" %}}
| _time | _measurement | url | _field | _value |
| :------------------------ | :----------- | :---------------------------- | :---------------------------- | -----------: |
| {{< flux/current-time >}} | prometheus | http://localhost:8086/metrics | go_memstats_alloc_bytes_total | 1422764240.0 |
| {{< datetime/current-timestamp >}} | prometheus | http://localhost:8086/metrics | go_memstats_alloc_bytes_total | 1422764240.0 |
| _time | _measurement | url | _field | _value |
| :------------------------ | :----------- | :---------------------------- | :------------------------------ | --------: |
| {{< flux/current-time >}} | prometheus | http://localhost:8086/metrics | go_memstats_buck_hash_sys_bytes | 5259247.0 |
| {{< datetime/current-timestamp >}} | prometheus | http://localhost:8086/metrics | go_memstats_buck_hash_sys_bytes | 5259247.0 |
| _time | _measurement | task_type | url | le | _field | _value |
| :------------------------ | :----------- | :-------- | :---------------------------- | :--- | :-------------------------------- | -----: |
| {{< flux/current-time >}} | prometheus | system | http://localhost:8086/metrics | 0.25 | task_executor_run_latency_seconds | 4413 |
| {{< datetime/current-timestamp >}} | prometheus | system | http://localhost:8086/metrics | 0.25 | task_executor_run_latency_seconds | 4413 |
| _time | _measurement | task_type | url | le | _field | _value |
| :------------------------ | :----------- | :-------- | :---------------------------- | :-- | :-------------------------------- | -----: |
| {{< flux/current-time >}} | prometheus | system | http://localhost:8086/metrics | 0.5 | task_executor_run_latency_seconds | 11901 |
| {{< datetime/current-timestamp >}} | prometheus | system | http://localhost:8086/metrics | 0.5 | task_executor_run_latency_seconds | 11901 |
| _time | _measurement | task_type | url | le | _field | _value |
| :------------------------ | :----------- | :-------- | :---------------------------- | :-- | :-------------------------------- | -----: |
| {{< flux/current-time >}} | prometheus | system | http://localhost:8086/metrics | 1 | task_executor_run_latency_seconds | 12565 |
| {{< datetime/current-timestamp >}} | prometheus | system | http://localhost:8086/metrics | 1 | task_executor_run_latency_seconds | 12565 |
| _time | _measurement | task_type | url | le | _field | _value |
| :------------------------ | :----------- | :-------- | :---------------------------- | :-- | :-------------------------------- | -----: |
| {{< flux/current-time >}} | prometheus | system | http://localhost:8086/metrics | 2.5 | task_executor_run_latency_seconds | 12823 |
| {{< datetime/current-timestamp >}} | prometheus | system | http://localhost:8086/metrics | 2.5 | task_executor_run_latency_seconds | 12823 |
| _time | _measurement | task_type | url | le | _field | _value |
| :------------------------ | :----------- | :-------- | :---------------------------- | :-- | :-------------------------------- | -----: |
| {{< flux/current-time >}} | prometheus | system | http://localhost:8086/metrics | 5 | task_executor_run_latency_seconds | 12844 |
| {{< datetime/current-timestamp >}} | prometheus | system | http://localhost:8086/metrics | 5 | task_executor_run_latency_seconds | 12844 |
| _time | _measurement | task_type | url | le | _field | _value |
| :------------------------ | :----------- | :-------- | :---------------------------- | :--- | :-------------------------------- | -----: |
| {{< flux/current-time >}} | prometheus | system | http://localhost:8086/metrics | +Inf | task_executor_run_latency_seconds | 74429 |
| {{< datetime/current-timestamp >}} | prometheus | system | http://localhost:8086/metrics | +Inf | task_executor_run_latency_seconds | 74429 |
| _time | _measurement | task_type | url | _field | _value |
| :------------------------ | :----------- | :-------- | :---------------------------- | :------------------------------------ | ----------------: |
| {{< flux/current-time >}} | prometheus | system | http://localhost:8086/metrics | task_executor_run_latency_seconds_sum | 425678353867.9698 |
| {{< datetime/current-timestamp >}} | prometheus | system | http://localhost:8086/metrics | task_executor_run_latency_seconds_sum | 425678353867.9698 |
| _time | _measurement | task_type | url | _field | _value |
| :------------------------ | :----------- | :-------- | :---------------------------- | :-------------------------------------- | -----: |
| {{< flux/current-time >}} | prometheus | system | http://localhost:8086/metrics | task_executor_run_latency_seconds_count | 74429 |
| {{< datetime/current-timestamp >}} | prometheus | system | http://localhost:8086/metrics | task_executor_run_latency_seconds_count | 74429 |
| _time | _measurement | task_type | taskID | url | quantile | _field | _value |
| :------------------------ | :----------- | :-------- | :---------------- | :---------------------------- | :------- | :------------------------- | ----------: |
| {{< flux/current-time >}} | prometheus | threshold | 00xx0Xx0xx00XX0x0 | http://localhost:8086/metrics | 0.5 | task_executor_run_duration | 5.178160855 |
| {{< datetime/current-timestamp >}} | prometheus | threshold | 00xx0Xx0xx00XX0x0 | http://localhost:8086/metrics | 0.5 | task_executor_run_duration | 5.178160855 |
| _time | _measurement | task_type | taskID | url | quantile | _field | _value |
| :------------------------ | :----------- | :-------- | :---------------- | :---------------------------- | :------- | :------------------------- | ----------: |
| {{< flux/current-time >}} | prometheus | threshold | 00xx0Xx0xx00XX0x0 | http://localhost:8086/metrics | 0.9 | task_executor_run_duration | 5.178160855 |
| {{< datetime/current-timestamp >}} | prometheus | threshold | 00xx0Xx0xx00XX0x0 | http://localhost:8086/metrics | 0.9 | task_executor_run_duration | 5.178160855 |
| _time | _measurement | task_type | taskID | url | quantile | _field | _value |
| :------------------------ | :----------- | :-------- | :---------------- | :---------------------------- | :------- | :------------------------- | ----------: |
| {{< flux/current-time >}} | prometheus | threshold | 00xx0Xx0xx00XX0x0 | http://localhost:8086/metrics | 0.99 | task_executor_run_duration | 5.178160855 |
| {{< datetime/current-timestamp >}} | prometheus | threshold | 00xx0Xx0xx00XX0x0 | http://localhost:8086/metrics | 0.99 | task_executor_run_duration | 5.178160855 |
| _time | _measurement | task_type | taskID | url | _field | _value |
| :------------------------ | :----------- | :-------- | :---------------- | :---------------------------- | :----------------------------- | -----------------: |
| {{< flux/current-time >}} | prometheus | threshold | 00xx0Xx0xx00XX0x0 | http://localhost:8086/metrics | task_executor_run_duration_sum | 2121.9758301650004 |
| {{< datetime/current-timestamp >}} | prometheus | threshold | 00xx0Xx0xx00XX0x0 | http://localhost:8086/metrics | task_executor_run_duration_sum | 2121.9758301650004 |
| _time | _measurement | task_type | taskID | url | _field | _value |
| :------------------------ | :----------- | :-------- | :---------------- | :---------------------------- | :------------------------------- | -----: |
| {{< flux/current-time >}} | prometheus | threshold | 00xx0Xx0xx00XX0x0 | http://localhost:8086/metrics | task_executor_run_duration_count | 570 |
| {{< datetime/current-timestamp >}} | prometheus | threshold | 00xx0Xx0xx00XX0x0 | http://localhost:8086/metrics | task_executor_run_duration_count | 570 |
{{% /expand %}}
{{< /expand-wrapper >}}

View File

@ -99,63 +99,63 @@ task_executor_run_duration,taskID=00xx0Xx0xx00XX0x0,task_type=threshold 0.5=5.17
{{% expand "View version 1 tables when queried from InfluxDB" %}}
| _time | _measurement | _field | _value |
| :------------------------ | :---------------------------- | :------ | -----------: |
| {{< flux/current-time >}} | go_memstats_alloc_bytes_total | counter | 1422764240.0 |
| {{< datetime/current-timestamp >}} | go_memstats_alloc_bytes_total | counter | 1422764240.0 |
| _time | _measurement | _field | _value |
| :------------------------ | :------------------------------ | :----- | --------: |
| {{< flux/current-time >}} | go_memstats_buck_hash_sys_bytes | gauge | 5259247.0 |
| {{< datetime/current-timestamp >}} | go_memstats_buck_hash_sys_bytes | gauge | 5259247.0 |
| _time | _measurement | task_type | _field | _value |
| :------------------------ | :-------------------------------- | :-------- | :----- | -----: |
| {{< flux/current-time >}} | task_executor_run_latency_seconds | system | 0.25 | 4413.0 |
| {{< datetime/current-timestamp >}} | task_executor_run_latency_seconds | system | 0.25 | 4413.0 |
| _time | _measurement | task_type | _field | _value |
| :------------------------ | :-------------------------------- | :-------- | :----- | ------: |
| {{< flux/current-time >}} | task_executor_run_latency_seconds | system | 0.5 | 11901.0 |
| {{< datetime/current-timestamp >}} | task_executor_run_latency_seconds | system | 0.5 | 11901.0 |
| _time | _measurement | task_type | _field | _value |
| :------------------------ | :-------------------------------- | :-------- | :----- | ------: |
| {{< flux/current-time >}} | task_executor_run_latency_seconds | system | 1 | 12565.0 |
| {{< datetime/current-timestamp >}} | task_executor_run_latency_seconds | system | 1 | 12565.0 |
| _time | _measurement | task_type | _field | _value |
| :------------------------ | :-------------------------------- | :-------- | :----- | ------: |
| {{< flux/current-time >}} | task_executor_run_latency_seconds | system | 2.5 | 12823.0 |
| {{< datetime/current-timestamp >}} | task_executor_run_latency_seconds | system | 2.5 | 12823.0 |
| _time | _measurement | task_type | _field | _value |
| :------------------------ | :-------------------------------- | :-------- | :----- | ------: |
| {{< flux/current-time >}} | task_executor_run_latency_seconds | system | 5 | 12844.0 |
| {{< datetime/current-timestamp >}} | task_executor_run_latency_seconds | system | 5 | 12844.0 |
| _time | _measurement | task_type | _field | _value |
| :------------------------ | :-------------------------------- | :-------- | :----- | ------: |
| {{< flux/current-time >}} | task_executor_run_latency_seconds | system | +Inf | 74429.0 |
| {{< datetime/current-timestamp >}} | task_executor_run_latency_seconds | system | +Inf | 74429.0 |
| _time | _measurement | task_type | _field | _value |
| :------------------------ | :-------------------------------- | :-------- | :----- | ----------------: |
| {{< flux/current-time >}} | task_executor_run_latency_seconds | system | sum | 425678353867.9698 |
| {{< datetime/current-timestamp >}} | task_executor_run_latency_seconds | system | sum | 425678353867.9698 |
| _time | _measurement | task_type | _field | _value |
| :------------------------ | :-------------------------------- | :-------- | :----- | -----: |
| {{< flux/current-time >}} | task_executor_run_latency_seconds | system | count | 74429.0 |
| {{< datetime/current-timestamp >}} | task_executor_run_latency_seconds | system | count | 74429.0 |
| _time | _measurement | task_type | _field | _value |
| :------------------------ | :------------------------- | :-------- | :----- | ----------: |
| {{< flux/current-time >}} | task_executor_run_duration | threshold | 0.5 | 5.178160855 |
| {{< datetime/current-timestamp >}} | task_executor_run_duration | threshold | 0.5 | 5.178160855 |
| _time | _measurement | task_type | _field | _value |
| :------------------------ | :------------------------- | :-------- | :----- | ----------: |
| {{< flux/current-time >}} | task_executor_run_duration | threshold | 0.9 | 5.178160855 |
| {{< datetime/current-timestamp >}} | task_executor_run_duration | threshold | 0.9 | 5.178160855 |
| _time | _measurement | task_type | _field | _value |
| :------------------------ | :------------------------- | :-------- | :----- | ----------: |
| {{< flux/current-time >}} | task_executor_run_duration | threshold | 0.99 | 5.178160855 |
| {{< datetime/current-timestamp >}} | task_executor_run_duration | threshold | 0.99 | 5.178160855 |
| _time | _measurement | task_type | _field | _value |
| :------------------------ | :------------------------- | :-------- | :----- | -----------------: |
| {{< flux/current-time >}} | task_executor_run_duration | threshold | sum | 2121.9758301650004 |
| {{< datetime/current-timestamp >}} | task_executor_run_duration | threshold | sum | 2121.9758301650004 |
| _time | _measurement | task_type | _field | _value |
| :------------------------ | :------------------------- | :-------- | :----- | -----: |
| {{< flux/current-time >}} | task_executor_run_duration | threshold | count | 570.0 |
| {{< datetime/current-timestamp >}} | task_executor_run_duration | threshold | count | 570.0 |
{{% /expand %}}
{{< /expand-wrapper >}}
@ -225,62 +225,62 @@ prometheus,url=http://localhost:8086/metrics,taskID=00xx0Xx0xx00XX0x0,task_type=
{{% expand "View version 2 tables when queried from InfluxDB" %}}
| _time | _measurement | url | _field | _value |
| :------------------------ | :----------- | :---------------------------- | :---------------------------- | -----------: |
| {{< flux/current-time >}} | prometheus | http://localhost:8086/metrics | go_memstats_alloc_bytes_total | 1422764240.0 |
| {{< datetime/current-timestamp >}} | prometheus | http://localhost:8086/metrics | go_memstats_alloc_bytes_total | 1422764240.0 |
| _time | _measurement | url | _field | _value |
| :------------------------ | :----------- | :---------------------------- | :------------------------------ | --------: |
| {{< flux/current-time >}} | prometheus | http://localhost:8086/metrics | go_memstats_buck_hash_sys_bytes | 5259247.0 |
| {{< datetime/current-timestamp >}} | prometheus | http://localhost:8086/metrics | go_memstats_buck_hash_sys_bytes | 5259247.0 |
| _time | _measurement | task_type | url | le | _field | _value |
| :------------------------ | :----------- | :-------- | :---------------------------- | :--- | :-------------------------------- | -----: |
| {{< flux/current-time >}} | prometheus | system | http://localhost:8086/metrics | 0.25 | task_executor_run_latency_seconds | 4413 |
| {{< datetime/current-timestamp >}} | prometheus | system | http://localhost:8086/metrics | 0.25 | task_executor_run_latency_seconds | 4413 |
| _time | _measurement | task_type | url | le | _field | _value |
| :------------------------ | :----------- | :-------- | :---------------------------- | :-- | :-------------------------------- | -----: |
| {{< flux/current-time >}} | prometheus | system | http://localhost:8086/metrics | 0.5 | task_executor_run_latency_seconds | 11901 |
| {{< datetime/current-timestamp >}} | prometheus | system | http://localhost:8086/metrics | 0.5 | task_executor_run_latency_seconds | 11901 |
| _time | _measurement | task_type | url | le | _field | _value |
| :------------------------ | :----------- | :-------- | :---------------------------- | :-- | :-------------------------------- | -----: |
| {{< flux/current-time >}} | prometheus | system | http://localhost:8086/metrics | 1 | task_executor_run_latency_seconds | 12565 |
| {{< datetime/current-timestamp >}} | prometheus | system | http://localhost:8086/metrics | 1 | task_executor_run_latency_seconds | 12565 |
| _time | _measurement | task_type | url | le | _field | _value |
| :------------------------ | :----------- | :-------- | :---------------------------- | :-- | :-------------------------------- | -----: |
| {{< flux/current-time >}} | prometheus | system | http://localhost:8086/metrics | 2.5 | task_executor_run_latency_seconds | 12823 |
| {{< datetime/current-timestamp >}} | prometheus | system | http://localhost:8086/metrics | 2.5 | task_executor_run_latency_seconds | 12823 |
| _time | _measurement | task_type | url | le | _field | _value |
| :------------------------ | :----------- | :-------- | :---------------------------- | :-- | :-------------------------------- | -----: |
| {{< flux/current-time >}} | prometheus | system | http://localhost:8086/metrics | 5 | task_executor_run_latency_seconds | 12844 |
| {{< datetime/current-timestamp >}} | prometheus | system | http://localhost:8086/metrics | 5 | task_executor_run_latency_seconds | 12844 |
| _time | _measurement | task_type | url | le | _field | _value |
| :------------------------ | :----------- | :-------- | :---------------------------- | :--- | :-------------------------------- | -----: |
| {{< flux/current-time >}} | prometheus | system | http://localhost:8086/metrics | +Inf | task_executor_run_latency_seconds | 74429 |
| {{< datetime/current-timestamp >}} | prometheus | system | http://localhost:8086/metrics | +Inf | task_executor_run_latency_seconds | 74429 |
| _time | _measurement | task_type | url | _field | _value |
| :------------------------ | :----------- | :-------- | :---------------------------- | :------------------------------------ | ----------------: |
| {{< flux/current-time >}} | prometheus | system | http://localhost:8086/metrics | task_executor_run_latency_seconds_sum | 425678353867.9698 |
| {{< datetime/current-timestamp >}} | prometheus | system | http://localhost:8086/metrics | task_executor_run_latency_seconds_sum | 425678353867.9698 |
| _time | _measurement | task_type | url | _field | _value |
| :------------------------ | :----------- | :-------- | :---------------------------- | :-------------------------------------- | -----: |
| {{< flux/current-time >}} | prometheus | system | http://localhost:8086/metrics | task_executor_run_latency_seconds_count | 74429 |
| {{< datetime/current-timestamp >}} | prometheus | system | http://localhost:8086/metrics | task_executor_run_latency_seconds_count | 74429 |
| _time | _measurement | task_type | taskID | url | quantile | _field | _value |
| :------------------------ | :----------- | :-------- | :---------------- | :---------------------------- | :------- | :------------------------- | ----------: |
| {{< flux/current-time >}} | prometheus | threshold | 00xx0Xx0xx00XX0x0 | http://localhost:8086/metrics | 0.5 | task_executor_run_duration | 5.178160855 |
| {{< datetime/current-timestamp >}} | prometheus | threshold | 00xx0Xx0xx00XX0x0 | http://localhost:8086/metrics | 0.5 | task_executor_run_duration | 5.178160855 |
| _time | _measurement | task_type | taskID | url | quantile | _field | _value |
| :------------------------ | :----------- | :-------- | :---------------- | :---------------------------- | :------- | :------------------------- | ----------: |
| {{< flux/current-time >}} | prometheus | threshold | 00xx0Xx0xx00XX0x0 | http://localhost:8086/metrics | 0.9 | task_executor_run_duration | 5.178160855 |
| {{< datetime/current-timestamp >}} | prometheus | threshold | 00xx0Xx0xx00XX0x0 | http://localhost:8086/metrics | 0.9 | task_executor_run_duration | 5.178160855 |
| _time | _measurement | task_type | taskID | url | quantile | _field | _value |
| :------------------------ | :----------- | :-------- | :---------------- | :---------------------------- | :------- | :------------------------- | ----------: |
| {{< flux/current-time >}} | prometheus | threshold | 00xx0Xx0xx00XX0x0 | http://localhost:8086/metrics | 0.99 | task_executor_run_duration | 5.178160855 |
| {{< datetime/current-timestamp >}} | prometheus | threshold | 00xx0Xx0xx00XX0x0 | http://localhost:8086/metrics | 0.99 | task_executor_run_duration | 5.178160855 |
| _time | _measurement | task_type | taskID | url | _field | _value |
| :------------------------ | :----------- | :-------- | :---------------- | :---------------------------- | :----------------------------- | -----------------: |
| {{< flux/current-time >}} | prometheus | threshold | 00xx0Xx0xx00XX0x0 | http://localhost:8086/metrics | task_executor_run_duration_sum | 2121.9758301650004 |
| {{< datetime/current-timestamp >}} | prometheus | threshold | 00xx0Xx0xx00XX0x0 | http://localhost:8086/metrics | task_executor_run_duration_sum | 2121.9758301650004 |
| _time | _measurement | task_type | taskID | url | _field | _value |
| :------------------------ | :----------- | :-------- | :---------------- | :---------------------------- | :------------------------------- | -----: |
| {{< flux/current-time >}} | prometheus | threshold | 00xx0Xx0xx00XX0x0 | http://localhost:8086/metrics | task_executor_run_duration_count | 570 |
| {{< datetime/current-timestamp >}} | prometheus | threshold | 00xx0Xx0xx00XX0x0 | http://localhost:8086/metrics | task_executor_run_duration_count | 570 |
{{% /expand %}}
{{< /expand-wrapper >}}

View File

@ -99,63 +99,63 @@ task_executor_run_duration,taskID=00xx0Xx0xx00XX0x0,task_type=threshold 0.5=5.17
{{% expand "View version 1 tables when queried from InfluxDB" %}}
| _time | _measurement | _field | _value |
| :------------------------ | :---------------------------- | :------ | -----------: |
| {{< flux/current-time >}} | go_memstats_alloc_bytes_total | counter | 1422764240.0 |
| {{< datetime/current-timestamp >}} | go_memstats_alloc_bytes_total | counter | 1422764240.0 |
| _time | _measurement | _field | _value |
| :------------------------ | :------------------------------ | :----- | --------: |
| {{< flux/current-time >}} | go_memstats_buck_hash_sys_bytes | gauge | 5259247.0 |
| {{< datetime/current-timestamp >}} | go_memstats_buck_hash_sys_bytes | gauge | 5259247.0 |
| _time | _measurement | task_type | _field | _value |
| :------------------------ | :-------------------------------- | :-------- | :----- | -----: |
| {{< flux/current-time >}} | task_executor_run_latency_seconds | system | 0.25 | 4413.0 |
| {{< datetime/current-timestamp >}} | task_executor_run_latency_seconds | system | 0.25 | 4413.0 |
| _time | _measurement | task_type | _field | _value |
| :------------------------ | :-------------------------------- | :-------- | :----- | ------: |
| {{< flux/current-time >}} | task_executor_run_latency_seconds | system | 0.5 | 11901.0 |
| {{< datetime/current-timestamp >}} | task_executor_run_latency_seconds | system | 0.5 | 11901.0 |
| _time | _measurement | task_type | _field | _value |
| :------------------------ | :-------------------------------- | :-------- | :----- | ------: |
| {{< flux/current-time >}} | task_executor_run_latency_seconds | system | 1 | 12565.0 |
| {{< datetime/current-timestamp >}} | task_executor_run_latency_seconds | system | 1 | 12565.0 |
| _time | _measurement | task_type | _field | _value |
| :------------------------ | :-------------------------------- | :-------- | :----- | ------: |
| {{< flux/current-time >}} | task_executor_run_latency_seconds | system | 2.5 | 12823.0 |
| {{< datetime/current-timestamp >}} | task_executor_run_latency_seconds | system | 2.5 | 12823.0 |
| _time | _measurement | task_type | _field | _value |
| :------------------------ | :-------------------------------- | :-------- | :----- | ------: |
| {{< flux/current-time >}} | task_executor_run_latency_seconds | system | 5 | 12844.0 |
| {{< datetime/current-timestamp >}} | task_executor_run_latency_seconds | system | 5 | 12844.0 |
| _time | _measurement | task_type | _field | _value |
| :------------------------ | :-------------------------------- | :-------- | :----- | ------: |
| {{< flux/current-time >}} | task_executor_run_latency_seconds | system | +Inf | 74429.0 |
| {{< datetime/current-timestamp >}} | task_executor_run_latency_seconds | system | +Inf | 74429.0 |
| _time | _measurement | task_type | _field | _value |
| :------------------------ | :-------------------------------- | :-------- | :----- | ----------------: |
| {{< flux/current-time >}} | task_executor_run_latency_seconds | system | sum | 425678353867.9698 |
| {{< datetime/current-timestamp >}} | task_executor_run_latency_seconds | system | sum | 425678353867.9698 |
| _time | _measurement | task_type | _field | _value |
| :------------------------ | :-------------------------------- | :-------- | :----- | -----: |
| {{< flux/current-time >}} | task_executor_run_latency_seconds | system | count | 74429.0 |
| {{< datetime/current-timestamp >}} | task_executor_run_latency_seconds | system | count | 74429.0 |
| _time | _measurement | task_type | _field | _value |
| :------------------------ | :------------------------- | :-------- | :----- | ----------: |
| {{< flux/current-time >}} | task_executor_run_duration | threshold | 0.5 | 5.178160855 |
| {{< datetime/current-timestamp >}} | task_executor_run_duration | threshold | 0.5 | 5.178160855 |
| _time | _measurement | task_type | _field | _value |
| :------------------------ | :------------------------- | :-------- | :----- | ----------: |
| {{< flux/current-time >}} | task_executor_run_duration | threshold | 0.9 | 5.178160855 |
| {{< datetime/current-timestamp >}} | task_executor_run_duration | threshold | 0.9 | 5.178160855 |
| _time | _measurement | task_type | _field | _value |
| :------------------------ | :------------------------- | :-------- | :----- | ----------: |
| {{< flux/current-time >}} | task_executor_run_duration | threshold | 0.99 | 5.178160855 |
| {{< datetime/current-timestamp >}} | task_executor_run_duration | threshold | 0.99 | 5.178160855 |
| _time | _measurement | task_type | _field | _value |
| :------------------------ | :------------------------- | :-------- | :----- | -----------------: |
| {{< flux/current-time >}} | task_executor_run_duration | threshold | sum | 2121.9758301650004 |
| {{< datetime/current-timestamp >}} | task_executor_run_duration | threshold | sum | 2121.9758301650004 |
| _time | _measurement | task_type | _field | _value |
| :------------------------ | :------------------------- | :-------- | :----- | -----: |
| {{< flux/current-time >}} | task_executor_run_duration | threshold | count | 570.0 |
| {{< datetime/current-timestamp >}} | task_executor_run_duration | threshold | count | 570.0 |
{{% /expand %}}
{{< /expand-wrapper >}}
@ -225,62 +225,62 @@ prometheus,url=http://localhost:8086/metrics,taskID=00xx0Xx0xx00XX0x0,task_type=
{{% expand "View version 2 tables when queried from InfluxDB" %}}
| _time | _measurement | url | _field | _value |
| :------------------------ | :----------- | :---------------------------- | :---------------------------- | -----------: |
| {{< flux/current-time >}} | prometheus | http://localhost:8086/metrics | go_memstats_alloc_bytes_total | 1422764240.0 |
| {{< datetime/current-timestamp >}} | prometheus | http://localhost:8086/metrics | go_memstats_alloc_bytes_total | 1422764240.0 |
| _time | _measurement | url | _field | _value |
| :------------------------ | :----------- | :---------------------------- | :------------------------------ | --------: |
| {{< flux/current-time >}} | prometheus | http://localhost:8086/metrics | go_memstats_buck_hash_sys_bytes | 5259247.0 |
| {{< datetime/current-timestamp >}} | prometheus | http://localhost:8086/metrics | go_memstats_buck_hash_sys_bytes | 5259247.0 |
| _time | _measurement | task_type | url | le | _field | _value |
| :------------------------ | :----------- | :-------- | :---------------------------- | :--- | :-------------------------------- | -----: |
| {{< flux/current-time >}} | prometheus | system | http://localhost:8086/metrics | 0.25 | task_executor_run_latency_seconds | 4413 |
| {{< datetime/current-timestamp >}} | prometheus | system | http://localhost:8086/metrics | 0.25 | task_executor_run_latency_seconds | 4413 |
| _time | _measurement | task_type | url | le | _field | _value |
| :------------------------ | :----------- | :-------- | :---------------------------- | :-- | :-------------------------------- | -----: |
| {{< flux/current-time >}} | prometheus | system | http://localhost:8086/metrics | 0.5 | task_executor_run_latency_seconds | 11901 |
| {{< datetime/current-timestamp >}} | prometheus | system | http://localhost:8086/metrics | 0.5 | task_executor_run_latency_seconds | 11901 |
| _time | _measurement | task_type | url | le | _field | _value |
| :------------------------ | :----------- | :-------- | :---------------------------- | :-- | :-------------------------------- | -----: |
| {{< flux/current-time >}} | prometheus | system | http://localhost:8086/metrics | 1 | task_executor_run_latency_seconds | 12565 |
| {{< datetime/current-timestamp >}} | prometheus | system | http://localhost:8086/metrics | 1 | task_executor_run_latency_seconds | 12565 |
| _time | _measurement | task_type | url | le | _field | _value |
| :------------------------ | :----------- | :-------- | :---------------------------- | :-- | :-------------------------------- | -----: |
| {{< flux/current-time >}} | prometheus | system | http://localhost:8086/metrics | 2.5 | task_executor_run_latency_seconds | 12823 |
| {{< datetime/current-timestamp >}} | prometheus | system | http://localhost:8086/metrics | 2.5 | task_executor_run_latency_seconds | 12823 |
| _time | _measurement | task_type | url | le | _field | _value |
| :------------------------ | :----------- | :-------- | :---------------------------- | :-- | :-------------------------------- | -----: |
| {{< flux/current-time >}} | prometheus | system | http://localhost:8086/metrics | 5 | task_executor_run_latency_seconds | 12844 |
| {{< datetime/current-timestamp >}} | prometheus | system | http://localhost:8086/metrics | 5 | task_executor_run_latency_seconds | 12844 |
| _time | _measurement | task_type | url | le | _field | _value |
| :------------------------ | :----------- | :-------- | :---------------------------- | :--- | :-------------------------------- | -----: |
| {{< flux/current-time >}} | prometheus | system | http://localhost:8086/metrics | +Inf | task_executor_run_latency_seconds | 74429 |
| {{< datetime/current-timestamp >}} | prometheus | system | http://localhost:8086/metrics | +Inf | task_executor_run_latency_seconds | 74429 |
| _time | _measurement | task_type | url | _field | _value |
| :------------------------ | :----------- | :-------- | :---------------------------- | :------------------------------------ | ----------------: |
| {{< flux/current-time >}} | prometheus | system | http://localhost:8086/metrics | task_executor_run_latency_seconds_sum | 425678353867.9698 |
| {{< datetime/current-timestamp >}} | prometheus | system | http://localhost:8086/metrics | task_executor_run_latency_seconds_sum | 425678353867.9698 |
| _time | _measurement | task_type | url | _field | _value |
| :------------------------ | :----------- | :-------- | :---------------------------- | :-------------------------------------- | -----: |
| {{< flux/current-time >}} | prometheus | system | http://localhost:8086/metrics | task_executor_run_latency_seconds_count | 74429 |
| {{< datetime/current-timestamp >}} | prometheus | system | http://localhost:8086/metrics | task_executor_run_latency_seconds_count | 74429 |
| _time | _measurement | task_type | taskID | url | quantile | _field | _value |
| :------------------------ | :----------- | :-------- | :---------------- | :---------------------------- | :------- | :------------------------- | ----------: |
| {{< flux/current-time >}} | prometheus | threshold | 00xx0Xx0xx00XX0x0 | http://localhost:8086/metrics | 0.5 | task_executor_run_duration | 5.178160855 |
| {{< datetime/current-timestamp >}} | prometheus | threshold | 00xx0Xx0xx00XX0x0 | http://localhost:8086/metrics | 0.5 | task_executor_run_duration | 5.178160855 |
| _time | _measurement | task_type | taskID | url | quantile | _field | _value |
| :------------------------ | :----------- | :-------- | :---------------- | :---------------------------- | :------- | :------------------------- | ----------: |
| {{< flux/current-time >}} | prometheus | threshold | 00xx0Xx0xx00XX0x0 | http://localhost:8086/metrics | 0.9 | task_executor_run_duration | 5.178160855 |
| {{< datetime/current-timestamp >}} | prometheus | threshold | 00xx0Xx0xx00XX0x0 | http://localhost:8086/metrics | 0.9 | task_executor_run_duration | 5.178160855 |
| _time | _measurement | task_type | taskID | url | quantile | _field | _value |
| :------------------------ | :----------- | :-------- | :---------------- | :---------------------------- | :------- | :------------------------- | ----------: |
| {{< flux/current-time >}} | prometheus | threshold | 00xx0Xx0xx00XX0x0 | http://localhost:8086/metrics | 0.99 | task_executor_run_duration | 5.178160855 |
| {{< datetime/current-timestamp >}} | prometheus | threshold | 00xx0Xx0xx00XX0x0 | http://localhost:8086/metrics | 0.99 | task_executor_run_duration | 5.178160855 |
| _time | _measurement | task_type | taskID | url | _field | _value |
| :------------------------ | :----------- | :-------- | :---------------- | :---------------------------- | :----------------------------- | -----------------: |
| {{< flux/current-time >}} | prometheus | threshold | 00xx0Xx0xx00XX0x0 | http://localhost:8086/metrics | task_executor_run_duration_sum | 2121.9758301650004 |
| {{< datetime/current-timestamp >}} | prometheus | threshold | 00xx0Xx0xx00XX0x0 | http://localhost:8086/metrics | task_executor_run_duration_sum | 2121.9758301650004 |
| _time | _measurement | task_type | taskID | url | _field | _value |
| :------------------------ | :----------- | :-------- | :---------------- | :---------------------------- | :------------------------------- | -----: |
| {{< flux/current-time >}} | prometheus | threshold | 00xx0Xx0xx00XX0x0 | http://localhost:8086/metrics | task_executor_run_duration_count | 570 |
| {{< datetime/current-timestamp >}} | prometheus | threshold | 00xx0Xx0xx00XX0x0 | http://localhost:8086/metrics | task_executor_run_duration_count | 570 |
{{% /expand %}}
{{< /expand-wrapper >}}

View File

@ -99,63 +99,63 @@ task_executor_run_duration,taskID=00xx0Xx0xx00XX0x0,task_type=threshold 0.5=5.17
{{% expand "View version 1 tables when queried from InfluxDB" %}}
| _time | _measurement | _field | _value |
| :------------------------ | :---------------------------- | :------ | -----------: |
| {{< flux/current-time >}} | go_memstats_alloc_bytes_total | counter | 1422764240.0 |
| {{< datetime/current-timestamp >}} | go_memstats_alloc_bytes_total | counter | 1422764240.0 |
| _time | _measurement | _field | _value |
| :------------------------ | :------------------------------ | :----- | --------: |
| {{< flux/current-time >}} | go_memstats_buck_hash_sys_bytes | gauge | 5259247.0 |
| {{< datetime/current-timestamp >}} | go_memstats_buck_hash_sys_bytes | gauge | 5259247.0 |
| _time | _measurement | task_type | _field | _value |
| :------------------------ | :-------------------------------- | :-------- | :----- | -----: |
| {{< flux/current-time >}} | task_executor_run_latency_seconds | system | 0.25 | 4413.0 |
| {{< datetime/current-timestamp >}} | task_executor_run_latency_seconds | system | 0.25 | 4413.0 |
| _time | _measurement | task_type | _field | _value |
| :------------------------ | :-------------------------------- | :-------- | :----- | ------: |
| {{< flux/current-time >}} | task_executor_run_latency_seconds | system | 0.5 | 11901.0 |
| {{< datetime/current-timestamp >}} | task_executor_run_latency_seconds | system | 0.5 | 11901.0 |
| _time | _measurement | task_type | _field | _value |
| :------------------------ | :-------------------------------- | :-------- | :----- | ------: |
| {{< flux/current-time >}} | task_executor_run_latency_seconds | system | 1 | 12565.0 |
| {{< datetime/current-timestamp >}} | task_executor_run_latency_seconds | system | 1 | 12565.0 |
| _time | _measurement | task_type | _field | _value |
| :------------------------ | :-------------------------------- | :-------- | :----- | ------: |
| {{< flux/current-time >}} | task_executor_run_latency_seconds | system | 2.5 | 12823.0 |
| {{< datetime/current-timestamp >}} | task_executor_run_latency_seconds | system | 2.5 | 12823.0 |
| _time | _measurement | task_type | _field | _value |
| :------------------------ | :-------------------------------- | :-------- | :----- | ------: |
| {{< flux/current-time >}} | task_executor_run_latency_seconds | system | 5 | 12844.0 |
| {{< datetime/current-timestamp >}} | task_executor_run_latency_seconds | system | 5 | 12844.0 |
| _time | _measurement | task_type | _field | _value |
| :------------------------ | :-------------------------------- | :-------- | :----- | ------: |
| {{< flux/current-time >}} | task_executor_run_latency_seconds | system | +Inf | 74429.0 |
| {{< datetime/current-timestamp >}} | task_executor_run_latency_seconds | system | +Inf | 74429.0 |
| _time | _measurement | task_type | _field | _value |
| :------------------------ | :-------------------------------- | :-------- | :----- | ----------------: |
| {{< flux/current-time >}} | task_executor_run_latency_seconds | system | sum | 425678353867.9698 |
| {{< datetime/current-timestamp >}} | task_executor_run_latency_seconds | system | sum | 425678353867.9698 |
| _time | _measurement | task_type | _field | _value |
| :------------------------ | :-------------------------------- | :-------- | :----- | -----: |
| {{< flux/current-time >}} | task_executor_run_latency_seconds | system | count | 74429.0 |
| {{< datetime/current-timestamp >}} | task_executor_run_latency_seconds | system | count | 74429.0 |
| _time | _measurement | task_type | _field | _value |
| :------------------------ | :------------------------- | :-------- | :----- | ----------: |
| {{< flux/current-time >}} | task_executor_run_duration | threshold | 0.5 | 5.178160855 |
| {{< datetime/current-timestamp >}} | task_executor_run_duration | threshold | 0.5 | 5.178160855 |
| _time | _measurement | task_type | _field | _value |
| :------------------------ | :------------------------- | :-------- | :----- | ----------: |
| {{< flux/current-time >}} | task_executor_run_duration | threshold | 0.9 | 5.178160855 |
| {{< datetime/current-timestamp >}} | task_executor_run_duration | threshold | 0.9 | 5.178160855 |
| _time | _measurement | task_type | _field | _value |
| :------------------------ | :------------------------- | :-------- | :----- | ----------: |
| {{< flux/current-time >}} | task_executor_run_duration | threshold | 0.99 | 5.178160855 |
| {{< datetime/current-timestamp >}} | task_executor_run_duration | threshold | 0.99 | 5.178160855 |
| _time | _measurement | task_type | _field | _value |
| :------------------------ | :------------------------- | :-------- | :----- | -----------------: |
| {{< flux/current-time >}} | task_executor_run_duration | threshold | sum | 2121.9758301650004 |
| {{< datetime/current-timestamp >}} | task_executor_run_duration | threshold | sum | 2121.9758301650004 |
| _time | _measurement | task_type | _field | _value |
| :------------------------ | :------------------------- | :-------- | :----- | -----: |
| {{< flux/current-time >}} | task_executor_run_duration | threshold | count | 570.0 |
| {{< datetime/current-timestamp >}} | task_executor_run_duration | threshold | count | 570.0 |
{{% /expand %}}
{{< /expand-wrapper >}}
@ -225,62 +225,62 @@ prometheus,url=http://localhost:8086/metrics,taskID=00xx0Xx0xx00XX0x0,task_type=
{{% expand "View version 2 tables when queried from InfluxDB" %}}
| _time | _measurement | url | _field | _value |
| :------------------------ | :----------- | :---------------------------- | :---------------------------- | -----------: |
| {{< flux/current-time >}} | prometheus | http://localhost:8086/metrics | go_memstats_alloc_bytes_total | 1422764240.0 |
| {{< datetime/current-timestamp >}} | prometheus | http://localhost:8086/metrics | go_memstats_alloc_bytes_total | 1422764240.0 |
| _time | _measurement | url | _field | _value |
| :------------------------ | :----------- | :---------------------------- | :------------------------------ | --------: |
| {{< flux/current-time >}} | prometheus | http://localhost:8086/metrics | go_memstats_buck_hash_sys_bytes | 5259247.0 |
| {{< datetime/current-timestamp >}} | prometheus | http://localhost:8086/metrics | go_memstats_buck_hash_sys_bytes | 5259247.0 |
| _time | _measurement | task_type | url | le | _field | _value |
| :------------------------ | :----------- | :-------- | :---------------------------- | :--- | :-------------------------------- | -----: |
| {{< flux/current-time >}} | prometheus | system | http://localhost:8086/metrics | 0.25 | task_executor_run_latency_seconds | 4413 |
| {{< datetime/current-timestamp >}} | prometheus | system | http://localhost:8086/metrics | 0.25 | task_executor_run_latency_seconds | 4413 |
| _time | _measurement | task_type | url | le | _field | _value |
| :------------------------ | :----------- | :-------- | :---------------------------- | :-- | :-------------------------------- | -----: |
| {{< flux/current-time >}} | prometheus | system | http://localhost:8086/metrics | 0.5 | task_executor_run_latency_seconds | 11901 |
| {{< datetime/current-timestamp >}} | prometheus | system | http://localhost:8086/metrics | 0.5 | task_executor_run_latency_seconds | 11901 |
| _time | _measurement | task_type | url | le | _field | _value |
| :------------------------ | :----------- | :-------- | :---------------------------- | :-- | :-------------------------------- | -----: |
| {{< flux/current-time >}} | prometheus | system | http://localhost:8086/metrics | 1 | task_executor_run_latency_seconds | 12565 |
| {{< datetime/current-timestamp >}} | prometheus | system | http://localhost:8086/metrics | 1 | task_executor_run_latency_seconds | 12565 |
| _time | _measurement | task_type | url | le | _field | _value |
| :------------------------ | :----------- | :-------- | :---------------------------- | :-- | :-------------------------------- | -----: |
| {{< flux/current-time >}} | prometheus | system | http://localhost:8086/metrics | 2.5 | task_executor_run_latency_seconds | 12823 |
| {{< datetime/current-timestamp >}} | prometheus | system | http://localhost:8086/metrics | 2.5 | task_executor_run_latency_seconds | 12823 |
| _time | _measurement | task_type | url | le | _field | _value |
| :------------------------ | :----------- | :-------- | :---------------------------- | :-- | :-------------------------------- | -----: |
| {{< flux/current-time >}} | prometheus | system | http://localhost:8086/metrics | 5 | task_executor_run_latency_seconds | 12844 |
| {{< datetime/current-timestamp >}} | prometheus | system | http://localhost:8086/metrics | 5 | task_executor_run_latency_seconds | 12844 |
| _time | _measurement | task_type | url | le | _field | _value |
| :------------------------ | :----------- | :-------- | :---------------------------- | :--- | :-------------------------------- | -----: |
| {{< flux/current-time >}} | prometheus | system | http://localhost:8086/metrics | +Inf | task_executor_run_latency_seconds | 74429 |
| {{< datetime/current-timestamp >}} | prometheus | system | http://localhost:8086/metrics | +Inf | task_executor_run_latency_seconds | 74429 |
| _time | _measurement | task_type | url | _field | _value |
| :------------------------ | :----------- | :-------- | :---------------------------- | :------------------------------------ | ----------------: |
| {{< flux/current-time >}} | prometheus | system | http://localhost:8086/metrics | task_executor_run_latency_seconds_sum | 425678353867.9698 |
| {{< datetime/current-timestamp >}} | prometheus | system | http://localhost:8086/metrics | task_executor_run_latency_seconds_sum | 425678353867.9698 |
| _time | _measurement | task_type | url | _field | _value |
| :------------------------ | :----------- | :-------- | :---------------------------- | :-------------------------------------- | -----: |
| {{< flux/current-time >}} | prometheus | system | http://localhost:8086/metrics | task_executor_run_latency_seconds_count | 74429 |
| {{< datetime/current-timestamp >}} | prometheus | system | http://localhost:8086/metrics | task_executor_run_latency_seconds_count | 74429 |
| _time | _measurement | task_type | taskID | url | quantile | _field | _value |
| :------------------------ | :----------- | :-------- | :---------------- | :---------------------------- | :------- | :------------------------- | ----------: |
| {{< flux/current-time >}} | prometheus | threshold | 00xx0Xx0xx00XX0x0 | http://localhost:8086/metrics | 0.5 | task_executor_run_duration | 5.178160855 |
| {{< datetime/current-timestamp >}} | prometheus | threshold | 00xx0Xx0xx00XX0x0 | http://localhost:8086/metrics | 0.5 | task_executor_run_duration | 5.178160855 |
| _time | _measurement | task_type | taskID | url | quantile | _field | _value |
| :------------------------ | :----------- | :-------- | :---------------- | :---------------------------- | :------- | :------------------------- | ----------: |
| {{< flux/current-time >}} | prometheus | threshold | 00xx0Xx0xx00XX0x0 | http://localhost:8086/metrics | 0.9 | task_executor_run_duration | 5.178160855 |
| {{< datetime/current-timestamp >}} | prometheus | threshold | 00xx0Xx0xx00XX0x0 | http://localhost:8086/metrics | 0.9 | task_executor_run_duration | 5.178160855 |
| _time | _measurement | task_type | taskID | url | quantile | _field | _value |
| :------------------------ | :----------- | :-------- | :---------------- | :---------------------------- | :------- | :------------------------- | ----------: |
| {{< flux/current-time >}} | prometheus | threshold | 00xx0Xx0xx00XX0x0 | http://localhost:8086/metrics | 0.99 | task_executor_run_duration | 5.178160855 |
| {{< datetime/current-timestamp >}} | prometheus | threshold | 00xx0Xx0xx00XX0x0 | http://localhost:8086/metrics | 0.99 | task_executor_run_duration | 5.178160855 |
| _time | _measurement | task_type | taskID | url | _field | _value |
| :------------------------ | :----------- | :-------- | :---------------- | :---------------------------- | :----------------------------- | -----------------: |
| {{< flux/current-time >}} | prometheus | threshold | 00xx0Xx0xx00XX0x0 | http://localhost:8086/metrics | task_executor_run_duration_sum | 2121.9758301650004 |
| {{< datetime/current-timestamp >}} | prometheus | threshold | 00xx0Xx0xx00XX0x0 | http://localhost:8086/metrics | task_executor_run_duration_sum | 2121.9758301650004 |
| _time | _measurement | task_type | taskID | url | _field | _value |
| :------------------------ | :----------- | :-------- | :---------------- | :---------------------------- | :------------------------------- | -----: |
| {{< flux/current-time >}} | prometheus | threshold | 00xx0Xx0xx00XX0x0 | http://localhost:8086/metrics | task_executor_run_duration_count | 570 |
| {{< datetime/current-timestamp >}} | prometheus | threshold | 00xx0Xx0xx00XX0x0 | http://localhost:8086/metrics | task_executor_run_duration_count | 570 |
{{% /expand %}}
{{< /expand-wrapper >}}

View File

@ -99,63 +99,63 @@ task_executor_run_duration,taskID=00xx0Xx0xx00XX0x0,task_type=threshold 0.5=5.17
{{% expand "View version 1 tables when queried from InfluxDB" %}}
| _time | _measurement | _field | _value |
| :------------------------ | :---------------------------- | :------ | -----------: |
| {{< flux/current-time >}} | go_memstats_alloc_bytes_total | counter | 1422764240.0 |
| {{< datetime/current-timestamp >}} | go_memstats_alloc_bytes_total | counter | 1422764240.0 |
| _time | _measurement | _field | _value |
| :------------------------ | :------------------------------ | :----- | --------: |
| {{< flux/current-time >}} | go_memstats_buck_hash_sys_bytes | gauge | 5259247.0 |
| {{< datetime/current-timestamp >}} | go_memstats_buck_hash_sys_bytes | gauge | 5259247.0 |
| _time | _measurement | task_type | _field | _value |
| :------------------------ | :-------------------------------- | :-------- | :----- | -----: |
| {{< flux/current-time >}} | task_executor_run_latency_seconds | system | 0.25 | 4413.0 |
| {{< datetime/current-timestamp >}} | task_executor_run_latency_seconds | system | 0.25 | 4413.0 |
| _time | _measurement | task_type | _field | _value |
| :------------------------ | :-------------------------------- | :-------- | :----- | ------: |
| {{< flux/current-time >}} | task_executor_run_latency_seconds | system | 0.5 | 11901.0 |
| {{< datetime/current-timestamp >}} | task_executor_run_latency_seconds | system | 0.5 | 11901.0 |
| _time | _measurement | task_type | _field | _value |
| :------------------------ | :-------------------------------- | :-------- | :----- | ------: |
| {{< flux/current-time >}} | task_executor_run_latency_seconds | system | 1 | 12565.0 |
| {{< datetime/current-timestamp >}} | task_executor_run_latency_seconds | system | 1 | 12565.0 |
| _time | _measurement | task_type | _field | _value |
| :------------------------ | :-------------------------------- | :-------- | :----- | ------: |
| {{< flux/current-time >}} | task_executor_run_latency_seconds | system | 2.5 | 12823.0 |
| {{< datetime/current-timestamp >}} | task_executor_run_latency_seconds | system | 2.5 | 12823.0 |
| _time | _measurement | task_type | _field | _value |
| :------------------------ | :-------------------------------- | :-------- | :----- | ------: |
| {{< flux/current-time >}} | task_executor_run_latency_seconds | system | 5 | 12844.0 |
| {{< datetime/current-timestamp >}} | task_executor_run_latency_seconds | system | 5 | 12844.0 |
| _time | _measurement | task_type | _field | _value |
| :------------------------ | :-------------------------------- | :-------- | :----- | ------: |
| {{< flux/current-time >}} | task_executor_run_latency_seconds | system | +Inf | 74429.0 |
| {{< datetime/current-timestamp >}} | task_executor_run_latency_seconds | system | +Inf | 74429.0 |
| _time | _measurement | task_type | _field | _value |
| :------------------------ | :-------------------------------- | :-------- | :----- | ----------------: |
| {{< flux/current-time >}} | task_executor_run_latency_seconds | system | sum | 425678353867.9698 |
| {{< datetime/current-timestamp >}} | task_executor_run_latency_seconds | system | sum | 425678353867.9698 |
| _time | _measurement | task_type | _field | _value |
| :------------------------ | :-------------------------------- | :-------- | :----- | -----: |
| {{< flux/current-time >}} | task_executor_run_latency_seconds | system | count | 74429.0 |
| {{< datetime/current-timestamp >}} | task_executor_run_latency_seconds | system | count | 74429.0 |
| _time | _measurement | task_type | _field | _value |
| :------------------------ | :------------------------- | :-------- | :----- | ----------: |
| {{< flux/current-time >}} | task_executor_run_duration | threshold | 0.5 | 5.178160855 |
| {{< datetime/current-timestamp >}} | task_executor_run_duration | threshold | 0.5 | 5.178160855 |
| _time | _measurement | task_type | _field | _value |
| :------------------------ | :------------------------- | :-------- | :----- | ----------: |
| {{< flux/current-time >}} | task_executor_run_duration | threshold | 0.9 | 5.178160855 |
| {{< datetime/current-timestamp >}} | task_executor_run_duration | threshold | 0.9 | 5.178160855 |
| _time | _measurement | task_type | _field | _value |
| :------------------------ | :------------------------- | :-------- | :----- | ----------: |
| {{< flux/current-time >}} | task_executor_run_duration | threshold | 0.99 | 5.178160855 |
| {{< datetime/current-timestamp >}} | task_executor_run_duration | threshold | 0.99 | 5.178160855 |
| _time | _measurement | task_type | _field | _value |
| :------------------------ | :------------------------- | :-------- | :----- | -----------------: |
| {{< flux/current-time >}} | task_executor_run_duration | threshold | sum | 2121.9758301650004 |
| {{< datetime/current-timestamp >}} | task_executor_run_duration | threshold | sum | 2121.9758301650004 |
| _time | _measurement | task_type | _field | _value |
| :------------------------ | :------------------------- | :-------- | :----- | -----: |
| {{< flux/current-time >}} | task_executor_run_duration | threshold | count | 570.0 |
| {{< datetime/current-timestamp >}} | task_executor_run_duration | threshold | count | 570.0 |
{{% /expand %}}
{{< /expand-wrapper >}}
@ -225,62 +225,62 @@ prometheus,url=http://localhost:8086/metrics,taskID=00xx0Xx0xx00XX0x0,task_type=
{{% expand "View version 2 tables when queried from InfluxDB" %}}
| _time | _measurement | url | _field | _value |
| :------------------------ | :----------- | :---------------------------- | :---------------------------- | -----------: |
| {{< flux/current-time >}} | prometheus | http://localhost:8086/metrics | go_memstats_alloc_bytes_total | 1422764240.0 |
| {{< datetime/current-timestamp >}} | prometheus | http://localhost:8086/metrics | go_memstats_alloc_bytes_total | 1422764240.0 |
| _time | _measurement | url | _field | _value |
| :------------------------ | :----------- | :---------------------------- | :------------------------------ | --------: |
| {{< flux/current-time >}} | prometheus | http://localhost:8086/metrics | go_memstats_buck_hash_sys_bytes | 5259247.0 |
| {{< datetime/current-timestamp >}} | prometheus | http://localhost:8086/metrics | go_memstats_buck_hash_sys_bytes | 5259247.0 |
| _time | _measurement | task_type | url | le | _field | _value |
| :------------------------ | :----------- | :-------- | :---------------------------- | :--- | :-------------------------------- | -----: |
| {{< flux/current-time >}} | prometheus | system | http://localhost:8086/metrics | 0.25 | task_executor_run_latency_seconds | 4413 |
| {{< datetime/current-timestamp >}} | prometheus | system | http://localhost:8086/metrics | 0.25 | task_executor_run_latency_seconds | 4413 |
| _time | _measurement | task_type | url | le | _field | _value |
| :------------------------ | :----------- | :-------- | :---------------------------- | :-- | :-------------------------------- | -----: |
| {{< flux/current-time >}} | prometheus | system | http://localhost:8086/metrics | 0.5 | task_executor_run_latency_seconds | 11901 |
| {{< datetime/current-timestamp >}} | prometheus | system | http://localhost:8086/metrics | 0.5 | task_executor_run_latency_seconds | 11901 |
| _time | _measurement | task_type | url | le | _field | _value |
| :------------------------ | :----------- | :-------- | :---------------------------- | :-- | :-------------------------------- | -----: |
| {{< flux/current-time >}} | prometheus | system | http://localhost:8086/metrics | 1 | task_executor_run_latency_seconds | 12565 |
| {{< datetime/current-timestamp >}} | prometheus | system | http://localhost:8086/metrics | 1 | task_executor_run_latency_seconds | 12565 |
| _time | _measurement | task_type | url | le | _field | _value |
| :------------------------ | :----------- | :-------- | :---------------------------- | :-- | :-------------------------------- | -----: |
| {{< flux/current-time >}} | prometheus | system | http://localhost:8086/metrics | 2.5 | task_executor_run_latency_seconds | 12823 |
| {{< datetime/current-timestamp >}} | prometheus | system | http://localhost:8086/metrics | 2.5 | task_executor_run_latency_seconds | 12823 |
| _time | _measurement | task_type | url | le | _field | _value |
| :------------------------ | :----------- | :-------- | :---------------------------- | :-- | :-------------------------------- | -----: |
| {{< flux/current-time >}} | prometheus | system | http://localhost:8086/metrics | 5 | task_executor_run_latency_seconds | 12844 |
| {{< datetime/current-timestamp >}} | prometheus | system | http://localhost:8086/metrics | 5 | task_executor_run_latency_seconds | 12844 |
| _time | _measurement | task_type | url | le | _field | _value |
| :------------------------ | :----------- | :-------- | :---------------------------- | :--- | :-------------------------------- | -----: |
| {{< flux/current-time >}} | prometheus | system | http://localhost:8086/metrics | +Inf | task_executor_run_latency_seconds | 74429 |
| {{< datetime/current-timestamp >}} | prometheus | system | http://localhost:8086/metrics | +Inf | task_executor_run_latency_seconds | 74429 |
| _time | _measurement | task_type | url | _field | _value |
| :------------------------ | :----------- | :-------- | :---------------------------- | :------------------------------------ | ----------------: |
| {{< flux/current-time >}} | prometheus | system | http://localhost:8086/metrics | task_executor_run_latency_seconds_sum | 425678353867.9698 |
| {{< datetime/current-timestamp >}} | prometheus | system | http://localhost:8086/metrics | task_executor_run_latency_seconds_sum | 425678353867.9698 |
| _time | _measurement | task_type | url | _field | _value |
| :------------------------ | :----------- | :-------- | :---------------------------- | :-------------------------------------- | -----: |
| {{< flux/current-time >}} | prometheus | system | http://localhost:8086/metrics | task_executor_run_latency_seconds_count | 74429 |
| {{< datetime/current-timestamp >}} | prometheus | system | http://localhost:8086/metrics | task_executor_run_latency_seconds_count | 74429 |
| _time | _measurement | task_type | taskID | url | quantile | _field | _value |
| :------------------------ | :----------- | :-------- | :---------------- | :---------------------------- | :------- | :------------------------- | ----------: |
| {{< flux/current-time >}} | prometheus | threshold | 00xx0Xx0xx00XX0x0 | http://localhost:8086/metrics | 0.5 | task_executor_run_duration | 5.178160855 |
| {{< datetime/current-timestamp >}} | prometheus | threshold | 00xx0Xx0xx00XX0x0 | http://localhost:8086/metrics | 0.5 | task_executor_run_duration | 5.178160855 |
| _time | _measurement | task_type | taskID | url | quantile | _field | _value |
| :------------------------ | :----------- | :-------- | :---------------- | :---------------------------- | :------- | :------------------------- | ----------: |
| {{< flux/current-time >}} | prometheus | threshold | 00xx0Xx0xx00XX0x0 | http://localhost:8086/metrics | 0.9 | task_executor_run_duration | 5.178160855 |
| {{< datetime/current-timestamp >}} | prometheus | threshold | 00xx0Xx0xx00XX0x0 | http://localhost:8086/metrics | 0.9 | task_executor_run_duration | 5.178160855 |
| _time | _measurement | task_type | taskID | url | quantile | _field | _value |
| :------------------------ | :----------- | :-------- | :---------------- | :---------------------------- | :------- | :------------------------- | ----------: |
| {{< flux/current-time >}} | prometheus | threshold | 00xx0Xx0xx00XX0x0 | http://localhost:8086/metrics | 0.99 | task_executor_run_duration | 5.178160855 |
| {{< datetime/current-timestamp >}} | prometheus | threshold | 00xx0Xx0xx00XX0x0 | http://localhost:8086/metrics | 0.99 | task_executor_run_duration | 5.178160855 |
| _time | _measurement | task_type | taskID | url | _field | _value |
| :------------------------ | :----------- | :-------- | :---------------- | :---------------------------- | :----------------------------- | -----------------: |
| {{< flux/current-time >}} | prometheus | threshold | 00xx0Xx0xx00XX0x0 | http://localhost:8086/metrics | task_executor_run_duration_sum | 2121.9758301650004 |
| {{< datetime/current-timestamp >}} | prometheus | threshold | 00xx0Xx0xx00XX0x0 | http://localhost:8086/metrics | task_executor_run_duration_sum | 2121.9758301650004 |
| _time | _measurement | task_type | taskID | url | _field | _value |
| :------------------------ | :----------- | :-------- | :---------------- | :---------------------------- | :------------------------------- | -----: |
| {{< flux/current-time >}} | prometheus | threshold | 00xx0Xx0xx00XX0x0 | http://localhost:8086/metrics | task_executor_run_duration_count | 570 |
| {{< datetime/current-timestamp >}} | prometheus | threshold | 00xx0Xx0xx00XX0x0 | http://localhost:8086/metrics | task_executor_run_duration_count | 570 |
{{% /expand %}}
{{< /expand-wrapper >}}

View File

@ -9,7 +9,7 @@
{{ $notifications := resources.Get "js/notifications.js" }}
{{ $keybindings := resources.Get "js/keybindings.js" }}
{{ $fluxGroupKeys := resources.Get "js/flux-group-keys.js" }}
{{ $fluxCurrentTime := resources.Get "js/flux-current-time.js" }}
{{ $dateTime := resources.Get "js/datetime.js" }}
{{ $influxdbGSTimestamps := resources.Get "js/get-started-timestamps.js" }}
{{ $codeControls := resources.Get "js/code-controls.js" }}
{{ $pageFeedback := resources.Get "js/page-feedback.js" }}
@ -18,7 +18,7 @@
{{ $ioxWayfinding := resources.Get "/js/iox-wayfinding.js"}}
{{ $footerjs := slice $versionSelector $contentInteractions $searchInteractions $listFilters $modals $influxdbURLs $featureCallouts $tabbedContent $notifications $keybindings $codeControls $pageFeedback $homepageInteractions $fluxInfluxDBVersions | resources.Concat "js/footer.bundle.js" | resources.Fingerprint }}
{{ $fluxGroupKeyjs := slice $fluxGroupKeys | resources.Concat "js/flux-group-keys.js" | resources.Fingerprint }}
{{ $fluxCurrentTimejs := slice $fluxCurrentTime | resources.Concat "js/flux-current-time.js" | resources.Fingerprint }}
{{ $dateTimejs := slice $dateTime | resources.Concat "js/datetime.js" | resources.Fingerprint }}
{{ $influxdbGSTimestampsjs := slice $influxdbGSTimestamps | resources.Concat "js/get-started-timestamps.js" | resources.Fingerprint }}
{{ $ioxWayfindingjs := slice $ioxWayfinding | resources.Concat "js/iox-wayfinding.js" | resources.Fingerprint }}
@ -54,9 +54,9 @@
<script type="text/javascript" src="{{ $fluxGroupKeyjs.RelPermalink }}"></script>
{{ end }}
<!-- Load Flux current time js if when the flux/current-time shortcode is present -->
{{ if .Page.HasShortcode "flux/current-time" }}
<script type="text/javascript" src="{{ $fluxCurrentTime.RelPermalink }}"></script>
<!-- Load datetime js if when datetime shortcodes are present -->
{{ if or (.Page.HasShortcode "datetime/current-time") (.Page.HasShortcode "datetime/current-timestamp") (.Page.HasShortcode "datetime/current-date") }}
<script type="text/javascript" src="{{ $dateTimejs.RelPermalink }}"></script>
{{ end }}
<!-- Load getting started timestamps js if when the influxdb/custom-gs-timestamps shortcode is present -->

View File

@ -0,0 +1 @@
<span class="current-date nowrap">2021-01-01T00:00:00Z</span>

View File

@ -0,0 +1 @@
<span class="current-timestamp nowrap">2021-01-01T00:00:00Z</span>