From c8babc9e667d5ceaaf1de8da8b8aeae64f432fdb Mon Sep 17 00:00:00 2001 From: Toan Nguyen Date: Thu, 26 Sep 2024 10:07:48 +0700 Subject: [PATCH] add metrics generation behavior config --- configuration/update.go | 20 +- connector-definition/configuration.yaml | 1 + connector/metadata/configuration.go | 12 +- jsonschema/configuration.json | 8 + tests/configuration/configuration.yaml | 22 + .../metadata/ndc_prometheus_query_total.hml | 614 +++ ...ndc_prometheus_query_total_time_bucket.hml | 567 +++ .../ndc_prometheus_query_total_time_count.hml | 567 +++ .../ndc_prometheus_query_total_time_sum.hml | 567 +++ tests/engine/app/metadata/otel_scope_info.hml | 590 +++ .../engine/app/metadata/prometheus-types.hml | 140 + tests/engine/app/metadata/prometheus.hml | 3584 ++++++++++++++++- 12 files changed, 6606 insertions(+), 86 deletions(-) create mode 100644 tests/engine/app/metadata/ndc_prometheus_query_total.hml create mode 100644 tests/engine/app/metadata/ndc_prometheus_query_total_time_bucket.hml create mode 100644 tests/engine/app/metadata/ndc_prometheus_query_total_time_count.hml create mode 100644 tests/engine/app/metadata/ndc_prometheus_query_total_time_sum.hml create mode 100644 tests/engine/app/metadata/otel_scope_info.hml diff --git a/configuration/update.go b/configuration/update.go index a60cdf0..b6d13f1 100644 --- a/configuration/update.go +++ b/configuration/update.go @@ -39,7 +39,7 @@ type updateCommand struct { func introspectSchema(ctx context.Context, args *UpdateArguments) error { start := time.Now() - slog.Info("introspect metrics metadata...", slog.String("dir", args.Dir)) + slog.Info("introspecting metadata", slog.String("dir", args.Dir)) originalConfig, err := metadata.ReadConfiguration(args.Dir) if err != nil { if !os.IsNotExist(err) { @@ -62,6 +62,11 @@ func introspectSchema(ctx context.Context, args *UpdateArguments) error { } if originalConfig.Generator.Metrics.Enabled { + slog.Info("introspecting metrics", + slog.String("behavior", string(originalConfig.Generator.Metrics.Behavior)), + slog.Any("include", originalConfig.Generator.Metrics.Include), + slog.Any("exclude", originalConfig.Generator.Metrics.Exclude), + ) for _, el := range originalConfig.Generator.Metrics.ExcludeLabels { if len(el.Labels) == 0 { continue @@ -97,6 +102,15 @@ func (uc *updateCommand) updateMetricsMetadata(ctx context.Context) error { } newMetrics := map[string]metadata.MetricInfo{} + if uc.Config.Generator.Metrics.Behavior == metadata.MetricsGenerationMerge { + for key, metric := range uc.Config.Metadata.Metrics { + if (len(uc.Include) > 0 && !validateRegularExpressions(uc.Include, key)) || validateRegularExpressions(uc.Exclude, key) { + continue + } + newMetrics[key] = metric + } + } + for key, info := range metricsInfo { if len(info) == 0 { continue @@ -117,7 +131,6 @@ func (uc *updateCommand) updateMetricsMetadata(ctx context.Context) error { Labels: labels, } } - uc.Config.Metadata.Metrics = newMetrics return nil } @@ -185,7 +198,7 @@ func (uc *updateCommand) writeConfigFile() error { var buf bytes.Buffer writer := bufio.NewWriter(&buf) - _, _ = writer.WriteString("# yaml-language-server: $schema=../../jsonschema/configuration.json\n") + _, _ = writer.WriteString("# yaml-language-server: $schema=https://raw.githubusercontent.com/hasura/ndc-prometheus/main/jsonschema/configuration.json\n") encoder := yaml.NewEncoder(writer) encoder.SetIndent(2) if err := encoder.Encode(uc.Config); err != nil { @@ -203,6 +216,7 @@ var defaultConfiguration = metadata.Configuration{ Generator: metadata.GeneratorSettings{ Metrics: metadata.MetricsGeneratorSettings{ Enabled: true, + Behavior: metadata.MetricsGenerationMerge, Include: []string{}, Exclude: []string{}, ExcludeLabels: []metadata.ExcludeLabelsSetting{}, diff --git a/connector-definition/configuration.yaml b/connector-definition/configuration.yaml index 6e5c17b..0d812dc 100644 --- a/connector-definition/configuration.yaml +++ b/connector-definition/configuration.yaml @@ -5,6 +5,7 @@ connection_settings: generator: metrics: enabled: true + behavior: merge include: [] exclude: [] exclude_labels: [] diff --git a/connector/metadata/configuration.go b/connector/metadata/configuration.go index b5f6bb0..e23c273 100644 --- a/connector/metadata/configuration.go +++ b/connector/metadata/configuration.go @@ -16,9 +16,19 @@ type Configuration struct { Metadata Metadata `json:"metadata" yaml:"metadata"` } +// MetricsGenerationBehavior the behavior of metrics generation +type MetricsGenerationBehavior string + +const ( + MetricsGenerationMerge = "merge" + MetricsGenerationReplace = "replace" +) + // MetricsGeneratorSettings contain settings for the metrics generation type MetricsGeneratorSettings struct { - Enabled bool `json:"enabled" yaml:"enabled"` + // Enable the metrics generation + Enabled bool `json:"enabled" yaml:"enabled"` + Behavior MetricsGenerationBehavior `json:"behavior" yaml:"behavior" jsonschema:"enum=merge,enum=replace"` // Include metrics with regular expression matching. Include all metrics by default Include []string `json:"include" yaml:"include"` // Exclude metrics with regular expression matching. diff --git a/jsonschema/configuration.json b/jsonschema/configuration.json index c303e51..7e2b91f 100644 --- a/jsonschema/configuration.json +++ b/jsonschema/configuration.json @@ -256,6 +256,13 @@ "enabled": { "type": "boolean" }, + "behavior": { + "type": "string", + "enum": [ + "merge", + "replace" + ] + }, "include": { "items": { "type": "string" @@ -283,6 +290,7 @@ "type": "object", "required": [ "enabled", + "behavior", "include", "exclude", "exclude_labels", diff --git a/tests/configuration/configuration.yaml b/tests/configuration/configuration.yaml index d33df0f..73ac831 100644 --- a/tests/configuration/configuration.yaml +++ b/tests/configuration/configuration.yaml @@ -11,6 +11,7 @@ connection_settings: generator: metrics: enabled: true + behavior: merge include: [] exclude: - ^prometheus_+ @@ -23,6 +24,20 @@ generator: start_at: 2024-09-01T00:00:00Z metadata: metrics: + ndc_prometheus_query_total: + type: counter + description: Total number of query requests + labels: + collection: {} + http_status: {} + instance: {} + job: {} + otel_scope_name: {} + status: {} + ndc_prometheus_query_total_time: + type: histogram + description: Total time taken to plan and execute a query, in seconds + labels: {} net_conntrack_dialer_conn_attempted_total: type: counter description: Total number of connections attempted by the given dialer a given name. @@ -48,6 +63,13 @@ metadata: instance: {} job: {} reason: {} + otel_scope_info: + type: gauge + description: Instrumentation Scope metadata + labels: + instance: {} + job: {} + otel_scope_name: {} process_cpu_seconds_total: type: counter description: Total user and system CPU time spent in seconds. diff --git a/tests/engine/app/metadata/ndc_prometheus_query_total.hml b/tests/engine/app/metadata/ndc_prometheus_query_total.hml new file mode 100644 index 0000000..986ed43 --- /dev/null +++ b/tests/engine/app/metadata/ndc_prometheus_query_total.hml @@ -0,0 +1,614 @@ +--- +kind: ObjectType +version: v1 +definition: + name: NdcPrometheusQueryTotalLabelJoinInput + description: Input arguments for the label_join function + fields: + - name: dest_label + type: String! + description: The destination label name + - name: separator + type: String! + description: The separator between source labels + - name: source_labels + type: "[NdcPrometheusQueryTotalLabel!]!" + description: Source labels + graphql: + typeName: NdcPrometheusQueryTotalLabelJoinInput + inputTypeName: NdcPrometheusQueryTotalLabelJoinInput_input + dataConnectorTypeMapping: + - dataConnectorName: prometheus + dataConnectorObjectType: NdcPrometheusQueryTotalLabelJoinInput + +--- +kind: TypePermissions +version: v1 +definition: + typeName: NdcPrometheusQueryTotalLabelJoinInput + permissions: + - role: admin + output: + allowedFields: + - dest_label + - separator + - source_labels + +--- +kind: ObjectType +version: v1 +definition: + name: NdcPrometheusQueryTotalLabelReplaceInput + description: Input arguments for the label_replace function + fields: + - name: dest_label + type: String! + description: The destination label name + - name: regex + type: String! + description: The regular expression against the value of the source label + - name: replacement + type: String! + description: The replacement value + - name: source_label + type: NdcPrometheusQueryTotalLabel! + description: Source label + graphql: + typeName: NdcPrometheusQueryTotalLabelReplaceInput + inputTypeName: NdcPrometheusQueryTotalLabelReplaceInput_input + dataConnectorTypeMapping: + - dataConnectorName: prometheus + dataConnectorObjectType: NdcPrometheusQueryTotalLabelReplaceInput + +--- +kind: TypePermissions +version: v1 +definition: + typeName: NdcPrometheusQueryTotalLabelReplaceInput + permissions: + - role: admin + output: + allowedFields: + - dest_label + - regex + - replacement + - source_label + +--- +kind: ObjectType +version: v1 +definition: + name: NdcPrometheusQueryTotalFunctions + fields: + - name: abs + type: Boolean + description: Returns the input vector with all sample values converted to their + absolute value + - name: absent + type: Boolean + description: Returns an empty vector if the vector passed to it has any elements + (floats or native histograms) and a 1-element vector with the value 1 if + the vector passed to it has no elements + - name: absent_over_time + type: RangeResolution + description: Returns an empty vector if the range vector passed to it has any + elements (floats or native histograms) and a 1-element vector with the + value 1 if the range vector passed to it has no elements + - name: acos + type: Boolean + description: Calculates the arccosine of all elements in v + - name: acosh + type: Boolean + description: Calculates the inverse hyperbolic cosine of all elements in v + - name: asin + type: Boolean + description: Calculates the arcsine of all elements in v + - name: asinh + type: Boolean + description: Calculates the inverse hyperbolic sine of all elements in v + - name: atan + type: Boolean + description: Calculates the arctangent of all elements in v + - name: atanh + type: Boolean + description: Calculates the inverse hyperbolic tangent of all elements in v + - name: avg + type: "[NdcPrometheusQueryTotalLabel!]" + - name: avg_over_time + type: RangeResolution + description: The average value of all points in the specified interval + - name: bottomk + type: Int64 + description: Smallest k elements by sample value + - name: ceil + type: Boolean + description: Rounds the sample values of all elements in v up to the nearest + integer value greater than or equal to v + - name: changes + type: RangeResolution + description: Returns the number of times its value has changed within the + provided time range as an instant vector + - name: clamp + type: ValueBoundaryInput + description: Clamps the sample values of all elements in v to have a lower limit + of min and an upper limit of max + - name: clamp_max + type: Float64 + description: Clamps the sample values of all elements in v to have an upper + limit of max + - name: clamp_min + type: Float64 + description: Clamps the sample values of all elements in v to have a lower limit + of min + - name: cos + type: Boolean + description: Calculates the cosine of all elements in v + - name: cosh + type: Boolean + description: Calculates the hyperbolic cosine of all elements in v + - name: count + type: "[NdcPrometheusQueryTotalLabel!]" + - name: count_over_time + type: RangeResolution + description: The count of all values in the specified interval + - name: count_values + type: NdcPrometheusQueryTotalLabel + - name: deg + type: Boolean + description: Converts radians to degrees for all elements in v + - name: delta + type: RangeResolution + description: Calculates the difference between the first and last value of each + time series element in a range vector v, returning an instant vector + with the given deltas and equivalent labels + - name: deriv + type: RangeResolution + description: Calculates the per-second derivative of the time series in a range + vector v, using simple linear regression + - name: exp + type: Boolean + description: Calculates the exponential function for all elements in v + - name: floor + type: Boolean + description: Rounds the sample values of all elements in v down to the nearest + integer value smaller than or equal to v + - name: group + type: "[NdcPrometheusQueryTotalLabel!]" + - name: histogram_avg + type: Boolean + description: Returns the arithmetic average of observed values stored in a + native histogram. Samples that are not native histograms are ignored and + do not show up in the returned vector + - name: histogram_count + type: Boolean + description: Returns the count of observations stored in a native histogram. + Samples that are not native histograms are ignored and do not show up in + the returned vector + - name: histogram_fraction + type: ValueBoundaryInput + description: Returns the estimated fraction of observations between the provided + lower and upper values. Samples that are not native histograms are + ignored and do not show up in the returned vector + - name: histogram_quantile + type: Float64 + description: Calculates the φ-quantile (0 ≤ φ ≤ 1) from a classic histogram or + from a native histogram + - name: histogram_stddev + type: Boolean + description: Returns the estimated standard deviation of observations in a + native histogram, based on the geometric mean of the buckets where the + observations lie. Samples that are not native histograms are ignored and + do not show up in the returned vector + - name: histogram_stdvar + type: Boolean + description: Returns the estimated standard variance of observations in a native + histogram + - name: histogram_sum + type: Boolean + description: Returns the sum of observations stored in a native histogram + - name: holt_winters + type: HoltWintersInput + description: Produces a smoothed value for time series based on the range in v + - name: idelta + type: RangeResolution + description: Calculates the difference between the last two samples in the range + vector v, returning an instant vector with the given deltas and + equivalent labels + - name: increase + type: RangeResolution + description: Calculates the increase in the time series in the range vector. + Breaks in monotonicity (such as counter resets due to target restarts) + are automatically adjusted for + - name: irate + type: RangeResolution + description: Calculates the per-second instant rate of increase of the time + series in the range vector. This is based on the last two data points + - name: label_join + type: NdcPrometheusQueryTotalLabelJoinInput + description: Joins all the values of all the src_labels using separator and + returns the timeseries with the label dst_label containing the joined + value + - name: label_replace + type: NdcPrometheusQueryTotalLabelReplaceInput + description: Matches the regular expression regex against the value of the label + src_label. If it matches, the value of the label dst_label in the + returned timeseries will be the expansion of replacement, together with + the original labels in the input + - name: last_over_time + type: RangeResolution + description: The most recent point value in the specified interval + - name: limit_ratio + type: Float64 + description: Sample elements with approximately 𝑟 ratio if 𝑟 > 0, and the + complement of such samples if 𝑟 = -(1.0 - 𝑟)) + - name: limitk + type: Int64 + description: Limit sample n elements + - name: ln + type: Boolean + description: Calculates the natural logarithm for all elements in v + - name: log2 + type: Boolean + description: Calculates the binary logarithm for all elements in v + - name: log10 + type: Boolean + description: Calculates the decimal logarithm for all elements in v + - name: mad_over_time + type: RangeResolution + description: The median absolute deviation of all points in the specified interval + - name: max + type: "[NdcPrometheusQueryTotalLabel!]" + - name: max_over_time + type: RangeResolution + description: The maximum value of all points in the specified interval + - name: min + type: "[NdcPrometheusQueryTotalLabel!]" + - name: min_over_time + type: RangeResolution + description: The minimum value of all points in the specified interval + - name: predict_linear + type: PredictLinearInput + description: Predicts the value of time series t seconds from now, based on the + range vector v, using simple linear regression + - name: present_over_time + type: RangeResolution + description: The value 1 for any series in the specified interval + - name: quantile + type: Float64 + description: Calculate φ-quantile (0 ≤ φ ≤ 1) over dimensions + - name: quantile_over_time + type: QuantileOverTimeInput + description: The φ-quantile (0 ≤ φ ≤ 1) of the values in the specified interval + - name: rad + type: Boolean + description: Converts degrees to radians for all elements in v + - name: rate + type: RangeResolution + description: Calculates the per-second average rate of increase of the time + series in the range vector + - name: resets + type: RangeResolution + description: Returns the number of counter resets within the provided time range + as an instant vector + - name: round + type: Float64 + description: Rounds the sample values of all elements in v to the nearest integer + - name: scalar + type: Boolean + description: Returns the sample value of that single element as a scalar + - name: sgn + type: Boolean + description: "Returns a vector with all sample values converted to their sign, + defined as this: 1 if v is positive, -1 if v is negative and 0 if v is + equal to zero" + - name: sin + type: Boolean + description: Calculates the sine of all elements in v + - name: sinh + type: Boolean + description: Calculates the hyperbolic sine of all elements in v + - name: sort + type: Boolean + description: Returns vector elements sorted by their sample values, in ascending + order. Native histograms are sorted by their sum of observations + - name: sort_by_label + type: "[NdcPrometheusQueryTotalLabel!]" + description: Returns vector elements sorted by their label values and sample + value in case of label values being equal, in ascending order + - name: sort_by_label_desc + type: "[NdcPrometheusQueryTotalLabel!]" + description: Same as sort_by_label, but sorts in descending order + - name: sort_desc + type: Boolean + description: Same as sort, but sorts in descending order + - name: sqrt + type: Boolean + description: Calculates the square root of all elements in v + - name: stddev + type: "[NdcPrometheusQueryTotalLabel!]" + - name: stddev_over_time + type: RangeResolution + description: The population standard deviation of the values in the specified interval + - name: stdvar + type: "[NdcPrometheusQueryTotalLabel!]" + - name: stdvar_over_time + type: RangeResolution + description: The population standard variance of the values in the specified interval + - name: sum + type: "[NdcPrometheusQueryTotalLabel!]" + - name: sum_over_time + type: RangeResolution + description: The sum of all values in the specified interval + - name: tan + type: Boolean + description: Calculates the tangent of all elements in v + - name: tanh + type: Boolean + description: Calculates the hyperbolic tangent of all elements in v + - name: timestamp + type: Boolean + description: Returns the timestamp of each of the samples of the given vector as + the number of seconds since January 1, 1970 UTC. It also works with + histogram samples + - name: topk + type: Int64 + description: Largest k elements by sample value + graphql: + typeName: NdcPrometheusQueryTotalFunctions + inputTypeName: NdcPrometheusQueryTotalFunctions_input + dataConnectorTypeMapping: + - dataConnectorName: prometheus + dataConnectorObjectType: NdcPrometheusQueryTotalFunctions + +--- +kind: TypePermissions +version: v1 +definition: + typeName: NdcPrometheusQueryTotalFunctions + permissions: + - role: admin + output: + allowedFields: + - abs + - absent + - absent_over_time + - acos + - acosh + - asin + - asinh + - atan + - atanh + - avg + - avg_over_time + - bottomk + - ceil + - changes + - clamp + - clamp_max + - clamp_min + - cos + - cosh + - count + - count_over_time + - count_values + - deg + - delta + - deriv + - exp + - floor + - group + - histogram_avg + - histogram_count + - histogram_fraction + - histogram_quantile + - histogram_stddev + - histogram_stdvar + - histogram_sum + - holt_winters + - idelta + - increase + - irate + - label_join + - label_replace + - last_over_time + - limit_ratio + - limitk + - ln + - log2 + - log10 + - mad_over_time + - max + - max_over_time + - min + - min_over_time + - predict_linear + - present_over_time + - quantile + - quantile_over_time + - rad + - rate + - resets + - round + - scalar + - sgn + - sin + - sinh + - sort + - sort_by_label + - sort_by_label_desc + - sort_desc + - sqrt + - stddev + - stddev_over_time + - stdvar + - stdvar_over_time + - sum + - sum_over_time + - tan + - tanh + - timestamp + - topk + +--- +kind: ObjectType +version: v1 +definition: + name: NdcPrometheusQueryTotal + fields: + - name: collection + type: String! + - name: http_status + type: String! + - name: instance + type: String! + - name: job + type: String! + - name: labels + type: LabelSet! + description: Labels of the metric + - name: otel_scope_name + type: String! + - name: status + type: String! + - name: timestamp + type: Timestamp! + description: An instant timestamp or the last timestamp of a range query result + - name: value + type: Decimal! + description: Value of the instant query or the last value of a range query + - name: values + type: "[QueryResultValue!]!" + description: An array of query result values + graphql: + typeName: NdcPrometheusQueryTotal + inputTypeName: NdcPrometheusQueryTotal_input + dataConnectorTypeMapping: + - dataConnectorName: prometheus + dataConnectorObjectType: NdcPrometheusQueryTotal + +--- +kind: TypePermissions +version: v1 +definition: + typeName: NdcPrometheusQueryTotal + permissions: + - role: admin + output: + allowedFields: + - collection + - http_status + - instance + - job + - labels + - otel_scope_name + - status + - timestamp + - value + - values + +--- +kind: BooleanExpressionType +version: v1 +definition: + name: NdcPrometheusQueryTotal_bool_exp + operand: + object: + type: NdcPrometheusQueryTotal + comparableFields: + - fieldName: collection + booleanExpressionType: String_bool_exp + - fieldName: http_status + booleanExpressionType: String_bool_exp + - fieldName: instance + booleanExpressionType: String_bool_exp + - fieldName: job + booleanExpressionType: String_bool_exp + - fieldName: labels + booleanExpressionType: LabelSet_bool_exp + - fieldName: otel_scope_name + booleanExpressionType: String_bool_exp + - fieldName: status + booleanExpressionType: String_bool_exp + - fieldName: timestamp + booleanExpressionType: Timestamp_bool_exp + - fieldName: value + booleanExpressionType: Decimal_bool_exp + comparableRelationships: [] + logicalOperators: + enable: true + isNull: + enable: true + graphql: + typeName: NdcPrometheusQueryTotal_bool_exp + +--- +kind: Model +version: v1 +definition: + name: ndc_prometheus_query_total + objectType: NdcPrometheusQueryTotal + arguments: + - name: fn + type: "[NdcPrometheusQueryTotalFunctions!]" + description: PromQL aggregation operators and functions for ndc_prometheus_query_total + - name: offset + type: Duration + description: The offset modifier allows changing the time offset for individual + instant and range vectors in a query. + - name: step + type: Duration + description: Query resolution step width in duration format or float number of + seconds. + - name: timeout + type: Duration + description: Evaluation timeout + source: + dataConnectorName: prometheus + collection: ndc_prometheus_query_total + filterExpressionType: NdcPrometheusQueryTotal_bool_exp + orderableFields: + - fieldName: collection + orderByDirections: + enableAll: true + - fieldName: http_status + orderByDirections: + enableAll: true + - fieldName: instance + orderByDirections: + enableAll: true + - fieldName: job + orderByDirections: + enableAll: true + - fieldName: labels + orderByDirections: + enableAll: true + - fieldName: otel_scope_name + orderByDirections: + enableAll: true + - fieldName: status + orderByDirections: + enableAll: true + - fieldName: timestamp + orderByDirections: + enableAll: true + - fieldName: value + orderByDirections: + enableAll: true + graphql: + selectMany: + queryRootField: ndc_prometheus_query_total + selectUniques: [] + argumentsInputType: ndc_prometheus_query_total_arguments + orderByExpressionType: ndc_prometheus_query_total_order_by + description: Total number of query requests + +--- +kind: ModelPermissions +version: v1 +definition: + modelName: ndc_prometheus_query_total + permissions: + - role: admin + select: + filter: null + diff --git a/tests/engine/app/metadata/ndc_prometheus_query_total_time_bucket.hml b/tests/engine/app/metadata/ndc_prometheus_query_total_time_bucket.hml new file mode 100644 index 0000000..a3ad02a --- /dev/null +++ b/tests/engine/app/metadata/ndc_prometheus_query_total_time_bucket.hml @@ -0,0 +1,567 @@ +--- +kind: ObjectType +version: v1 +definition: + name: NdcPrometheusQueryTotalTimeBucketLabelJoinInput + description: Input arguments for the label_join function + fields: + - name: dest_label + type: String! + description: The destination label name + - name: separator + type: String! + description: The separator between source labels + - name: source_labels + type: "[NdcPrometheusQueryTotalTimeBucketLabel!]!" + description: Source labels + graphql: + typeName: NdcPrometheusQueryTotalTimeBucketLabelJoinInput + inputTypeName: NdcPrometheusQueryTotalTimeBucketLabelJoinInput_input + dataConnectorTypeMapping: + - dataConnectorName: prometheus + dataConnectorObjectType: NdcPrometheusQueryTotalTimeBucketLabelJoinInput + +--- +kind: TypePermissions +version: v1 +definition: + typeName: NdcPrometheusQueryTotalTimeBucketLabelJoinInput + permissions: + - role: admin + output: + allowedFields: + - dest_label + - separator + - source_labels + +--- +kind: ObjectType +version: v1 +definition: + name: NdcPrometheusQueryTotalTimeBucketLabelReplaceInput + description: Input arguments for the label_replace function + fields: + - name: dest_label + type: String! + description: The destination label name + - name: regex + type: String! + description: The regular expression against the value of the source label + - name: replacement + type: String! + description: The replacement value + - name: source_label + type: NdcPrometheusQueryTotalTimeBucketLabel! + description: Source label + graphql: + typeName: NdcPrometheusQueryTotalTimeBucketLabelReplaceInput + inputTypeName: NdcPrometheusQueryTotalTimeBucketLabelReplaceInput_input + dataConnectorTypeMapping: + - dataConnectorName: prometheus + dataConnectorObjectType: NdcPrometheusQueryTotalTimeBucketLabelReplaceInput + +--- +kind: TypePermissions +version: v1 +definition: + typeName: NdcPrometheusQueryTotalTimeBucketLabelReplaceInput + permissions: + - role: admin + output: + allowedFields: + - dest_label + - regex + - replacement + - source_label + +--- +kind: ObjectType +version: v1 +definition: + name: NdcPrometheusQueryTotalTimeBucketFunctions + fields: + - name: abs + type: Boolean + description: Returns the input vector with all sample values converted to their + absolute value + - name: absent + type: Boolean + description: Returns an empty vector if the vector passed to it has any elements + (floats or native histograms) and a 1-element vector with the value 1 if + the vector passed to it has no elements + - name: absent_over_time + type: RangeResolution + description: Returns an empty vector if the range vector passed to it has any + elements (floats or native histograms) and a 1-element vector with the + value 1 if the range vector passed to it has no elements + - name: acos + type: Boolean + description: Calculates the arccosine of all elements in v + - name: acosh + type: Boolean + description: Calculates the inverse hyperbolic cosine of all elements in v + - name: asin + type: Boolean + description: Calculates the arcsine of all elements in v + - name: asinh + type: Boolean + description: Calculates the inverse hyperbolic sine of all elements in v + - name: atan + type: Boolean + description: Calculates the arctangent of all elements in v + - name: atanh + type: Boolean + description: Calculates the inverse hyperbolic tangent of all elements in v + - name: avg + type: "[NdcPrometheusQueryTotalTimeBucketLabel!]" + - name: avg_over_time + type: RangeResolution + description: The average value of all points in the specified interval + - name: bottomk + type: Int64 + description: Smallest k elements by sample value + - name: ceil + type: Boolean + description: Rounds the sample values of all elements in v up to the nearest + integer value greater than or equal to v + - name: changes + type: RangeResolution + description: Returns the number of times its value has changed within the + provided time range as an instant vector + - name: clamp + type: ValueBoundaryInput + description: Clamps the sample values of all elements in v to have a lower limit + of min and an upper limit of max + - name: clamp_max + type: Float64 + description: Clamps the sample values of all elements in v to have an upper + limit of max + - name: clamp_min + type: Float64 + description: Clamps the sample values of all elements in v to have a lower limit + of min + - name: cos + type: Boolean + description: Calculates the cosine of all elements in v + - name: cosh + type: Boolean + description: Calculates the hyperbolic cosine of all elements in v + - name: count + type: "[NdcPrometheusQueryTotalTimeBucketLabel!]" + - name: count_over_time + type: RangeResolution + description: The count of all values in the specified interval + - name: count_values + type: NdcPrometheusQueryTotalTimeBucketLabel + - name: deg + type: Boolean + description: Converts radians to degrees for all elements in v + - name: delta + type: RangeResolution + description: Calculates the difference between the first and last value of each + time series element in a range vector v, returning an instant vector + with the given deltas and equivalent labels + - name: deriv + type: RangeResolution + description: Calculates the per-second derivative of the time series in a range + vector v, using simple linear regression + - name: exp + type: Boolean + description: Calculates the exponential function for all elements in v + - name: floor + type: Boolean + description: Rounds the sample values of all elements in v down to the nearest + integer value smaller than or equal to v + - name: group + type: "[NdcPrometheusQueryTotalTimeBucketLabel!]" + - name: histogram_avg + type: Boolean + description: Returns the arithmetic average of observed values stored in a + native histogram. Samples that are not native histograms are ignored and + do not show up in the returned vector + - name: histogram_count + type: Boolean + description: Returns the count of observations stored in a native histogram. + Samples that are not native histograms are ignored and do not show up in + the returned vector + - name: histogram_fraction + type: ValueBoundaryInput + description: Returns the estimated fraction of observations between the provided + lower and upper values. Samples that are not native histograms are + ignored and do not show up in the returned vector + - name: histogram_quantile + type: Float64 + description: Calculates the φ-quantile (0 ≤ φ ≤ 1) from a classic histogram or + from a native histogram + - name: histogram_stddev + type: Boolean + description: Returns the estimated standard deviation of observations in a + native histogram, based on the geometric mean of the buckets where the + observations lie. Samples that are not native histograms are ignored and + do not show up in the returned vector + - name: histogram_stdvar + type: Boolean + description: Returns the estimated standard variance of observations in a native + histogram + - name: histogram_sum + type: Boolean + description: Returns the sum of observations stored in a native histogram + - name: holt_winters + type: HoltWintersInput + description: Produces a smoothed value for time series based on the range in v + - name: idelta + type: RangeResolution + description: Calculates the difference between the last two samples in the range + vector v, returning an instant vector with the given deltas and + equivalent labels + - name: increase + type: RangeResolution + description: Calculates the increase in the time series in the range vector. + Breaks in monotonicity (such as counter resets due to target restarts) + are automatically adjusted for + - name: irate + type: RangeResolution + description: Calculates the per-second instant rate of increase of the time + series in the range vector. This is based on the last two data points + - name: label_join + type: NdcPrometheusQueryTotalTimeBucketLabelJoinInput + description: Joins all the values of all the src_labels using separator and + returns the timeseries with the label dst_label containing the joined + value + - name: label_replace + type: NdcPrometheusQueryTotalTimeBucketLabelReplaceInput + description: Matches the regular expression regex against the value of the label + src_label. If it matches, the value of the label dst_label in the + returned timeseries will be the expansion of replacement, together with + the original labels in the input + - name: last_over_time + type: RangeResolution + description: The most recent point value in the specified interval + - name: limit_ratio + type: Float64 + description: Sample elements with approximately 𝑟 ratio if 𝑟 > 0, and the + complement of such samples if 𝑟 = -(1.0 - 𝑟)) + - name: limitk + type: Int64 + description: Limit sample n elements + - name: ln + type: Boolean + description: Calculates the natural logarithm for all elements in v + - name: log2 + type: Boolean + description: Calculates the binary logarithm for all elements in v + - name: log10 + type: Boolean + description: Calculates the decimal logarithm for all elements in v + - name: mad_over_time + type: RangeResolution + description: The median absolute deviation of all points in the specified interval + - name: max + type: "[NdcPrometheusQueryTotalTimeBucketLabel!]" + - name: max_over_time + type: RangeResolution + description: The maximum value of all points in the specified interval + - name: min + type: "[NdcPrometheusQueryTotalTimeBucketLabel!]" + - name: min_over_time + type: RangeResolution + description: The minimum value of all points in the specified interval + - name: predict_linear + type: PredictLinearInput + description: Predicts the value of time series t seconds from now, based on the + range vector v, using simple linear regression + - name: present_over_time + type: RangeResolution + description: The value 1 for any series in the specified interval + - name: quantile + type: Float64 + description: Calculate φ-quantile (0 ≤ φ ≤ 1) over dimensions + - name: quantile_over_time + type: QuantileOverTimeInput + description: The φ-quantile (0 ≤ φ ≤ 1) of the values in the specified interval + - name: rad + type: Boolean + description: Converts degrees to radians for all elements in v + - name: rate + type: RangeResolution + description: Calculates the per-second average rate of increase of the time + series in the range vector + - name: resets + type: RangeResolution + description: Returns the number of counter resets within the provided time range + as an instant vector + - name: round + type: Float64 + description: Rounds the sample values of all elements in v to the nearest integer + - name: scalar + type: Boolean + description: Returns the sample value of that single element as a scalar + - name: sgn + type: Boolean + description: "Returns a vector with all sample values converted to their sign, + defined as this: 1 if v is positive, -1 if v is negative and 0 if v is + equal to zero" + - name: sin + type: Boolean + description: Calculates the sine of all elements in v + - name: sinh + type: Boolean + description: Calculates the hyperbolic sine of all elements in v + - name: sort + type: Boolean + description: Returns vector elements sorted by their sample values, in ascending + order. Native histograms are sorted by their sum of observations + - name: sort_by_label + type: "[NdcPrometheusQueryTotalTimeBucketLabel!]" + description: Returns vector elements sorted by their label values and sample + value in case of label values being equal, in ascending order + - name: sort_by_label_desc + type: "[NdcPrometheusQueryTotalTimeBucketLabel!]" + description: Same as sort_by_label, but sorts in descending order + - name: sort_desc + type: Boolean + description: Same as sort, but sorts in descending order + - name: sqrt + type: Boolean + description: Calculates the square root of all elements in v + - name: stddev + type: "[NdcPrometheusQueryTotalTimeBucketLabel!]" + - name: stddev_over_time + type: RangeResolution + description: The population standard deviation of the values in the specified interval + - name: stdvar + type: "[NdcPrometheusQueryTotalTimeBucketLabel!]" + - name: stdvar_over_time + type: RangeResolution + description: The population standard variance of the values in the specified interval + - name: sum + type: "[NdcPrometheusQueryTotalTimeBucketLabel!]" + - name: sum_over_time + type: RangeResolution + description: The sum of all values in the specified interval + - name: tan + type: Boolean + description: Calculates the tangent of all elements in v + - name: tanh + type: Boolean + description: Calculates the hyperbolic tangent of all elements in v + - name: timestamp + type: Boolean + description: Returns the timestamp of each of the samples of the given vector as + the number of seconds since January 1, 1970 UTC. It also works with + histogram samples + - name: topk + type: Int64 + description: Largest k elements by sample value + graphql: + typeName: NdcPrometheusQueryTotalTimeBucketFunctions + inputTypeName: NdcPrometheusQueryTotalTimeBucketFunctions_input + dataConnectorTypeMapping: + - dataConnectorName: prometheus + dataConnectorObjectType: NdcPrometheusQueryTotalTimeBucketFunctions + +--- +kind: TypePermissions +version: v1 +definition: + typeName: NdcPrometheusQueryTotalTimeBucketFunctions + permissions: + - role: admin + output: + allowedFields: + - abs + - absent + - absent_over_time + - acos + - acosh + - asin + - asinh + - atan + - atanh + - avg + - avg_over_time + - bottomk + - ceil + - changes + - clamp + - clamp_max + - clamp_min + - cos + - cosh + - count + - count_over_time + - count_values + - deg + - delta + - deriv + - exp + - floor + - group + - histogram_avg + - histogram_count + - histogram_fraction + - histogram_quantile + - histogram_stddev + - histogram_stdvar + - histogram_sum + - holt_winters + - idelta + - increase + - irate + - label_join + - label_replace + - last_over_time + - limit_ratio + - limitk + - ln + - log2 + - log10 + - mad_over_time + - max + - max_over_time + - min + - min_over_time + - predict_linear + - present_over_time + - quantile + - quantile_over_time + - rad + - rate + - resets + - round + - scalar + - sgn + - sin + - sinh + - sort + - sort_by_label + - sort_by_label_desc + - sort_desc + - sqrt + - stddev + - stddev_over_time + - stdvar + - stdvar_over_time + - sum + - sum_over_time + - tan + - tanh + - timestamp + - topk + +--- +kind: ObjectType +version: v1 +definition: + name: NdcPrometheusQueryTotalTimeBucket + fields: + - name: labels + type: LabelSet! + description: Labels of the metric + - name: timestamp + type: Timestamp! + description: An instant timestamp or the last timestamp of a range query result + - name: value + type: Decimal! + description: Value of the instant query or the last value of a range query + - name: values + type: "[QueryResultValue!]!" + description: An array of query result values + graphql: + typeName: NdcPrometheusQueryTotalTimeBucket + inputTypeName: NdcPrometheusQueryTotalTimeBucket_input + dataConnectorTypeMapping: + - dataConnectorName: prometheus + dataConnectorObjectType: NdcPrometheusQueryTotalTimeBucket + +--- +kind: TypePermissions +version: v1 +definition: + typeName: NdcPrometheusQueryTotalTimeBucket + permissions: + - role: admin + output: + allowedFields: + - labels + - timestamp + - value + - values + +--- +kind: BooleanExpressionType +version: v1 +definition: + name: NdcPrometheusQueryTotalTimeBucket_bool_exp + operand: + object: + type: NdcPrometheusQueryTotalTimeBucket + comparableFields: + - fieldName: labels + booleanExpressionType: LabelSet_bool_exp + - fieldName: timestamp + booleanExpressionType: Timestamp_bool_exp + - fieldName: value + booleanExpressionType: Decimal_bool_exp + comparableRelationships: [] + logicalOperators: + enable: true + isNull: + enable: true + graphql: + typeName: NdcPrometheusQueryTotalTimeBucket_bool_exp + +--- +kind: Model +version: v1 +definition: + name: ndc_prometheus_query_total_time_bucket + objectType: NdcPrometheusQueryTotalTimeBucket + arguments: + - name: fn + type: "[NdcPrometheusQueryTotalTimeBucketFunctions!]" + description: PromQL aggregation operators and functions for + ndc_prometheus_query_total_time_bucket + - name: offset + type: Duration + description: The offset modifier allows changing the time offset for individual + instant and range vectors in a query. + - name: step + type: Duration + description: Query resolution step width in duration format or float number of + seconds. + - name: timeout + type: Duration + description: Evaluation timeout + source: + dataConnectorName: prometheus + collection: ndc_prometheus_query_total_time_bucket + filterExpressionType: NdcPrometheusQueryTotalTimeBucket_bool_exp + orderableFields: + - fieldName: labels + orderByDirections: + enableAll: true + - fieldName: timestamp + orderByDirections: + enableAll: true + - fieldName: value + orderByDirections: + enableAll: true + graphql: + selectMany: + queryRootField: ndc_prometheus_query_total_time_bucket + selectUniques: [] + argumentsInputType: ndc_prometheus_query_total_time_bucket_arguments + orderByExpressionType: ndc_prometheus_query_total_time_bucket_order_by + description: Total time taken to plan and execute a query, in seconds + +--- +kind: ModelPermissions +version: v1 +definition: + modelName: ndc_prometheus_query_total_time_bucket + permissions: + - role: admin + select: + filter: null + diff --git a/tests/engine/app/metadata/ndc_prometheus_query_total_time_count.hml b/tests/engine/app/metadata/ndc_prometheus_query_total_time_count.hml new file mode 100644 index 0000000..e277304 --- /dev/null +++ b/tests/engine/app/metadata/ndc_prometheus_query_total_time_count.hml @@ -0,0 +1,567 @@ +--- +kind: ObjectType +version: v1 +definition: + name: NdcPrometheusQueryTotalTimeCountLabelJoinInput + description: Input arguments for the label_join function + fields: + - name: dest_label + type: String! + description: The destination label name + - name: separator + type: String! + description: The separator between source labels + - name: source_labels + type: "[NdcPrometheusQueryTotalTimeCountLabel!]!" + description: Source labels + graphql: + typeName: NdcPrometheusQueryTotalTimeCountLabelJoinInput + inputTypeName: NdcPrometheusQueryTotalTimeCountLabelJoinInput_input + dataConnectorTypeMapping: + - dataConnectorName: prometheus + dataConnectorObjectType: NdcPrometheusQueryTotalTimeCountLabelJoinInput + +--- +kind: TypePermissions +version: v1 +definition: + typeName: NdcPrometheusQueryTotalTimeCountLabelJoinInput + permissions: + - role: admin + output: + allowedFields: + - dest_label + - separator + - source_labels + +--- +kind: ObjectType +version: v1 +definition: + name: NdcPrometheusQueryTotalTimeCountLabelReplaceInput + description: Input arguments for the label_replace function + fields: + - name: dest_label + type: String! + description: The destination label name + - name: regex + type: String! + description: The regular expression against the value of the source label + - name: replacement + type: String! + description: The replacement value + - name: source_label + type: NdcPrometheusQueryTotalTimeCountLabel! + description: Source label + graphql: + typeName: NdcPrometheusQueryTotalTimeCountLabelReplaceInput + inputTypeName: NdcPrometheusQueryTotalTimeCountLabelReplaceInput_input + dataConnectorTypeMapping: + - dataConnectorName: prometheus + dataConnectorObjectType: NdcPrometheusQueryTotalTimeCountLabelReplaceInput + +--- +kind: TypePermissions +version: v1 +definition: + typeName: NdcPrometheusQueryTotalTimeCountLabelReplaceInput + permissions: + - role: admin + output: + allowedFields: + - dest_label + - regex + - replacement + - source_label + +--- +kind: ObjectType +version: v1 +definition: + name: NdcPrometheusQueryTotalTimeCountFunctions + fields: + - name: abs + type: Boolean + description: Returns the input vector with all sample values converted to their + absolute value + - name: absent + type: Boolean + description: Returns an empty vector if the vector passed to it has any elements + (floats or native histograms) and a 1-element vector with the value 1 if + the vector passed to it has no elements + - name: absent_over_time + type: RangeResolution + description: Returns an empty vector if the range vector passed to it has any + elements (floats or native histograms) and a 1-element vector with the + value 1 if the range vector passed to it has no elements + - name: acos + type: Boolean + description: Calculates the arccosine of all elements in v + - name: acosh + type: Boolean + description: Calculates the inverse hyperbolic cosine of all elements in v + - name: asin + type: Boolean + description: Calculates the arcsine of all elements in v + - name: asinh + type: Boolean + description: Calculates the inverse hyperbolic sine of all elements in v + - name: atan + type: Boolean + description: Calculates the arctangent of all elements in v + - name: atanh + type: Boolean + description: Calculates the inverse hyperbolic tangent of all elements in v + - name: avg + type: "[NdcPrometheusQueryTotalTimeCountLabel!]" + - name: avg_over_time + type: RangeResolution + description: The average value of all points in the specified interval + - name: bottomk + type: Int64 + description: Smallest k elements by sample value + - name: ceil + type: Boolean + description: Rounds the sample values of all elements in v up to the nearest + integer value greater than or equal to v + - name: changes + type: RangeResolution + description: Returns the number of times its value has changed within the + provided time range as an instant vector + - name: clamp + type: ValueBoundaryInput + description: Clamps the sample values of all elements in v to have a lower limit + of min and an upper limit of max + - name: clamp_max + type: Float64 + description: Clamps the sample values of all elements in v to have an upper + limit of max + - name: clamp_min + type: Float64 + description: Clamps the sample values of all elements in v to have a lower limit + of min + - name: cos + type: Boolean + description: Calculates the cosine of all elements in v + - name: cosh + type: Boolean + description: Calculates the hyperbolic cosine of all elements in v + - name: count + type: "[NdcPrometheusQueryTotalTimeCountLabel!]" + - name: count_over_time + type: RangeResolution + description: The count of all values in the specified interval + - name: count_values + type: NdcPrometheusQueryTotalTimeCountLabel + - name: deg + type: Boolean + description: Converts radians to degrees for all elements in v + - name: delta + type: RangeResolution + description: Calculates the difference between the first and last value of each + time series element in a range vector v, returning an instant vector + with the given deltas and equivalent labels + - name: deriv + type: RangeResolution + description: Calculates the per-second derivative of the time series in a range + vector v, using simple linear regression + - name: exp + type: Boolean + description: Calculates the exponential function for all elements in v + - name: floor + type: Boolean + description: Rounds the sample values of all elements in v down to the nearest + integer value smaller than or equal to v + - name: group + type: "[NdcPrometheusQueryTotalTimeCountLabel!]" + - name: histogram_avg + type: Boolean + description: Returns the arithmetic average of observed values stored in a + native histogram. Samples that are not native histograms are ignored and + do not show up in the returned vector + - name: histogram_count + type: Boolean + description: Returns the count of observations stored in a native histogram. + Samples that are not native histograms are ignored and do not show up in + the returned vector + - name: histogram_fraction + type: ValueBoundaryInput + description: Returns the estimated fraction of observations between the provided + lower and upper values. Samples that are not native histograms are + ignored and do not show up in the returned vector + - name: histogram_quantile + type: Float64 + description: Calculates the φ-quantile (0 ≤ φ ≤ 1) from a classic histogram or + from a native histogram + - name: histogram_stddev + type: Boolean + description: Returns the estimated standard deviation of observations in a + native histogram, based on the geometric mean of the buckets where the + observations lie. Samples that are not native histograms are ignored and + do not show up in the returned vector + - name: histogram_stdvar + type: Boolean + description: Returns the estimated standard variance of observations in a native + histogram + - name: histogram_sum + type: Boolean + description: Returns the sum of observations stored in a native histogram + - name: holt_winters + type: HoltWintersInput + description: Produces a smoothed value for time series based on the range in v + - name: idelta + type: RangeResolution + description: Calculates the difference between the last two samples in the range + vector v, returning an instant vector with the given deltas and + equivalent labels + - name: increase + type: RangeResolution + description: Calculates the increase in the time series in the range vector. + Breaks in monotonicity (such as counter resets due to target restarts) + are automatically adjusted for + - name: irate + type: RangeResolution + description: Calculates the per-second instant rate of increase of the time + series in the range vector. This is based on the last two data points + - name: label_join + type: NdcPrometheusQueryTotalTimeCountLabelJoinInput + description: Joins all the values of all the src_labels using separator and + returns the timeseries with the label dst_label containing the joined + value + - name: label_replace + type: NdcPrometheusQueryTotalTimeCountLabelReplaceInput + description: Matches the regular expression regex against the value of the label + src_label. If it matches, the value of the label dst_label in the + returned timeseries will be the expansion of replacement, together with + the original labels in the input + - name: last_over_time + type: RangeResolution + description: The most recent point value in the specified interval + - name: limit_ratio + type: Float64 + description: Sample elements with approximately 𝑟 ratio if 𝑟 > 0, and the + complement of such samples if 𝑟 = -(1.0 - 𝑟)) + - name: limitk + type: Int64 + description: Limit sample n elements + - name: ln + type: Boolean + description: Calculates the natural logarithm for all elements in v + - name: log2 + type: Boolean + description: Calculates the binary logarithm for all elements in v + - name: log10 + type: Boolean + description: Calculates the decimal logarithm for all elements in v + - name: mad_over_time + type: RangeResolution + description: The median absolute deviation of all points in the specified interval + - name: max + type: "[NdcPrometheusQueryTotalTimeCountLabel!]" + - name: max_over_time + type: RangeResolution + description: The maximum value of all points in the specified interval + - name: min + type: "[NdcPrometheusQueryTotalTimeCountLabel!]" + - name: min_over_time + type: RangeResolution + description: The minimum value of all points in the specified interval + - name: predict_linear + type: PredictLinearInput + description: Predicts the value of time series t seconds from now, based on the + range vector v, using simple linear regression + - name: present_over_time + type: RangeResolution + description: The value 1 for any series in the specified interval + - name: quantile + type: Float64 + description: Calculate φ-quantile (0 ≤ φ ≤ 1) over dimensions + - name: quantile_over_time + type: QuantileOverTimeInput + description: The φ-quantile (0 ≤ φ ≤ 1) of the values in the specified interval + - name: rad + type: Boolean + description: Converts degrees to radians for all elements in v + - name: rate + type: RangeResolution + description: Calculates the per-second average rate of increase of the time + series in the range vector + - name: resets + type: RangeResolution + description: Returns the number of counter resets within the provided time range + as an instant vector + - name: round + type: Float64 + description: Rounds the sample values of all elements in v to the nearest integer + - name: scalar + type: Boolean + description: Returns the sample value of that single element as a scalar + - name: sgn + type: Boolean + description: "Returns a vector with all sample values converted to their sign, + defined as this: 1 if v is positive, -1 if v is negative and 0 if v is + equal to zero" + - name: sin + type: Boolean + description: Calculates the sine of all elements in v + - name: sinh + type: Boolean + description: Calculates the hyperbolic sine of all elements in v + - name: sort + type: Boolean + description: Returns vector elements sorted by their sample values, in ascending + order. Native histograms are sorted by their sum of observations + - name: sort_by_label + type: "[NdcPrometheusQueryTotalTimeCountLabel!]" + description: Returns vector elements sorted by their label values and sample + value in case of label values being equal, in ascending order + - name: sort_by_label_desc + type: "[NdcPrometheusQueryTotalTimeCountLabel!]" + description: Same as sort_by_label, but sorts in descending order + - name: sort_desc + type: Boolean + description: Same as sort, but sorts in descending order + - name: sqrt + type: Boolean + description: Calculates the square root of all elements in v + - name: stddev + type: "[NdcPrometheusQueryTotalTimeCountLabel!]" + - name: stddev_over_time + type: RangeResolution + description: The population standard deviation of the values in the specified interval + - name: stdvar + type: "[NdcPrometheusQueryTotalTimeCountLabel!]" + - name: stdvar_over_time + type: RangeResolution + description: The population standard variance of the values in the specified interval + - name: sum + type: "[NdcPrometheusQueryTotalTimeCountLabel!]" + - name: sum_over_time + type: RangeResolution + description: The sum of all values in the specified interval + - name: tan + type: Boolean + description: Calculates the tangent of all elements in v + - name: tanh + type: Boolean + description: Calculates the hyperbolic tangent of all elements in v + - name: timestamp + type: Boolean + description: Returns the timestamp of each of the samples of the given vector as + the number of seconds since January 1, 1970 UTC. It also works with + histogram samples + - name: topk + type: Int64 + description: Largest k elements by sample value + graphql: + typeName: NdcPrometheusQueryTotalTimeCountFunctions + inputTypeName: NdcPrometheusQueryTotalTimeCountFunctions_input + dataConnectorTypeMapping: + - dataConnectorName: prometheus + dataConnectorObjectType: NdcPrometheusQueryTotalTimeCountFunctions + +--- +kind: TypePermissions +version: v1 +definition: + typeName: NdcPrometheusQueryTotalTimeCountFunctions + permissions: + - role: admin + output: + allowedFields: + - abs + - absent + - absent_over_time + - acos + - acosh + - asin + - asinh + - atan + - atanh + - avg + - avg_over_time + - bottomk + - ceil + - changes + - clamp + - clamp_max + - clamp_min + - cos + - cosh + - count + - count_over_time + - count_values + - deg + - delta + - deriv + - exp + - floor + - group + - histogram_avg + - histogram_count + - histogram_fraction + - histogram_quantile + - histogram_stddev + - histogram_stdvar + - histogram_sum + - holt_winters + - idelta + - increase + - irate + - label_join + - label_replace + - last_over_time + - limit_ratio + - limitk + - ln + - log2 + - log10 + - mad_over_time + - max + - max_over_time + - min + - min_over_time + - predict_linear + - present_over_time + - quantile + - quantile_over_time + - rad + - rate + - resets + - round + - scalar + - sgn + - sin + - sinh + - sort + - sort_by_label + - sort_by_label_desc + - sort_desc + - sqrt + - stddev + - stddev_over_time + - stdvar + - stdvar_over_time + - sum + - sum_over_time + - tan + - tanh + - timestamp + - topk + +--- +kind: ObjectType +version: v1 +definition: + name: NdcPrometheusQueryTotalTimeCount + fields: + - name: labels + type: LabelSet! + description: Labels of the metric + - name: timestamp + type: Timestamp! + description: An instant timestamp or the last timestamp of a range query result + - name: value + type: Decimal! + description: Value of the instant query or the last value of a range query + - name: values + type: "[QueryResultValue!]!" + description: An array of query result values + graphql: + typeName: NdcPrometheusQueryTotalTimeCount + inputTypeName: NdcPrometheusQueryTotalTimeCount_input + dataConnectorTypeMapping: + - dataConnectorName: prometheus + dataConnectorObjectType: NdcPrometheusQueryTotalTimeCount + +--- +kind: TypePermissions +version: v1 +definition: + typeName: NdcPrometheusQueryTotalTimeCount + permissions: + - role: admin + output: + allowedFields: + - labels + - timestamp + - value + - values + +--- +kind: BooleanExpressionType +version: v1 +definition: + name: NdcPrometheusQueryTotalTimeCount_bool_exp + operand: + object: + type: NdcPrometheusQueryTotalTimeCount + comparableFields: + - fieldName: labels + booleanExpressionType: LabelSet_bool_exp + - fieldName: timestamp + booleanExpressionType: Timestamp_bool_exp + - fieldName: value + booleanExpressionType: Decimal_bool_exp + comparableRelationships: [] + logicalOperators: + enable: true + isNull: + enable: true + graphql: + typeName: NdcPrometheusQueryTotalTimeCount_bool_exp + +--- +kind: Model +version: v1 +definition: + name: ndc_prometheus_query_total_time_count + objectType: NdcPrometheusQueryTotalTimeCount + arguments: + - name: fn + type: "[NdcPrometheusQueryTotalTimeCountFunctions!]" + description: PromQL aggregation operators and functions for + ndc_prometheus_query_total_time_count + - name: offset + type: Duration + description: The offset modifier allows changing the time offset for individual + instant and range vectors in a query. + - name: step + type: Duration + description: Query resolution step width in duration format or float number of + seconds. + - name: timeout + type: Duration + description: Evaluation timeout + source: + dataConnectorName: prometheus + collection: ndc_prometheus_query_total_time_count + filterExpressionType: NdcPrometheusQueryTotalTimeCount_bool_exp + orderableFields: + - fieldName: labels + orderByDirections: + enableAll: true + - fieldName: timestamp + orderByDirections: + enableAll: true + - fieldName: value + orderByDirections: + enableAll: true + graphql: + selectMany: + queryRootField: ndc_prometheus_query_total_time_count + selectUniques: [] + argumentsInputType: ndc_prometheus_query_total_time_count_arguments + orderByExpressionType: ndc_prometheus_query_total_time_count_order_by + description: Total time taken to plan and execute a query, in seconds + +--- +kind: ModelPermissions +version: v1 +definition: + modelName: ndc_prometheus_query_total_time_count + permissions: + - role: admin + select: + filter: null + diff --git a/tests/engine/app/metadata/ndc_prometheus_query_total_time_sum.hml b/tests/engine/app/metadata/ndc_prometheus_query_total_time_sum.hml new file mode 100644 index 0000000..f9edb49 --- /dev/null +++ b/tests/engine/app/metadata/ndc_prometheus_query_total_time_sum.hml @@ -0,0 +1,567 @@ +--- +kind: ObjectType +version: v1 +definition: + name: NdcPrometheusQueryTotalTimeSumLabelJoinInput + description: Input arguments for the label_join function + fields: + - name: dest_label + type: String! + description: The destination label name + - name: separator + type: String! + description: The separator between source labels + - name: source_labels + type: "[NdcPrometheusQueryTotalTimeSumLabel!]!" + description: Source labels + graphql: + typeName: NdcPrometheusQueryTotalTimeSumLabelJoinInput + inputTypeName: NdcPrometheusQueryTotalTimeSumLabelJoinInput_input + dataConnectorTypeMapping: + - dataConnectorName: prometheus + dataConnectorObjectType: NdcPrometheusQueryTotalTimeSumLabelJoinInput + +--- +kind: TypePermissions +version: v1 +definition: + typeName: NdcPrometheusQueryTotalTimeSumLabelJoinInput + permissions: + - role: admin + output: + allowedFields: + - dest_label + - separator + - source_labels + +--- +kind: ObjectType +version: v1 +definition: + name: NdcPrometheusQueryTotalTimeSumLabelReplaceInput + description: Input arguments for the label_replace function + fields: + - name: dest_label + type: String! + description: The destination label name + - name: regex + type: String! + description: The regular expression against the value of the source label + - name: replacement + type: String! + description: The replacement value + - name: source_label + type: NdcPrometheusQueryTotalTimeSumLabel! + description: Source label + graphql: + typeName: NdcPrometheusQueryTotalTimeSumLabelReplaceInput + inputTypeName: NdcPrometheusQueryTotalTimeSumLabelReplaceInput_input + dataConnectorTypeMapping: + - dataConnectorName: prometheus + dataConnectorObjectType: NdcPrometheusQueryTotalTimeSumLabelReplaceInput + +--- +kind: TypePermissions +version: v1 +definition: + typeName: NdcPrometheusQueryTotalTimeSumLabelReplaceInput + permissions: + - role: admin + output: + allowedFields: + - dest_label + - regex + - replacement + - source_label + +--- +kind: ObjectType +version: v1 +definition: + name: NdcPrometheusQueryTotalTimeSumFunctions + fields: + - name: abs + type: Boolean + description: Returns the input vector with all sample values converted to their + absolute value + - name: absent + type: Boolean + description: Returns an empty vector if the vector passed to it has any elements + (floats or native histograms) and a 1-element vector with the value 1 if + the vector passed to it has no elements + - name: absent_over_time + type: RangeResolution + description: Returns an empty vector if the range vector passed to it has any + elements (floats or native histograms) and a 1-element vector with the + value 1 if the range vector passed to it has no elements + - name: acos + type: Boolean + description: Calculates the arccosine of all elements in v + - name: acosh + type: Boolean + description: Calculates the inverse hyperbolic cosine of all elements in v + - name: asin + type: Boolean + description: Calculates the arcsine of all elements in v + - name: asinh + type: Boolean + description: Calculates the inverse hyperbolic sine of all elements in v + - name: atan + type: Boolean + description: Calculates the arctangent of all elements in v + - name: atanh + type: Boolean + description: Calculates the inverse hyperbolic tangent of all elements in v + - name: avg + type: "[NdcPrometheusQueryTotalTimeSumLabel!]" + - name: avg_over_time + type: RangeResolution + description: The average value of all points in the specified interval + - name: bottomk + type: Int64 + description: Smallest k elements by sample value + - name: ceil + type: Boolean + description: Rounds the sample values of all elements in v up to the nearest + integer value greater than or equal to v + - name: changes + type: RangeResolution + description: Returns the number of times its value has changed within the + provided time range as an instant vector + - name: clamp + type: ValueBoundaryInput + description: Clamps the sample values of all elements in v to have a lower limit + of min and an upper limit of max + - name: clamp_max + type: Float64 + description: Clamps the sample values of all elements in v to have an upper + limit of max + - name: clamp_min + type: Float64 + description: Clamps the sample values of all elements in v to have a lower limit + of min + - name: cos + type: Boolean + description: Calculates the cosine of all elements in v + - name: cosh + type: Boolean + description: Calculates the hyperbolic cosine of all elements in v + - name: count + type: "[NdcPrometheusQueryTotalTimeSumLabel!]" + - name: count_over_time + type: RangeResolution + description: The count of all values in the specified interval + - name: count_values + type: NdcPrometheusQueryTotalTimeSumLabel + - name: deg + type: Boolean + description: Converts radians to degrees for all elements in v + - name: delta + type: RangeResolution + description: Calculates the difference between the first and last value of each + time series element in a range vector v, returning an instant vector + with the given deltas and equivalent labels + - name: deriv + type: RangeResolution + description: Calculates the per-second derivative of the time series in a range + vector v, using simple linear regression + - name: exp + type: Boolean + description: Calculates the exponential function for all elements in v + - name: floor + type: Boolean + description: Rounds the sample values of all elements in v down to the nearest + integer value smaller than or equal to v + - name: group + type: "[NdcPrometheusQueryTotalTimeSumLabel!]" + - name: histogram_avg + type: Boolean + description: Returns the arithmetic average of observed values stored in a + native histogram. Samples that are not native histograms are ignored and + do not show up in the returned vector + - name: histogram_count + type: Boolean + description: Returns the count of observations stored in a native histogram. + Samples that are not native histograms are ignored and do not show up in + the returned vector + - name: histogram_fraction + type: ValueBoundaryInput + description: Returns the estimated fraction of observations between the provided + lower and upper values. Samples that are not native histograms are + ignored and do not show up in the returned vector + - name: histogram_quantile + type: Float64 + description: Calculates the φ-quantile (0 ≤ φ ≤ 1) from a classic histogram or + from a native histogram + - name: histogram_stddev + type: Boolean + description: Returns the estimated standard deviation of observations in a + native histogram, based on the geometric mean of the buckets where the + observations lie. Samples that are not native histograms are ignored and + do not show up in the returned vector + - name: histogram_stdvar + type: Boolean + description: Returns the estimated standard variance of observations in a native + histogram + - name: histogram_sum + type: Boolean + description: Returns the sum of observations stored in a native histogram + - name: holt_winters + type: HoltWintersInput + description: Produces a smoothed value for time series based on the range in v + - name: idelta + type: RangeResolution + description: Calculates the difference between the last two samples in the range + vector v, returning an instant vector with the given deltas and + equivalent labels + - name: increase + type: RangeResolution + description: Calculates the increase in the time series in the range vector. + Breaks in monotonicity (such as counter resets due to target restarts) + are automatically adjusted for + - name: irate + type: RangeResolution + description: Calculates the per-second instant rate of increase of the time + series in the range vector. This is based on the last two data points + - name: label_join + type: NdcPrometheusQueryTotalTimeSumLabelJoinInput + description: Joins all the values of all the src_labels using separator and + returns the timeseries with the label dst_label containing the joined + value + - name: label_replace + type: NdcPrometheusQueryTotalTimeSumLabelReplaceInput + description: Matches the regular expression regex against the value of the label + src_label. If it matches, the value of the label dst_label in the + returned timeseries will be the expansion of replacement, together with + the original labels in the input + - name: last_over_time + type: RangeResolution + description: The most recent point value in the specified interval + - name: limit_ratio + type: Float64 + description: Sample elements with approximately 𝑟 ratio if 𝑟 > 0, and the + complement of such samples if 𝑟 = -(1.0 - 𝑟)) + - name: limitk + type: Int64 + description: Limit sample n elements + - name: ln + type: Boolean + description: Calculates the natural logarithm for all elements in v + - name: log2 + type: Boolean + description: Calculates the binary logarithm for all elements in v + - name: log10 + type: Boolean + description: Calculates the decimal logarithm for all elements in v + - name: mad_over_time + type: RangeResolution + description: The median absolute deviation of all points in the specified interval + - name: max + type: "[NdcPrometheusQueryTotalTimeSumLabel!]" + - name: max_over_time + type: RangeResolution + description: The maximum value of all points in the specified interval + - name: min + type: "[NdcPrometheusQueryTotalTimeSumLabel!]" + - name: min_over_time + type: RangeResolution + description: The minimum value of all points in the specified interval + - name: predict_linear + type: PredictLinearInput + description: Predicts the value of time series t seconds from now, based on the + range vector v, using simple linear regression + - name: present_over_time + type: RangeResolution + description: The value 1 for any series in the specified interval + - name: quantile + type: Float64 + description: Calculate φ-quantile (0 ≤ φ ≤ 1) over dimensions + - name: quantile_over_time + type: QuantileOverTimeInput + description: The φ-quantile (0 ≤ φ ≤ 1) of the values in the specified interval + - name: rad + type: Boolean + description: Converts degrees to radians for all elements in v + - name: rate + type: RangeResolution + description: Calculates the per-second average rate of increase of the time + series in the range vector + - name: resets + type: RangeResolution + description: Returns the number of counter resets within the provided time range + as an instant vector + - name: round + type: Float64 + description: Rounds the sample values of all elements in v to the nearest integer + - name: scalar + type: Boolean + description: Returns the sample value of that single element as a scalar + - name: sgn + type: Boolean + description: "Returns a vector with all sample values converted to their sign, + defined as this: 1 if v is positive, -1 if v is negative and 0 if v is + equal to zero" + - name: sin + type: Boolean + description: Calculates the sine of all elements in v + - name: sinh + type: Boolean + description: Calculates the hyperbolic sine of all elements in v + - name: sort + type: Boolean + description: Returns vector elements sorted by their sample values, in ascending + order. Native histograms are sorted by their sum of observations + - name: sort_by_label + type: "[NdcPrometheusQueryTotalTimeSumLabel!]" + description: Returns vector elements sorted by their label values and sample + value in case of label values being equal, in ascending order + - name: sort_by_label_desc + type: "[NdcPrometheusQueryTotalTimeSumLabel!]" + description: Same as sort_by_label, but sorts in descending order + - name: sort_desc + type: Boolean + description: Same as sort, but sorts in descending order + - name: sqrt + type: Boolean + description: Calculates the square root of all elements in v + - name: stddev + type: "[NdcPrometheusQueryTotalTimeSumLabel!]" + - name: stddev_over_time + type: RangeResolution + description: The population standard deviation of the values in the specified interval + - name: stdvar + type: "[NdcPrometheusQueryTotalTimeSumLabel!]" + - name: stdvar_over_time + type: RangeResolution + description: The population standard variance of the values in the specified interval + - name: sum + type: "[NdcPrometheusQueryTotalTimeSumLabel!]" + - name: sum_over_time + type: RangeResolution + description: The sum of all values in the specified interval + - name: tan + type: Boolean + description: Calculates the tangent of all elements in v + - name: tanh + type: Boolean + description: Calculates the hyperbolic tangent of all elements in v + - name: timestamp + type: Boolean + description: Returns the timestamp of each of the samples of the given vector as + the number of seconds since January 1, 1970 UTC. It also works with + histogram samples + - name: topk + type: Int64 + description: Largest k elements by sample value + graphql: + typeName: NdcPrometheusQueryTotalTimeSumFunctions + inputTypeName: NdcPrometheusQueryTotalTimeSumFunctions_input + dataConnectorTypeMapping: + - dataConnectorName: prometheus + dataConnectorObjectType: NdcPrometheusQueryTotalTimeSumFunctions + +--- +kind: TypePermissions +version: v1 +definition: + typeName: NdcPrometheusQueryTotalTimeSumFunctions + permissions: + - role: admin + output: + allowedFields: + - abs + - absent + - absent_over_time + - acos + - acosh + - asin + - asinh + - atan + - atanh + - avg + - avg_over_time + - bottomk + - ceil + - changes + - clamp + - clamp_max + - clamp_min + - cos + - cosh + - count + - count_over_time + - count_values + - deg + - delta + - deriv + - exp + - floor + - group + - histogram_avg + - histogram_count + - histogram_fraction + - histogram_quantile + - histogram_stddev + - histogram_stdvar + - histogram_sum + - holt_winters + - idelta + - increase + - irate + - label_join + - label_replace + - last_over_time + - limit_ratio + - limitk + - ln + - log2 + - log10 + - mad_over_time + - max + - max_over_time + - min + - min_over_time + - predict_linear + - present_over_time + - quantile + - quantile_over_time + - rad + - rate + - resets + - round + - scalar + - sgn + - sin + - sinh + - sort + - sort_by_label + - sort_by_label_desc + - sort_desc + - sqrt + - stddev + - stddev_over_time + - stdvar + - stdvar_over_time + - sum + - sum_over_time + - tan + - tanh + - timestamp + - topk + +--- +kind: ObjectType +version: v1 +definition: + name: NdcPrometheusQueryTotalTimeSum + fields: + - name: labels + type: LabelSet! + description: Labels of the metric + - name: timestamp + type: Timestamp! + description: An instant timestamp or the last timestamp of a range query result + - name: value + type: Decimal! + description: Value of the instant query or the last value of a range query + - name: values + type: "[QueryResultValue!]!" + description: An array of query result values + graphql: + typeName: NdcPrometheusQueryTotalTimeSum + inputTypeName: NdcPrometheusQueryTotalTimeSum_input + dataConnectorTypeMapping: + - dataConnectorName: prometheus + dataConnectorObjectType: NdcPrometheusQueryTotalTimeSum + +--- +kind: TypePermissions +version: v1 +definition: + typeName: NdcPrometheusQueryTotalTimeSum + permissions: + - role: admin + output: + allowedFields: + - labels + - timestamp + - value + - values + +--- +kind: BooleanExpressionType +version: v1 +definition: + name: NdcPrometheusQueryTotalTimeSum_bool_exp + operand: + object: + type: NdcPrometheusQueryTotalTimeSum + comparableFields: + - fieldName: labels + booleanExpressionType: LabelSet_bool_exp + - fieldName: timestamp + booleanExpressionType: Timestamp_bool_exp + - fieldName: value + booleanExpressionType: Decimal_bool_exp + comparableRelationships: [] + logicalOperators: + enable: true + isNull: + enable: true + graphql: + typeName: NdcPrometheusQueryTotalTimeSum_bool_exp + +--- +kind: Model +version: v1 +definition: + name: ndc_prometheus_query_total_time_sum + objectType: NdcPrometheusQueryTotalTimeSum + arguments: + - name: fn + type: "[NdcPrometheusQueryTotalTimeSumFunctions!]" + description: PromQL aggregation operators and functions for + ndc_prometheus_query_total_time_sum + - name: offset + type: Duration + description: The offset modifier allows changing the time offset for individual + instant and range vectors in a query. + - name: step + type: Duration + description: Query resolution step width in duration format or float number of + seconds. + - name: timeout + type: Duration + description: Evaluation timeout + source: + dataConnectorName: prometheus + collection: ndc_prometheus_query_total_time_sum + filterExpressionType: NdcPrometheusQueryTotalTimeSum_bool_exp + orderableFields: + - fieldName: labels + orderByDirections: + enableAll: true + - fieldName: timestamp + orderByDirections: + enableAll: true + - fieldName: value + orderByDirections: + enableAll: true + graphql: + selectMany: + queryRootField: ndc_prometheus_query_total_time_sum + selectUniques: [] + argumentsInputType: ndc_prometheus_query_total_time_sum_arguments + orderByExpressionType: ndc_prometheus_query_total_time_sum_order_by + description: Total time taken to plan and execute a query, in seconds + +--- +kind: ModelPermissions +version: v1 +definition: + modelName: ndc_prometheus_query_total_time_sum + permissions: + - role: admin + select: + filter: null + diff --git a/tests/engine/app/metadata/otel_scope_info.hml b/tests/engine/app/metadata/otel_scope_info.hml new file mode 100644 index 0000000..d09d16b --- /dev/null +++ b/tests/engine/app/metadata/otel_scope_info.hml @@ -0,0 +1,590 @@ +--- +kind: ObjectType +version: v1 +definition: + name: OtelScopeInfoLabelJoinInput + description: Input arguments for the label_join function + fields: + - name: dest_label + type: String! + description: The destination label name + - name: separator + type: String! + description: The separator between source labels + - name: source_labels + type: "[OtelScopeInfoLabel!]!" + description: Source labels + graphql: + typeName: OtelScopeInfoLabelJoinInput + inputTypeName: OtelScopeInfoLabelJoinInput_input + dataConnectorTypeMapping: + - dataConnectorName: prometheus + dataConnectorObjectType: OtelScopeInfoLabelJoinInput + +--- +kind: TypePermissions +version: v1 +definition: + typeName: OtelScopeInfoLabelJoinInput + permissions: + - role: admin + output: + allowedFields: + - dest_label + - separator + - source_labels + +--- +kind: ObjectType +version: v1 +definition: + name: OtelScopeInfoLabelReplaceInput + description: Input arguments for the label_replace function + fields: + - name: dest_label + type: String! + description: The destination label name + - name: regex + type: String! + description: The regular expression against the value of the source label + - name: replacement + type: String! + description: The replacement value + - name: source_label + type: OtelScopeInfoLabel! + description: Source label + graphql: + typeName: OtelScopeInfoLabelReplaceInput + inputTypeName: OtelScopeInfoLabelReplaceInput_input + dataConnectorTypeMapping: + - dataConnectorName: prometheus + dataConnectorObjectType: OtelScopeInfoLabelReplaceInput + +--- +kind: TypePermissions +version: v1 +definition: + typeName: OtelScopeInfoLabelReplaceInput + permissions: + - role: admin + output: + allowedFields: + - dest_label + - regex + - replacement + - source_label + +--- +kind: ObjectType +version: v1 +definition: + name: OtelScopeInfoFunctions + fields: + - name: abs + type: Boolean + description: Returns the input vector with all sample values converted to their + absolute value + - name: absent + type: Boolean + description: Returns an empty vector if the vector passed to it has any elements + (floats or native histograms) and a 1-element vector with the value 1 if + the vector passed to it has no elements + - name: absent_over_time + type: RangeResolution + description: Returns an empty vector if the range vector passed to it has any + elements (floats or native histograms) and a 1-element vector with the + value 1 if the range vector passed to it has no elements + - name: acos + type: Boolean + description: Calculates the arccosine of all elements in v + - name: acosh + type: Boolean + description: Calculates the inverse hyperbolic cosine of all elements in v + - name: asin + type: Boolean + description: Calculates the arcsine of all elements in v + - name: asinh + type: Boolean + description: Calculates the inverse hyperbolic sine of all elements in v + - name: atan + type: Boolean + description: Calculates the arctangent of all elements in v + - name: atanh + type: Boolean + description: Calculates the inverse hyperbolic tangent of all elements in v + - name: avg + type: "[OtelScopeInfoLabel!]" + - name: avg_over_time + type: RangeResolution + description: The average value of all points in the specified interval + - name: bottomk + type: Int64 + description: Smallest k elements by sample value + - name: ceil + type: Boolean + description: Rounds the sample values of all elements in v up to the nearest + integer value greater than or equal to v + - name: changes + type: RangeResolution + description: Returns the number of times its value has changed within the + provided time range as an instant vector + - name: clamp + type: ValueBoundaryInput + description: Clamps the sample values of all elements in v to have a lower limit + of min and an upper limit of max + - name: clamp_max + type: Float64 + description: Clamps the sample values of all elements in v to have an upper + limit of max + - name: clamp_min + type: Float64 + description: Clamps the sample values of all elements in v to have a lower limit + of min + - name: cos + type: Boolean + description: Calculates the cosine of all elements in v + - name: cosh + type: Boolean + description: Calculates the hyperbolic cosine of all elements in v + - name: count + type: "[OtelScopeInfoLabel!]" + - name: count_over_time + type: RangeResolution + description: The count of all values in the specified interval + - name: count_values + type: OtelScopeInfoLabel + - name: deg + type: Boolean + description: Converts radians to degrees for all elements in v + - name: delta + type: RangeResolution + description: Calculates the difference between the first and last value of each + time series element in a range vector v, returning an instant vector + with the given deltas and equivalent labels + - name: deriv + type: RangeResolution + description: Calculates the per-second derivative of the time series in a range + vector v, using simple linear regression + - name: exp + type: Boolean + description: Calculates the exponential function for all elements in v + - name: floor + type: Boolean + description: Rounds the sample values of all elements in v down to the nearest + integer value smaller than or equal to v + - name: group + type: "[OtelScopeInfoLabel!]" + - name: histogram_avg + type: Boolean + description: Returns the arithmetic average of observed values stored in a + native histogram. Samples that are not native histograms are ignored and + do not show up in the returned vector + - name: histogram_count + type: Boolean + description: Returns the count of observations stored in a native histogram. + Samples that are not native histograms are ignored and do not show up in + the returned vector + - name: histogram_fraction + type: ValueBoundaryInput + description: Returns the estimated fraction of observations between the provided + lower and upper values. Samples that are not native histograms are + ignored and do not show up in the returned vector + - name: histogram_quantile + type: Float64 + description: Calculates the φ-quantile (0 ≤ φ ≤ 1) from a classic histogram or + from a native histogram + - name: histogram_stddev + type: Boolean + description: Returns the estimated standard deviation of observations in a + native histogram, based on the geometric mean of the buckets where the + observations lie. Samples that are not native histograms are ignored and + do not show up in the returned vector + - name: histogram_stdvar + type: Boolean + description: Returns the estimated standard variance of observations in a native + histogram + - name: histogram_sum + type: Boolean + description: Returns the sum of observations stored in a native histogram + - name: holt_winters + type: HoltWintersInput + description: Produces a smoothed value for time series based on the range in v + - name: idelta + type: RangeResolution + description: Calculates the difference between the last two samples in the range + vector v, returning an instant vector with the given deltas and + equivalent labels + - name: increase + type: RangeResolution + description: Calculates the increase in the time series in the range vector. + Breaks in monotonicity (such as counter resets due to target restarts) + are automatically adjusted for + - name: irate + type: RangeResolution + description: Calculates the per-second instant rate of increase of the time + series in the range vector. This is based on the last two data points + - name: label_join + type: OtelScopeInfoLabelJoinInput + description: Joins all the values of all the src_labels using separator and + returns the timeseries with the label dst_label containing the joined + value + - name: label_replace + type: OtelScopeInfoLabelReplaceInput + description: Matches the regular expression regex against the value of the label + src_label. If it matches, the value of the label dst_label in the + returned timeseries will be the expansion of replacement, together with + the original labels in the input + - name: last_over_time + type: RangeResolution + description: The most recent point value in the specified interval + - name: limit_ratio + type: Float64 + description: Sample elements with approximately 𝑟 ratio if 𝑟 > 0, and the + complement of such samples if 𝑟 = -(1.0 - 𝑟)) + - name: limitk + type: Int64 + description: Limit sample n elements + - name: ln + type: Boolean + description: Calculates the natural logarithm for all elements in v + - name: log2 + type: Boolean + description: Calculates the binary logarithm for all elements in v + - name: log10 + type: Boolean + description: Calculates the decimal logarithm for all elements in v + - name: mad_over_time + type: RangeResolution + description: The median absolute deviation of all points in the specified interval + - name: max + type: "[OtelScopeInfoLabel!]" + - name: max_over_time + type: RangeResolution + description: The maximum value of all points in the specified interval + - name: min + type: "[OtelScopeInfoLabel!]" + - name: min_over_time + type: RangeResolution + description: The minimum value of all points in the specified interval + - name: predict_linear + type: PredictLinearInput + description: Predicts the value of time series t seconds from now, based on the + range vector v, using simple linear regression + - name: present_over_time + type: RangeResolution + description: The value 1 for any series in the specified interval + - name: quantile + type: Float64 + description: Calculate φ-quantile (0 ≤ φ ≤ 1) over dimensions + - name: quantile_over_time + type: QuantileOverTimeInput + description: The φ-quantile (0 ≤ φ ≤ 1) of the values in the specified interval + - name: rad + type: Boolean + description: Converts degrees to radians for all elements in v + - name: rate + type: RangeResolution + description: Calculates the per-second average rate of increase of the time + series in the range vector + - name: resets + type: RangeResolution + description: Returns the number of counter resets within the provided time range + as an instant vector + - name: round + type: Float64 + description: Rounds the sample values of all elements in v to the nearest integer + - name: scalar + type: Boolean + description: Returns the sample value of that single element as a scalar + - name: sgn + type: Boolean + description: "Returns a vector with all sample values converted to their sign, + defined as this: 1 if v is positive, -1 if v is negative and 0 if v is + equal to zero" + - name: sin + type: Boolean + description: Calculates the sine of all elements in v + - name: sinh + type: Boolean + description: Calculates the hyperbolic sine of all elements in v + - name: sort + type: Boolean + description: Returns vector elements sorted by their sample values, in ascending + order. Native histograms are sorted by their sum of observations + - name: sort_by_label + type: "[OtelScopeInfoLabel!]" + description: Returns vector elements sorted by their label values and sample + value in case of label values being equal, in ascending order + - name: sort_by_label_desc + type: "[OtelScopeInfoLabel!]" + description: Same as sort_by_label, but sorts in descending order + - name: sort_desc + type: Boolean + description: Same as sort, but sorts in descending order + - name: sqrt + type: Boolean + description: Calculates the square root of all elements in v + - name: stddev + type: "[OtelScopeInfoLabel!]" + - name: stddev_over_time + type: RangeResolution + description: The population standard deviation of the values in the specified interval + - name: stdvar + type: "[OtelScopeInfoLabel!]" + - name: stdvar_over_time + type: RangeResolution + description: The population standard variance of the values in the specified interval + - name: sum + type: "[OtelScopeInfoLabel!]" + - name: sum_over_time + type: RangeResolution + description: The sum of all values in the specified interval + - name: tan + type: Boolean + description: Calculates the tangent of all elements in v + - name: tanh + type: Boolean + description: Calculates the hyperbolic tangent of all elements in v + - name: timestamp + type: Boolean + description: Returns the timestamp of each of the samples of the given vector as + the number of seconds since January 1, 1970 UTC. It also works with + histogram samples + - name: topk + type: Int64 + description: Largest k elements by sample value + graphql: + typeName: OtelScopeInfoFunctions + inputTypeName: OtelScopeInfoFunctions_input + dataConnectorTypeMapping: + - dataConnectorName: prometheus + dataConnectorObjectType: OtelScopeInfoFunctions + +--- +kind: TypePermissions +version: v1 +definition: + typeName: OtelScopeInfoFunctions + permissions: + - role: admin + output: + allowedFields: + - abs + - absent + - absent_over_time + - acos + - acosh + - asin + - asinh + - atan + - atanh + - avg + - avg_over_time + - bottomk + - ceil + - changes + - clamp + - clamp_max + - clamp_min + - cos + - cosh + - count + - count_over_time + - count_values + - deg + - delta + - deriv + - exp + - floor + - group + - histogram_avg + - histogram_count + - histogram_fraction + - histogram_quantile + - histogram_stddev + - histogram_stdvar + - histogram_sum + - holt_winters + - idelta + - increase + - irate + - label_join + - label_replace + - last_over_time + - limit_ratio + - limitk + - ln + - log2 + - log10 + - mad_over_time + - max + - max_over_time + - min + - min_over_time + - predict_linear + - present_over_time + - quantile + - quantile_over_time + - rad + - rate + - resets + - round + - scalar + - sgn + - sin + - sinh + - sort + - sort_by_label + - sort_by_label_desc + - sort_desc + - sqrt + - stddev + - stddev_over_time + - stdvar + - stdvar_over_time + - sum + - sum_over_time + - tan + - tanh + - timestamp + - topk + +--- +kind: ObjectType +version: v1 +definition: + name: OtelScopeInfo + fields: + - name: instance + type: String! + - name: job + type: String! + - name: labels + type: LabelSet! + description: Labels of the metric + - name: otel_scope_name + type: String! + - name: timestamp + type: Timestamp! + description: An instant timestamp or the last timestamp of a range query result + - name: value + type: Decimal! + description: Value of the instant query or the last value of a range query + - name: values + type: "[QueryResultValue!]!" + description: An array of query result values + graphql: + typeName: OtelScopeInfo + inputTypeName: OtelScopeInfo_input + dataConnectorTypeMapping: + - dataConnectorName: prometheus + dataConnectorObjectType: OtelScopeInfo + +--- +kind: TypePermissions +version: v1 +definition: + typeName: OtelScopeInfo + permissions: + - role: admin + output: + allowedFields: + - instance + - job + - labels + - otel_scope_name + - timestamp + - value + - values + +--- +kind: BooleanExpressionType +version: v1 +definition: + name: OtelScopeInfo_bool_exp + operand: + object: + type: OtelScopeInfo + comparableFields: + - fieldName: instance + booleanExpressionType: String_bool_exp + - fieldName: job + booleanExpressionType: String_bool_exp + - fieldName: labels + booleanExpressionType: LabelSet_bool_exp + - fieldName: otel_scope_name + booleanExpressionType: String_bool_exp + - fieldName: timestamp + booleanExpressionType: Timestamp_bool_exp + - fieldName: value + booleanExpressionType: Decimal_bool_exp + comparableRelationships: [] + logicalOperators: + enable: true + isNull: + enable: true + graphql: + typeName: OtelScopeInfo_bool_exp + +--- +kind: Model +version: v1 +definition: + name: otel_scope_info + objectType: OtelScopeInfo + arguments: + - name: fn + type: "[OtelScopeInfoFunctions!]" + description: PromQL aggregation operators and functions for otel_scope_info + - name: offset + type: Duration + description: The offset modifier allows changing the time offset for individual + instant and range vectors in a query. + - name: step + type: Duration + description: Query resolution step width in duration format or float number of + seconds. + - name: timeout + type: Duration + description: Evaluation timeout + source: + dataConnectorName: prometheus + collection: otel_scope_info + filterExpressionType: OtelScopeInfo_bool_exp + orderableFields: + - fieldName: instance + orderByDirections: + enableAll: true + - fieldName: job + orderByDirections: + enableAll: true + - fieldName: labels + orderByDirections: + enableAll: true + - fieldName: otel_scope_name + orderByDirections: + enableAll: true + - fieldName: timestamp + orderByDirections: + enableAll: true + - fieldName: value + orderByDirections: + enableAll: true + graphql: + selectMany: + queryRootField: otel_scope_info + selectUniques: [] + argumentsInputType: otel_scope_info_arguments + orderByExpressionType: otel_scope_info_order_by + description: Instrumentation Scope metadata + +--- +kind: ModelPermissions +version: v1 +definition: + modelName: otel_scope_info + permissions: + - role: admin + select: + filter: null + diff --git a/tests/engine/app/metadata/prometheus-types.hml b/tests/engine/app/metadata/prometheus-types.hml index f33c016..332ede7 100644 --- a/tests/engine/app/metadata/prometheus-types.hml +++ b/tests/engine/app/metadata/prometheus-types.hml @@ -804,3 +804,143 @@ definition: graphql: typeName: AlertState_bool_exp +--- +kind: ScalarType +version: v1 +definition: + name: NdcPrometheusQueryTotalLabel + graphql: + typeName: NdcPrometheusQueryTotalLabel + +--- +kind: BooleanExpressionType +version: v1 +definition: + name: NdcPrometheusQueryTotalLabel_bool_exp + operand: + scalar: + type: NdcPrometheusQueryTotalLabel + comparisonOperators: [] + dataConnectorOperatorMapping: + - dataConnectorName: prometheus + dataConnectorScalarType: NdcPrometheusQueryTotalLabel + operatorMapping: {} + logicalOperators: + enable: true + isNull: + enable: true + graphql: + typeName: NdcPrometheusQueryTotalLabel_bool_exp + +--- +kind: ScalarType +version: v1 +definition: + name: NdcPrometheusQueryTotalTimeBucketLabel + graphql: + typeName: NdcPrometheusQueryTotalTimeBucketLabel + +--- +kind: BooleanExpressionType +version: v1 +definition: + name: NdcPrometheusQueryTotalTimeBucketLabel_bool_exp + operand: + scalar: + type: NdcPrometheusQueryTotalTimeBucketLabel + comparisonOperators: [] + dataConnectorOperatorMapping: + - dataConnectorName: prometheus + dataConnectorScalarType: NdcPrometheusQueryTotalTimeBucketLabel + operatorMapping: {} + logicalOperators: + enable: true + isNull: + enable: true + graphql: + typeName: NdcPrometheusQueryTotalTimeBucketLabel_bool_exp + +--- +kind: ScalarType +version: v1 +definition: + name: NdcPrometheusQueryTotalTimeCountLabel + graphql: + typeName: NdcPrometheusQueryTotalTimeCountLabel + +--- +kind: BooleanExpressionType +version: v1 +definition: + name: NdcPrometheusQueryTotalTimeCountLabel_bool_exp + operand: + scalar: + type: NdcPrometheusQueryTotalTimeCountLabel + comparisonOperators: [] + dataConnectorOperatorMapping: + - dataConnectorName: prometheus + dataConnectorScalarType: NdcPrometheusQueryTotalTimeCountLabel + operatorMapping: {} + logicalOperators: + enable: true + isNull: + enable: true + graphql: + typeName: NdcPrometheusQueryTotalTimeCountLabel_bool_exp + +--- +kind: ScalarType +version: v1 +definition: + name: NdcPrometheusQueryTotalTimeSumLabel + graphql: + typeName: NdcPrometheusQueryTotalTimeSumLabel + +--- +kind: BooleanExpressionType +version: v1 +definition: + name: NdcPrometheusQueryTotalTimeSumLabel_bool_exp + operand: + scalar: + type: NdcPrometheusQueryTotalTimeSumLabel + comparisonOperators: [] + dataConnectorOperatorMapping: + - dataConnectorName: prometheus + dataConnectorScalarType: NdcPrometheusQueryTotalTimeSumLabel + operatorMapping: {} + logicalOperators: + enable: true + isNull: + enable: true + graphql: + typeName: NdcPrometheusQueryTotalTimeSumLabel_bool_exp + +--- +kind: ScalarType +version: v1 +definition: + name: OtelScopeInfoLabel + graphql: + typeName: OtelScopeInfoLabel + +--- +kind: BooleanExpressionType +version: v1 +definition: + name: OtelScopeInfoLabel_bool_exp + operand: + scalar: + type: OtelScopeInfoLabel + comparisonOperators: [] + dataConnectorOperatorMapping: + - dataConnectorName: prometheus + dataConnectorScalarType: OtelScopeInfoLabel + operatorMapping: {} + logicalOperators: + enable: true + isNull: + enable: true + graphql: + typeName: OtelScopeInfoLabel_bool_exp + diff --git a/tests/engine/app/metadata/prometheus.hml b/tests/engine/app/metadata/prometheus.hml index 56a674f..4b93e9a 100644 --- a/tests/engine/app/metadata/prometheus.hml +++ b/tests/engine/app/metadata/prometheus.hml @@ -84,6 +84,36 @@ definition: type: json aggregate_functions: {} comparison_operators: {} + NdcPrometheusQueryTotalLabel: + representation: + type: enum + one_of: + - collection + - http_status + - instance + - job + - otel_scope_name + - status + aggregate_functions: {} + comparison_operators: {} + NdcPrometheusQueryTotalTimeBucketLabel: + representation: + type: enum + one_of: [] + aggregate_functions: {} + comparison_operators: {} + NdcPrometheusQueryTotalTimeCountLabel: + representation: + type: enum + one_of: [] + aggregate_functions: {} + comparison_operators: {} + NdcPrometheusQueryTotalTimeSumLabel: + representation: + type: enum + one_of: [] + aggregate_functions: {} + comparison_operators: {} NetConntrackDialerConnAttemptedTotalLabel: representation: type: enum @@ -96,8 +126,8 @@ definition: representation: type: enum one_of: - - job - instance + - job aggregate_functions: {} comparison_operators: {} NetConntrackDialerConnEstablishedTotalLabel: @@ -112,9 +142,18 @@ definition: representation: type: enum one_of: + - reason - instance - job - - reason + aggregate_functions: {} + comparison_operators: {} + OtelScopeInfoLabel: + representation: + type: enum + one_of: + - job + - otel_scope_name + - instance aggregate_functions: {} comparison_operators: {} ProcessCpuSecondsTotalLabel: @@ -202,8 +241,8 @@ definition: representation: type: enum one_of: - - instance - job + - instance aggregate_functions: {} comparison_operators: {} PromhttpMetricHandlerRequestsTotalLabel: @@ -258,13 +297,13 @@ definition: representation: type: enum one_of: - - telemetry_sdk_name - - telemetry_sdk_version - instance - job - service_name - service_version - telemetry_sdk_language + - telemetry_sdk_name + - telemetry_sdk_version aggregate_functions: {} comparison_operators: {} Timestamp: @@ -417,8 +456,16 @@ definition: type: type: named name: String - NetConntrackDialerConnAttemptedTotal: + NdcPrometheusQueryTotal: fields: + collection: + type: + type: named + name: String + http_status: + type: + type: named + name: String instance: type: type: named @@ -432,6 +479,14 @@ definition: type: type: named name: LabelSet + otel_scope_name: + type: + type: named + name: String + status: + type: + type: named + name: String timestamp: description: An instant timestamp or the last timestamp of a range query result type: @@ -449,7 +504,7 @@ definition: element_type: type: named name: QueryResultValue - NetConntrackDialerConnAttemptedTotalFunctions: + NdcPrometheusQueryTotalFunctions: fields: abs: description: Returns the input vector with all sample values converted to their absolute value @@ -521,7 +576,7 @@ definition: type: array element_type: type: named - name: NetConntrackDialerConnAttemptedTotalLabel + name: NdcPrometheusQueryTotalLabel avg_over_time: description: The average value of all points in the specified interval type: @@ -592,7 +647,7 @@ definition: type: array element_type: type: named - name: NetConntrackDialerConnAttemptedTotalLabel + name: NdcPrometheusQueryTotalLabel count_over_time: description: The count of all values in the specified interval type: @@ -605,7 +660,7 @@ definition: type: nullable underlying_type: type: named - name: NetConntrackDialerConnAttemptedTotalLabel + name: NdcPrometheusQueryTotalLabel deg: description: Converts radians to degrees for all elements in v type: @@ -648,7 +703,7 @@ definition: type: array element_type: type: named - name: NetConntrackDialerConnAttemptedTotalLabel + name: NdcPrometheusQueryTotalLabel histogram_avg: description: Returns the arithmetic average of observed values stored in a native histogram. Samples that are not native histograms are ignored and do not show up in the returned vector type: @@ -732,14 +787,14 @@ definition: type: nullable underlying_type: type: named - name: NetConntrackDialerConnAttemptedTotalLabelJoinInput + name: NdcPrometheusQueryTotalLabelJoinInput label_replace: description: Matches the regular expression regex against the value of the label src_label. If it matches, the value of the label dst_label in the returned timeseries will be the expansion of replacement, together with the original labels in the input type: type: nullable underlying_type: type: named - name: NetConntrackDialerConnAttemptedTotalLabelReplaceInput + name: NdcPrometheusQueryTotalLabelReplaceInput last_over_time: description: The most recent point value in the specified interval type: @@ -796,7 +851,7 @@ definition: type: array element_type: type: named - name: NetConntrackDialerConnAttemptedTotalLabel + name: NdcPrometheusQueryTotalLabel max_over_time: description: The maximum value of all points in the specified interval type: @@ -811,7 +866,7 @@ definition: type: array element_type: type: named - name: NetConntrackDialerConnAttemptedTotalLabel + name: NdcPrometheusQueryTotalLabel min_over_time: description: The minimum value of all points in the specified interval type: @@ -918,7 +973,7 @@ definition: type: array element_type: type: named - name: NetConntrackDialerConnAttemptedTotalLabel + name: NdcPrometheusQueryTotalLabel sort_by_label_desc: description: Same as sort_by_label, but sorts in descending order type: @@ -927,7 +982,7 @@ definition: type: array element_type: type: named - name: NetConntrackDialerConnAttemptedTotalLabel + name: NdcPrometheusQueryTotalLabel sort_desc: description: Same as sort, but sorts in descending order type: @@ -949,7 +1004,7 @@ definition: type: array element_type: type: named - name: NetConntrackDialerConnAttemptedTotalLabel + name: NdcPrometheusQueryTotalLabel stddev_over_time: description: The population standard deviation of the values in the specified interval type: @@ -964,7 +1019,7 @@ definition: type: array element_type: type: named - name: NetConntrackDialerConnAttemptedTotalLabel + name: NdcPrometheusQueryTotalLabel stdvar_over_time: description: The population standard variance of the values in the specified interval type: @@ -979,7 +1034,7 @@ definition: type: array element_type: type: named - name: NetConntrackDialerConnAttemptedTotalLabel + name: NdcPrometheusQueryTotalLabel sum_over_time: description: The sum of all values in the specified interval type: @@ -1015,7 +1070,7 @@ definition: underlying_type: type: named name: Int64 - NetConntrackDialerConnAttemptedTotalLabelJoinInput: + NdcPrometheusQueryTotalLabelJoinInput: description: Input arguments for the label_join function fields: dest_label: @@ -1034,8 +1089,8 @@ definition: type: array element_type: type: named - name: NetConntrackDialerConnAttemptedTotalLabel - NetConntrackDialerConnAttemptedTotalLabelReplaceInput: + name: NdcPrometheusQueryTotalLabel + NdcPrometheusQueryTotalLabelReplaceInput: description: Input arguments for the label_replace function fields: dest_label: @@ -1057,8 +1112,3189 @@ definition: description: Source label type: type: named - name: NetConntrackDialerConnAttemptedTotalLabel - NetConntrackDialerConnClosedTotal: + name: NdcPrometheusQueryTotalLabel + NdcPrometheusQueryTotalTimeBucket: + fields: + labels: + description: Labels of the metric + type: + type: named + name: LabelSet + timestamp: + description: An instant timestamp or the last timestamp of a range query result + type: + type: named + name: Timestamp + value: + description: Value of the instant query or the last value of a range query + type: + type: named + name: Decimal + values: + description: An array of query result values + type: + type: array + element_type: + type: named + name: QueryResultValue + NdcPrometheusQueryTotalTimeBucketFunctions: + fields: + abs: + description: Returns the input vector with all sample values converted to their absolute value + type: + type: nullable + underlying_type: + type: named + name: Boolean + absent: + description: Returns an empty vector if the vector passed to it has any elements (floats or native histograms) and a 1-element vector with the value 1 if the vector passed to it has no elements + type: + type: nullable + underlying_type: + type: named + name: Boolean + absent_over_time: + description: Returns an empty vector if the range vector passed to it has any elements (floats or native histograms) and a 1-element vector with the value 1 if the range vector passed to it has no elements + type: + type: nullable + underlying_type: + type: named + name: RangeResolution + acos: + description: Calculates the arccosine of all elements in v + type: + type: nullable + underlying_type: + type: named + name: Boolean + acosh: + description: Calculates the inverse hyperbolic cosine of all elements in v + type: + type: nullable + underlying_type: + type: named + name: Boolean + asin: + description: Calculates the arcsine of all elements in v + type: + type: nullable + underlying_type: + type: named + name: Boolean + asinh: + description: Calculates the inverse hyperbolic sine of all elements in v + type: + type: nullable + underlying_type: + type: named + name: Boolean + atan: + description: Calculates the arctangent of all elements in v + type: + type: nullable + underlying_type: + type: named + name: Boolean + atanh: + description: Calculates the inverse hyperbolic tangent of all elements in v + type: + type: nullable + underlying_type: + type: named + name: Boolean + avg: + type: + type: nullable + underlying_type: + type: array + element_type: + type: named + name: NdcPrometheusQueryTotalTimeBucketLabel + avg_over_time: + description: The average value of all points in the specified interval + type: + type: nullable + underlying_type: + type: named + name: RangeResolution + bottomk: + description: Smallest k elements by sample value + type: + type: nullable + underlying_type: + type: named + name: Int64 + ceil: + description: Rounds the sample values of all elements in v up to the nearest integer value greater than or equal to v + type: + type: nullable + underlying_type: + type: named + name: Boolean + changes: + description: Returns the number of times its value has changed within the provided time range as an instant vector + type: + type: nullable + underlying_type: + type: named + name: RangeResolution + clamp: + description: Clamps the sample values of all elements in v to have a lower limit of min and an upper limit of max + type: + type: nullable + underlying_type: + type: named + name: ValueBoundaryInput + clamp_max: + description: Clamps the sample values of all elements in v to have an upper limit of max + type: + type: nullable + underlying_type: + type: named + name: Float64 + clamp_min: + description: Clamps the sample values of all elements in v to have a lower limit of min + type: + type: nullable + underlying_type: + type: named + name: Float64 + cos: + description: Calculates the cosine of all elements in v + type: + type: nullable + underlying_type: + type: named + name: Boolean + cosh: + description: Calculates the hyperbolic cosine of all elements in v + type: + type: nullable + underlying_type: + type: named + name: Boolean + count: + type: + type: nullable + underlying_type: + type: array + element_type: + type: named + name: NdcPrometheusQueryTotalTimeBucketLabel + count_over_time: + description: The count of all values in the specified interval + type: + type: nullable + underlying_type: + type: named + name: RangeResolution + count_values: + type: + type: nullable + underlying_type: + type: named + name: NdcPrometheusQueryTotalTimeBucketLabel + deg: + description: Converts radians to degrees for all elements in v + type: + type: nullable + underlying_type: + type: named + name: Boolean + delta: + description: Calculates the difference between the first and last value of each time series element in a range vector v, returning an instant vector with the given deltas and equivalent labels + type: + type: nullable + underlying_type: + type: named + name: RangeResolution + deriv: + description: Calculates the per-second derivative of the time series in a range vector v, using simple linear regression + type: + type: nullable + underlying_type: + type: named + name: RangeResolution + exp: + description: Calculates the exponential function for all elements in v + type: + type: nullable + underlying_type: + type: named + name: Boolean + floor: + description: Rounds the sample values of all elements in v down to the nearest integer value smaller than or equal to v + type: + type: nullable + underlying_type: + type: named + name: Boolean + group: + type: + type: nullable + underlying_type: + type: array + element_type: + type: named + name: NdcPrometheusQueryTotalTimeBucketLabel + histogram_avg: + description: Returns the arithmetic average of observed values stored in a native histogram. Samples that are not native histograms are ignored and do not show up in the returned vector + type: + type: nullable + underlying_type: + type: named + name: Boolean + histogram_count: + description: Returns the count of observations stored in a native histogram. Samples that are not native histograms are ignored and do not show up in the returned vector + type: + type: nullable + underlying_type: + type: named + name: Boolean + histogram_fraction: + description: Returns the estimated fraction of observations between the provided lower and upper values. Samples that are not native histograms are ignored and do not show up in the returned vector + type: + type: nullable + underlying_type: + type: named + name: ValueBoundaryInput + histogram_quantile: + description: Calculates the φ-quantile (0 ≤ φ ≤ 1) from a classic histogram or from a native histogram + type: + type: nullable + underlying_type: + type: named + name: Float64 + histogram_stddev: + description: Returns the estimated standard deviation of observations in a native histogram, based on the geometric mean of the buckets where the observations lie. Samples that are not native histograms are ignored and do not show up in the returned vector + type: + type: nullable + underlying_type: + type: named + name: Boolean + histogram_stdvar: + description: Returns the estimated standard variance of observations in a native histogram + type: + type: nullable + underlying_type: + type: named + name: Boolean + histogram_sum: + description: Returns the sum of observations stored in a native histogram + type: + type: nullable + underlying_type: + type: named + name: Boolean + holt_winters: + description: Produces a smoothed value for time series based on the range in v + type: + type: nullable + underlying_type: + type: named + name: HoltWintersInput + idelta: + description: Calculates the difference between the last two samples in the range vector v, returning an instant vector with the given deltas and equivalent labels + type: + type: nullable + underlying_type: + type: named + name: RangeResolution + increase: + description: Calculates the increase in the time series in the range vector. Breaks in monotonicity (such as counter resets due to target restarts) are automatically adjusted for + type: + type: nullable + underlying_type: + type: named + name: RangeResolution + irate: + description: Calculates the per-second instant rate of increase of the time series in the range vector. This is based on the last two data points + type: + type: nullable + underlying_type: + type: named + name: RangeResolution + label_join: + description: Joins all the values of all the src_labels using separator and returns the timeseries with the label dst_label containing the joined value + type: + type: nullable + underlying_type: + type: named + name: NdcPrometheusQueryTotalTimeBucketLabelJoinInput + label_replace: + description: Matches the regular expression regex against the value of the label src_label. If it matches, the value of the label dst_label in the returned timeseries will be the expansion of replacement, together with the original labels in the input + type: + type: nullable + underlying_type: + type: named + name: NdcPrometheusQueryTotalTimeBucketLabelReplaceInput + last_over_time: + description: The most recent point value in the specified interval + type: + type: nullable + underlying_type: + type: named + name: RangeResolution + limit_ratio: + description: "Sample elements with approximately \U0001D45F ratio if \U0001D45F > 0, and the complement of such samples if \U0001D45F = -(1.0 - \U0001D45F))" + type: + type: nullable + underlying_type: + type: named + name: Float64 + limitk: + description: Limit sample n elements + type: + type: nullable + underlying_type: + type: named + name: Int64 + ln: + description: Calculates the natural logarithm for all elements in v + type: + type: nullable + underlying_type: + type: named + name: Boolean + log2: + description: Calculates the binary logarithm for all elements in v + type: + type: nullable + underlying_type: + type: named + name: Boolean + log10: + description: Calculates the decimal logarithm for all elements in v + type: + type: nullable + underlying_type: + type: named + name: Boolean + mad_over_time: + description: The median absolute deviation of all points in the specified interval + type: + type: nullable + underlying_type: + type: named + name: RangeResolution + max: + type: + type: nullable + underlying_type: + type: array + element_type: + type: named + name: NdcPrometheusQueryTotalTimeBucketLabel + max_over_time: + description: The maximum value of all points in the specified interval + type: + type: nullable + underlying_type: + type: named + name: RangeResolution + min: + type: + type: nullable + underlying_type: + type: array + element_type: + type: named + name: NdcPrometheusQueryTotalTimeBucketLabel + min_over_time: + description: The minimum value of all points in the specified interval + type: + type: nullable + underlying_type: + type: named + name: RangeResolution + predict_linear: + description: Predicts the value of time series t seconds from now, based on the range vector v, using simple linear regression + type: + type: nullable + underlying_type: + type: named + name: PredictLinearInput + present_over_time: + description: The value 1 for any series in the specified interval + type: + type: nullable + underlying_type: + type: named + name: RangeResolution + quantile: + description: Calculate φ-quantile (0 ≤ φ ≤ 1) over dimensions + type: + type: nullable + underlying_type: + type: named + name: Float64 + quantile_over_time: + description: The φ-quantile (0 ≤ φ ≤ 1) of the values in the specified interval + type: + type: nullable + underlying_type: + type: named + name: QuantileOverTimeInput + rad: + description: Converts degrees to radians for all elements in v + type: + type: nullable + underlying_type: + type: named + name: Boolean + rate: + description: Calculates the per-second average rate of increase of the time series in the range vector + type: + type: nullable + underlying_type: + type: named + name: RangeResolution + resets: + description: Returns the number of counter resets within the provided time range as an instant vector + type: + type: nullable + underlying_type: + type: named + name: RangeResolution + round: + description: Rounds the sample values of all elements in v to the nearest integer + type: + type: nullable + underlying_type: + type: named + name: Float64 + scalar: + description: Returns the sample value of that single element as a scalar + type: + type: nullable + underlying_type: + type: named + name: Boolean + sgn: + description: 'Returns a vector with all sample values converted to their sign, defined as this: 1 if v is positive, -1 if v is negative and 0 if v is equal to zero' + type: + type: nullable + underlying_type: + type: named + name: Boolean + sin: + description: Calculates the sine of all elements in v + type: + type: nullable + underlying_type: + type: named + name: Boolean + sinh: + description: Calculates the hyperbolic sine of all elements in v + type: + type: nullable + underlying_type: + type: named + name: Boolean + sort: + description: Returns vector elements sorted by their sample values, in ascending order. Native histograms are sorted by their sum of observations + type: + type: nullable + underlying_type: + type: named + name: Boolean + sort_by_label: + description: Returns vector elements sorted by their label values and sample value in case of label values being equal, in ascending order + type: + type: nullable + underlying_type: + type: array + element_type: + type: named + name: NdcPrometheusQueryTotalTimeBucketLabel + sort_by_label_desc: + description: Same as sort_by_label, but sorts in descending order + type: + type: nullable + underlying_type: + type: array + element_type: + type: named + name: NdcPrometheusQueryTotalTimeBucketLabel + sort_desc: + description: Same as sort, but sorts in descending order + type: + type: nullable + underlying_type: + type: named + name: Boolean + sqrt: + description: Calculates the square root of all elements in v + type: + type: nullable + underlying_type: + type: named + name: Boolean + stddev: + type: + type: nullable + underlying_type: + type: array + element_type: + type: named + name: NdcPrometheusQueryTotalTimeBucketLabel + stddev_over_time: + description: The population standard deviation of the values in the specified interval + type: + type: nullable + underlying_type: + type: named + name: RangeResolution + stdvar: + type: + type: nullable + underlying_type: + type: array + element_type: + type: named + name: NdcPrometheusQueryTotalTimeBucketLabel + stdvar_over_time: + description: The population standard variance of the values in the specified interval + type: + type: nullable + underlying_type: + type: named + name: RangeResolution + sum: + type: + type: nullable + underlying_type: + type: array + element_type: + type: named + name: NdcPrometheusQueryTotalTimeBucketLabel + sum_over_time: + description: The sum of all values in the specified interval + type: + type: nullable + underlying_type: + type: named + name: RangeResolution + tan: + description: Calculates the tangent of all elements in v + type: + type: nullable + underlying_type: + type: named + name: Boolean + tanh: + description: Calculates the hyperbolic tangent of all elements in v + type: + type: nullable + underlying_type: + type: named + name: Boolean + timestamp: + description: Returns the timestamp of each of the samples of the given vector as the number of seconds since January 1, 1970 UTC. It also works with histogram samples + type: + type: nullable + underlying_type: + type: named + name: Boolean + topk: + description: Largest k elements by sample value + type: + type: nullable + underlying_type: + type: named + name: Int64 + NdcPrometheusQueryTotalTimeBucketLabelJoinInput: + description: Input arguments for the label_join function + fields: + dest_label: + description: The destination label name + type: + type: named + name: String + separator: + description: The separator between source labels + type: + type: named + name: String + source_labels: + description: Source labels + type: + type: array + element_type: + type: named + name: NdcPrometheusQueryTotalTimeBucketLabel + NdcPrometheusQueryTotalTimeBucketLabelReplaceInput: + description: Input arguments for the label_replace function + fields: + dest_label: + description: The destination label name + type: + type: named + name: String + regex: + description: The regular expression against the value of the source label + type: + type: named + name: String + replacement: + description: The replacement value + type: + type: named + name: String + source_label: + description: Source label + type: + type: named + name: NdcPrometheusQueryTotalTimeBucketLabel + NdcPrometheusQueryTotalTimeCount: + fields: + labels: + description: Labels of the metric + type: + type: named + name: LabelSet + timestamp: + description: An instant timestamp or the last timestamp of a range query result + type: + type: named + name: Timestamp + value: + description: Value of the instant query or the last value of a range query + type: + type: named + name: Decimal + values: + description: An array of query result values + type: + type: array + element_type: + type: named + name: QueryResultValue + NdcPrometheusQueryTotalTimeCountFunctions: + fields: + abs: + description: Returns the input vector with all sample values converted to their absolute value + type: + type: nullable + underlying_type: + type: named + name: Boolean + absent: + description: Returns an empty vector if the vector passed to it has any elements (floats or native histograms) and a 1-element vector with the value 1 if the vector passed to it has no elements + type: + type: nullable + underlying_type: + type: named + name: Boolean + absent_over_time: + description: Returns an empty vector if the range vector passed to it has any elements (floats or native histograms) and a 1-element vector with the value 1 if the range vector passed to it has no elements + type: + type: nullable + underlying_type: + type: named + name: RangeResolution + acos: + description: Calculates the arccosine of all elements in v + type: + type: nullable + underlying_type: + type: named + name: Boolean + acosh: + description: Calculates the inverse hyperbolic cosine of all elements in v + type: + type: nullable + underlying_type: + type: named + name: Boolean + asin: + description: Calculates the arcsine of all elements in v + type: + type: nullable + underlying_type: + type: named + name: Boolean + asinh: + description: Calculates the inverse hyperbolic sine of all elements in v + type: + type: nullable + underlying_type: + type: named + name: Boolean + atan: + description: Calculates the arctangent of all elements in v + type: + type: nullable + underlying_type: + type: named + name: Boolean + atanh: + description: Calculates the inverse hyperbolic tangent of all elements in v + type: + type: nullable + underlying_type: + type: named + name: Boolean + avg: + type: + type: nullable + underlying_type: + type: array + element_type: + type: named + name: NdcPrometheusQueryTotalTimeCountLabel + avg_over_time: + description: The average value of all points in the specified interval + type: + type: nullable + underlying_type: + type: named + name: RangeResolution + bottomk: + description: Smallest k elements by sample value + type: + type: nullable + underlying_type: + type: named + name: Int64 + ceil: + description: Rounds the sample values of all elements in v up to the nearest integer value greater than or equal to v + type: + type: nullable + underlying_type: + type: named + name: Boolean + changes: + description: Returns the number of times its value has changed within the provided time range as an instant vector + type: + type: nullable + underlying_type: + type: named + name: RangeResolution + clamp: + description: Clamps the sample values of all elements in v to have a lower limit of min and an upper limit of max + type: + type: nullable + underlying_type: + type: named + name: ValueBoundaryInput + clamp_max: + description: Clamps the sample values of all elements in v to have an upper limit of max + type: + type: nullable + underlying_type: + type: named + name: Float64 + clamp_min: + description: Clamps the sample values of all elements in v to have a lower limit of min + type: + type: nullable + underlying_type: + type: named + name: Float64 + cos: + description: Calculates the cosine of all elements in v + type: + type: nullable + underlying_type: + type: named + name: Boolean + cosh: + description: Calculates the hyperbolic cosine of all elements in v + type: + type: nullable + underlying_type: + type: named + name: Boolean + count: + type: + type: nullable + underlying_type: + type: array + element_type: + type: named + name: NdcPrometheusQueryTotalTimeCountLabel + count_over_time: + description: The count of all values in the specified interval + type: + type: nullable + underlying_type: + type: named + name: RangeResolution + count_values: + type: + type: nullable + underlying_type: + type: named + name: NdcPrometheusQueryTotalTimeCountLabel + deg: + description: Converts radians to degrees for all elements in v + type: + type: nullable + underlying_type: + type: named + name: Boolean + delta: + description: Calculates the difference between the first and last value of each time series element in a range vector v, returning an instant vector with the given deltas and equivalent labels + type: + type: nullable + underlying_type: + type: named + name: RangeResolution + deriv: + description: Calculates the per-second derivative of the time series in a range vector v, using simple linear regression + type: + type: nullable + underlying_type: + type: named + name: RangeResolution + exp: + description: Calculates the exponential function for all elements in v + type: + type: nullable + underlying_type: + type: named + name: Boolean + floor: + description: Rounds the sample values of all elements in v down to the nearest integer value smaller than or equal to v + type: + type: nullable + underlying_type: + type: named + name: Boolean + group: + type: + type: nullable + underlying_type: + type: array + element_type: + type: named + name: NdcPrometheusQueryTotalTimeCountLabel + histogram_avg: + description: Returns the arithmetic average of observed values stored in a native histogram. Samples that are not native histograms are ignored and do not show up in the returned vector + type: + type: nullable + underlying_type: + type: named + name: Boolean + histogram_count: + description: Returns the count of observations stored in a native histogram. Samples that are not native histograms are ignored and do not show up in the returned vector + type: + type: nullable + underlying_type: + type: named + name: Boolean + histogram_fraction: + description: Returns the estimated fraction of observations between the provided lower and upper values. Samples that are not native histograms are ignored and do not show up in the returned vector + type: + type: nullable + underlying_type: + type: named + name: ValueBoundaryInput + histogram_quantile: + description: Calculates the φ-quantile (0 ≤ φ ≤ 1) from a classic histogram or from a native histogram + type: + type: nullable + underlying_type: + type: named + name: Float64 + histogram_stddev: + description: Returns the estimated standard deviation of observations in a native histogram, based on the geometric mean of the buckets where the observations lie. Samples that are not native histograms are ignored and do not show up in the returned vector + type: + type: nullable + underlying_type: + type: named + name: Boolean + histogram_stdvar: + description: Returns the estimated standard variance of observations in a native histogram + type: + type: nullable + underlying_type: + type: named + name: Boolean + histogram_sum: + description: Returns the sum of observations stored in a native histogram + type: + type: nullable + underlying_type: + type: named + name: Boolean + holt_winters: + description: Produces a smoothed value for time series based on the range in v + type: + type: nullable + underlying_type: + type: named + name: HoltWintersInput + idelta: + description: Calculates the difference between the last two samples in the range vector v, returning an instant vector with the given deltas and equivalent labels + type: + type: nullable + underlying_type: + type: named + name: RangeResolution + increase: + description: Calculates the increase in the time series in the range vector. Breaks in monotonicity (such as counter resets due to target restarts) are automatically adjusted for + type: + type: nullable + underlying_type: + type: named + name: RangeResolution + irate: + description: Calculates the per-second instant rate of increase of the time series in the range vector. This is based on the last two data points + type: + type: nullable + underlying_type: + type: named + name: RangeResolution + label_join: + description: Joins all the values of all the src_labels using separator and returns the timeseries with the label dst_label containing the joined value + type: + type: nullable + underlying_type: + type: named + name: NdcPrometheusQueryTotalTimeCountLabelJoinInput + label_replace: + description: Matches the regular expression regex against the value of the label src_label. If it matches, the value of the label dst_label in the returned timeseries will be the expansion of replacement, together with the original labels in the input + type: + type: nullable + underlying_type: + type: named + name: NdcPrometheusQueryTotalTimeCountLabelReplaceInput + last_over_time: + description: The most recent point value in the specified interval + type: + type: nullable + underlying_type: + type: named + name: RangeResolution + limit_ratio: + description: "Sample elements with approximately \U0001D45F ratio if \U0001D45F > 0, and the complement of such samples if \U0001D45F = -(1.0 - \U0001D45F))" + type: + type: nullable + underlying_type: + type: named + name: Float64 + limitk: + description: Limit sample n elements + type: + type: nullable + underlying_type: + type: named + name: Int64 + ln: + description: Calculates the natural logarithm for all elements in v + type: + type: nullable + underlying_type: + type: named + name: Boolean + log2: + description: Calculates the binary logarithm for all elements in v + type: + type: nullable + underlying_type: + type: named + name: Boolean + log10: + description: Calculates the decimal logarithm for all elements in v + type: + type: nullable + underlying_type: + type: named + name: Boolean + mad_over_time: + description: The median absolute deviation of all points in the specified interval + type: + type: nullable + underlying_type: + type: named + name: RangeResolution + max: + type: + type: nullable + underlying_type: + type: array + element_type: + type: named + name: NdcPrometheusQueryTotalTimeCountLabel + max_over_time: + description: The maximum value of all points in the specified interval + type: + type: nullable + underlying_type: + type: named + name: RangeResolution + min: + type: + type: nullable + underlying_type: + type: array + element_type: + type: named + name: NdcPrometheusQueryTotalTimeCountLabel + min_over_time: + description: The minimum value of all points in the specified interval + type: + type: nullable + underlying_type: + type: named + name: RangeResolution + predict_linear: + description: Predicts the value of time series t seconds from now, based on the range vector v, using simple linear regression + type: + type: nullable + underlying_type: + type: named + name: PredictLinearInput + present_over_time: + description: The value 1 for any series in the specified interval + type: + type: nullable + underlying_type: + type: named + name: RangeResolution + quantile: + description: Calculate φ-quantile (0 ≤ φ ≤ 1) over dimensions + type: + type: nullable + underlying_type: + type: named + name: Float64 + quantile_over_time: + description: The φ-quantile (0 ≤ φ ≤ 1) of the values in the specified interval + type: + type: nullable + underlying_type: + type: named + name: QuantileOverTimeInput + rad: + description: Converts degrees to radians for all elements in v + type: + type: nullable + underlying_type: + type: named + name: Boolean + rate: + description: Calculates the per-second average rate of increase of the time series in the range vector + type: + type: nullable + underlying_type: + type: named + name: RangeResolution + resets: + description: Returns the number of counter resets within the provided time range as an instant vector + type: + type: nullable + underlying_type: + type: named + name: RangeResolution + round: + description: Rounds the sample values of all elements in v to the nearest integer + type: + type: nullable + underlying_type: + type: named + name: Float64 + scalar: + description: Returns the sample value of that single element as a scalar + type: + type: nullable + underlying_type: + type: named + name: Boolean + sgn: + description: 'Returns a vector with all sample values converted to their sign, defined as this: 1 if v is positive, -1 if v is negative and 0 if v is equal to zero' + type: + type: nullable + underlying_type: + type: named + name: Boolean + sin: + description: Calculates the sine of all elements in v + type: + type: nullable + underlying_type: + type: named + name: Boolean + sinh: + description: Calculates the hyperbolic sine of all elements in v + type: + type: nullable + underlying_type: + type: named + name: Boolean + sort: + description: Returns vector elements sorted by their sample values, in ascending order. Native histograms are sorted by their sum of observations + type: + type: nullable + underlying_type: + type: named + name: Boolean + sort_by_label: + description: Returns vector elements sorted by their label values and sample value in case of label values being equal, in ascending order + type: + type: nullable + underlying_type: + type: array + element_type: + type: named + name: NdcPrometheusQueryTotalTimeCountLabel + sort_by_label_desc: + description: Same as sort_by_label, but sorts in descending order + type: + type: nullable + underlying_type: + type: array + element_type: + type: named + name: NdcPrometheusQueryTotalTimeCountLabel + sort_desc: + description: Same as sort, but sorts in descending order + type: + type: nullable + underlying_type: + type: named + name: Boolean + sqrt: + description: Calculates the square root of all elements in v + type: + type: nullable + underlying_type: + type: named + name: Boolean + stddev: + type: + type: nullable + underlying_type: + type: array + element_type: + type: named + name: NdcPrometheusQueryTotalTimeCountLabel + stddev_over_time: + description: The population standard deviation of the values in the specified interval + type: + type: nullable + underlying_type: + type: named + name: RangeResolution + stdvar: + type: + type: nullable + underlying_type: + type: array + element_type: + type: named + name: NdcPrometheusQueryTotalTimeCountLabel + stdvar_over_time: + description: The population standard variance of the values in the specified interval + type: + type: nullable + underlying_type: + type: named + name: RangeResolution + sum: + type: + type: nullable + underlying_type: + type: array + element_type: + type: named + name: NdcPrometheusQueryTotalTimeCountLabel + sum_over_time: + description: The sum of all values in the specified interval + type: + type: nullable + underlying_type: + type: named + name: RangeResolution + tan: + description: Calculates the tangent of all elements in v + type: + type: nullable + underlying_type: + type: named + name: Boolean + tanh: + description: Calculates the hyperbolic tangent of all elements in v + type: + type: nullable + underlying_type: + type: named + name: Boolean + timestamp: + description: Returns the timestamp of each of the samples of the given vector as the number of seconds since January 1, 1970 UTC. It also works with histogram samples + type: + type: nullable + underlying_type: + type: named + name: Boolean + topk: + description: Largest k elements by sample value + type: + type: nullable + underlying_type: + type: named + name: Int64 + NdcPrometheusQueryTotalTimeCountLabelJoinInput: + description: Input arguments for the label_join function + fields: + dest_label: + description: The destination label name + type: + type: named + name: String + separator: + description: The separator between source labels + type: + type: named + name: String + source_labels: + description: Source labels + type: + type: array + element_type: + type: named + name: NdcPrometheusQueryTotalTimeCountLabel + NdcPrometheusQueryTotalTimeCountLabelReplaceInput: + description: Input arguments for the label_replace function + fields: + dest_label: + description: The destination label name + type: + type: named + name: String + regex: + description: The regular expression against the value of the source label + type: + type: named + name: String + replacement: + description: The replacement value + type: + type: named + name: String + source_label: + description: Source label + type: + type: named + name: NdcPrometheusQueryTotalTimeCountLabel + NdcPrometheusQueryTotalTimeSum: + fields: + labels: + description: Labels of the metric + type: + type: named + name: LabelSet + timestamp: + description: An instant timestamp or the last timestamp of a range query result + type: + type: named + name: Timestamp + value: + description: Value of the instant query or the last value of a range query + type: + type: named + name: Decimal + values: + description: An array of query result values + type: + type: array + element_type: + type: named + name: QueryResultValue + NdcPrometheusQueryTotalTimeSumFunctions: + fields: + abs: + description: Returns the input vector with all sample values converted to their absolute value + type: + type: nullable + underlying_type: + type: named + name: Boolean + absent: + description: Returns an empty vector if the vector passed to it has any elements (floats or native histograms) and a 1-element vector with the value 1 if the vector passed to it has no elements + type: + type: nullable + underlying_type: + type: named + name: Boolean + absent_over_time: + description: Returns an empty vector if the range vector passed to it has any elements (floats or native histograms) and a 1-element vector with the value 1 if the range vector passed to it has no elements + type: + type: nullable + underlying_type: + type: named + name: RangeResolution + acos: + description: Calculates the arccosine of all elements in v + type: + type: nullable + underlying_type: + type: named + name: Boolean + acosh: + description: Calculates the inverse hyperbolic cosine of all elements in v + type: + type: nullable + underlying_type: + type: named + name: Boolean + asin: + description: Calculates the arcsine of all elements in v + type: + type: nullable + underlying_type: + type: named + name: Boolean + asinh: + description: Calculates the inverse hyperbolic sine of all elements in v + type: + type: nullable + underlying_type: + type: named + name: Boolean + atan: + description: Calculates the arctangent of all elements in v + type: + type: nullable + underlying_type: + type: named + name: Boolean + atanh: + description: Calculates the inverse hyperbolic tangent of all elements in v + type: + type: nullable + underlying_type: + type: named + name: Boolean + avg: + type: + type: nullable + underlying_type: + type: array + element_type: + type: named + name: NdcPrometheusQueryTotalTimeSumLabel + avg_over_time: + description: The average value of all points in the specified interval + type: + type: nullable + underlying_type: + type: named + name: RangeResolution + bottomk: + description: Smallest k elements by sample value + type: + type: nullable + underlying_type: + type: named + name: Int64 + ceil: + description: Rounds the sample values of all elements in v up to the nearest integer value greater than or equal to v + type: + type: nullable + underlying_type: + type: named + name: Boolean + changes: + description: Returns the number of times its value has changed within the provided time range as an instant vector + type: + type: nullable + underlying_type: + type: named + name: RangeResolution + clamp: + description: Clamps the sample values of all elements in v to have a lower limit of min and an upper limit of max + type: + type: nullable + underlying_type: + type: named + name: ValueBoundaryInput + clamp_max: + description: Clamps the sample values of all elements in v to have an upper limit of max + type: + type: nullable + underlying_type: + type: named + name: Float64 + clamp_min: + description: Clamps the sample values of all elements in v to have a lower limit of min + type: + type: nullable + underlying_type: + type: named + name: Float64 + cos: + description: Calculates the cosine of all elements in v + type: + type: nullable + underlying_type: + type: named + name: Boolean + cosh: + description: Calculates the hyperbolic cosine of all elements in v + type: + type: nullable + underlying_type: + type: named + name: Boolean + count: + type: + type: nullable + underlying_type: + type: array + element_type: + type: named + name: NdcPrometheusQueryTotalTimeSumLabel + count_over_time: + description: The count of all values in the specified interval + type: + type: nullable + underlying_type: + type: named + name: RangeResolution + count_values: + type: + type: nullable + underlying_type: + type: named + name: NdcPrometheusQueryTotalTimeSumLabel + deg: + description: Converts radians to degrees for all elements in v + type: + type: nullable + underlying_type: + type: named + name: Boolean + delta: + description: Calculates the difference between the first and last value of each time series element in a range vector v, returning an instant vector with the given deltas and equivalent labels + type: + type: nullable + underlying_type: + type: named + name: RangeResolution + deriv: + description: Calculates the per-second derivative of the time series in a range vector v, using simple linear regression + type: + type: nullable + underlying_type: + type: named + name: RangeResolution + exp: + description: Calculates the exponential function for all elements in v + type: + type: nullable + underlying_type: + type: named + name: Boolean + floor: + description: Rounds the sample values of all elements in v down to the nearest integer value smaller than or equal to v + type: + type: nullable + underlying_type: + type: named + name: Boolean + group: + type: + type: nullable + underlying_type: + type: array + element_type: + type: named + name: NdcPrometheusQueryTotalTimeSumLabel + histogram_avg: + description: Returns the arithmetic average of observed values stored in a native histogram. Samples that are not native histograms are ignored and do not show up in the returned vector + type: + type: nullable + underlying_type: + type: named + name: Boolean + histogram_count: + description: Returns the count of observations stored in a native histogram. Samples that are not native histograms are ignored and do not show up in the returned vector + type: + type: nullable + underlying_type: + type: named + name: Boolean + histogram_fraction: + description: Returns the estimated fraction of observations between the provided lower and upper values. Samples that are not native histograms are ignored and do not show up in the returned vector + type: + type: nullable + underlying_type: + type: named + name: ValueBoundaryInput + histogram_quantile: + description: Calculates the φ-quantile (0 ≤ φ ≤ 1) from a classic histogram or from a native histogram + type: + type: nullable + underlying_type: + type: named + name: Float64 + histogram_stddev: + description: Returns the estimated standard deviation of observations in a native histogram, based on the geometric mean of the buckets where the observations lie. Samples that are not native histograms are ignored and do not show up in the returned vector + type: + type: nullable + underlying_type: + type: named + name: Boolean + histogram_stdvar: + description: Returns the estimated standard variance of observations in a native histogram + type: + type: nullable + underlying_type: + type: named + name: Boolean + histogram_sum: + description: Returns the sum of observations stored in a native histogram + type: + type: nullable + underlying_type: + type: named + name: Boolean + holt_winters: + description: Produces a smoothed value for time series based on the range in v + type: + type: nullable + underlying_type: + type: named + name: HoltWintersInput + idelta: + description: Calculates the difference between the last two samples in the range vector v, returning an instant vector with the given deltas and equivalent labels + type: + type: nullable + underlying_type: + type: named + name: RangeResolution + increase: + description: Calculates the increase in the time series in the range vector. Breaks in monotonicity (such as counter resets due to target restarts) are automatically adjusted for + type: + type: nullable + underlying_type: + type: named + name: RangeResolution + irate: + description: Calculates the per-second instant rate of increase of the time series in the range vector. This is based on the last two data points + type: + type: nullable + underlying_type: + type: named + name: RangeResolution + label_join: + description: Joins all the values of all the src_labels using separator and returns the timeseries with the label dst_label containing the joined value + type: + type: nullable + underlying_type: + type: named + name: NdcPrometheusQueryTotalTimeSumLabelJoinInput + label_replace: + description: Matches the regular expression regex against the value of the label src_label. If it matches, the value of the label dst_label in the returned timeseries will be the expansion of replacement, together with the original labels in the input + type: + type: nullable + underlying_type: + type: named + name: NdcPrometheusQueryTotalTimeSumLabelReplaceInput + last_over_time: + description: The most recent point value in the specified interval + type: + type: nullable + underlying_type: + type: named + name: RangeResolution + limit_ratio: + description: "Sample elements with approximately \U0001D45F ratio if \U0001D45F > 0, and the complement of such samples if \U0001D45F = -(1.0 - \U0001D45F))" + type: + type: nullable + underlying_type: + type: named + name: Float64 + limitk: + description: Limit sample n elements + type: + type: nullable + underlying_type: + type: named + name: Int64 + ln: + description: Calculates the natural logarithm for all elements in v + type: + type: nullable + underlying_type: + type: named + name: Boolean + log2: + description: Calculates the binary logarithm for all elements in v + type: + type: nullable + underlying_type: + type: named + name: Boolean + log10: + description: Calculates the decimal logarithm for all elements in v + type: + type: nullable + underlying_type: + type: named + name: Boolean + mad_over_time: + description: The median absolute deviation of all points in the specified interval + type: + type: nullable + underlying_type: + type: named + name: RangeResolution + max: + type: + type: nullable + underlying_type: + type: array + element_type: + type: named + name: NdcPrometheusQueryTotalTimeSumLabel + max_over_time: + description: The maximum value of all points in the specified interval + type: + type: nullable + underlying_type: + type: named + name: RangeResolution + min: + type: + type: nullable + underlying_type: + type: array + element_type: + type: named + name: NdcPrometheusQueryTotalTimeSumLabel + min_over_time: + description: The minimum value of all points in the specified interval + type: + type: nullable + underlying_type: + type: named + name: RangeResolution + predict_linear: + description: Predicts the value of time series t seconds from now, based on the range vector v, using simple linear regression + type: + type: nullable + underlying_type: + type: named + name: PredictLinearInput + present_over_time: + description: The value 1 for any series in the specified interval + type: + type: nullable + underlying_type: + type: named + name: RangeResolution + quantile: + description: Calculate φ-quantile (0 ≤ φ ≤ 1) over dimensions + type: + type: nullable + underlying_type: + type: named + name: Float64 + quantile_over_time: + description: The φ-quantile (0 ≤ φ ≤ 1) of the values in the specified interval + type: + type: nullable + underlying_type: + type: named + name: QuantileOverTimeInput + rad: + description: Converts degrees to radians for all elements in v + type: + type: nullable + underlying_type: + type: named + name: Boolean + rate: + description: Calculates the per-second average rate of increase of the time series in the range vector + type: + type: nullable + underlying_type: + type: named + name: RangeResolution + resets: + description: Returns the number of counter resets within the provided time range as an instant vector + type: + type: nullable + underlying_type: + type: named + name: RangeResolution + round: + description: Rounds the sample values of all elements in v to the nearest integer + type: + type: nullable + underlying_type: + type: named + name: Float64 + scalar: + description: Returns the sample value of that single element as a scalar + type: + type: nullable + underlying_type: + type: named + name: Boolean + sgn: + description: 'Returns a vector with all sample values converted to their sign, defined as this: 1 if v is positive, -1 if v is negative and 0 if v is equal to zero' + type: + type: nullable + underlying_type: + type: named + name: Boolean + sin: + description: Calculates the sine of all elements in v + type: + type: nullable + underlying_type: + type: named + name: Boolean + sinh: + description: Calculates the hyperbolic sine of all elements in v + type: + type: nullable + underlying_type: + type: named + name: Boolean + sort: + description: Returns vector elements sorted by their sample values, in ascending order. Native histograms are sorted by their sum of observations + type: + type: nullable + underlying_type: + type: named + name: Boolean + sort_by_label: + description: Returns vector elements sorted by their label values and sample value in case of label values being equal, in ascending order + type: + type: nullable + underlying_type: + type: array + element_type: + type: named + name: NdcPrometheusQueryTotalTimeSumLabel + sort_by_label_desc: + description: Same as sort_by_label, but sorts in descending order + type: + type: nullable + underlying_type: + type: array + element_type: + type: named + name: NdcPrometheusQueryTotalTimeSumLabel + sort_desc: + description: Same as sort, but sorts in descending order + type: + type: nullable + underlying_type: + type: named + name: Boolean + sqrt: + description: Calculates the square root of all elements in v + type: + type: nullable + underlying_type: + type: named + name: Boolean + stddev: + type: + type: nullable + underlying_type: + type: array + element_type: + type: named + name: NdcPrometheusQueryTotalTimeSumLabel + stddev_over_time: + description: The population standard deviation of the values in the specified interval + type: + type: nullable + underlying_type: + type: named + name: RangeResolution + stdvar: + type: + type: nullable + underlying_type: + type: array + element_type: + type: named + name: NdcPrometheusQueryTotalTimeSumLabel + stdvar_over_time: + description: The population standard variance of the values in the specified interval + type: + type: nullable + underlying_type: + type: named + name: RangeResolution + sum: + type: + type: nullable + underlying_type: + type: array + element_type: + type: named + name: NdcPrometheusQueryTotalTimeSumLabel + sum_over_time: + description: The sum of all values in the specified interval + type: + type: nullable + underlying_type: + type: named + name: RangeResolution + tan: + description: Calculates the tangent of all elements in v + type: + type: nullable + underlying_type: + type: named + name: Boolean + tanh: + description: Calculates the hyperbolic tangent of all elements in v + type: + type: nullable + underlying_type: + type: named + name: Boolean + timestamp: + description: Returns the timestamp of each of the samples of the given vector as the number of seconds since January 1, 1970 UTC. It also works with histogram samples + type: + type: nullable + underlying_type: + type: named + name: Boolean + topk: + description: Largest k elements by sample value + type: + type: nullable + underlying_type: + type: named + name: Int64 + NdcPrometheusQueryTotalTimeSumLabelJoinInput: + description: Input arguments for the label_join function + fields: + dest_label: + description: The destination label name + type: + type: named + name: String + separator: + description: The separator between source labels + type: + type: named + name: String + source_labels: + description: Source labels + type: + type: array + element_type: + type: named + name: NdcPrometheusQueryTotalTimeSumLabel + NdcPrometheusQueryTotalTimeSumLabelReplaceInput: + description: Input arguments for the label_replace function + fields: + dest_label: + description: The destination label name + type: + type: named + name: String + regex: + description: The regular expression against the value of the source label + type: + type: named + name: String + replacement: + description: The replacement value + type: + type: named + name: String + source_label: + description: Source label + type: + type: named + name: NdcPrometheusQueryTotalTimeSumLabel + NetConntrackDialerConnAttemptedTotal: + fields: + instance: + type: + type: named + name: String + job: + type: + type: named + name: String + labels: + description: Labels of the metric + type: + type: named + name: LabelSet + timestamp: + description: An instant timestamp or the last timestamp of a range query result + type: + type: named + name: Timestamp + value: + description: Value of the instant query or the last value of a range query + type: + type: named + name: Decimal + values: + description: An array of query result values + type: + type: array + element_type: + type: named + name: QueryResultValue + NetConntrackDialerConnAttemptedTotalFunctions: + fields: + abs: + description: Returns the input vector with all sample values converted to their absolute value + type: + type: nullable + underlying_type: + type: named + name: Boolean + absent: + description: Returns an empty vector if the vector passed to it has any elements (floats or native histograms) and a 1-element vector with the value 1 if the vector passed to it has no elements + type: + type: nullable + underlying_type: + type: named + name: Boolean + absent_over_time: + description: Returns an empty vector if the range vector passed to it has any elements (floats or native histograms) and a 1-element vector with the value 1 if the range vector passed to it has no elements + type: + type: nullable + underlying_type: + type: named + name: RangeResolution + acos: + description: Calculates the arccosine of all elements in v + type: + type: nullable + underlying_type: + type: named + name: Boolean + acosh: + description: Calculates the inverse hyperbolic cosine of all elements in v + type: + type: nullable + underlying_type: + type: named + name: Boolean + asin: + description: Calculates the arcsine of all elements in v + type: + type: nullable + underlying_type: + type: named + name: Boolean + asinh: + description: Calculates the inverse hyperbolic sine of all elements in v + type: + type: nullable + underlying_type: + type: named + name: Boolean + atan: + description: Calculates the arctangent of all elements in v + type: + type: nullable + underlying_type: + type: named + name: Boolean + atanh: + description: Calculates the inverse hyperbolic tangent of all elements in v + type: + type: nullable + underlying_type: + type: named + name: Boolean + avg: + type: + type: nullable + underlying_type: + type: array + element_type: + type: named + name: NetConntrackDialerConnAttemptedTotalLabel + avg_over_time: + description: The average value of all points in the specified interval + type: + type: nullable + underlying_type: + type: named + name: RangeResolution + bottomk: + description: Smallest k elements by sample value + type: + type: nullable + underlying_type: + type: named + name: Int64 + ceil: + description: Rounds the sample values of all elements in v up to the nearest integer value greater than or equal to v + type: + type: nullable + underlying_type: + type: named + name: Boolean + changes: + description: Returns the number of times its value has changed within the provided time range as an instant vector + type: + type: nullable + underlying_type: + type: named + name: RangeResolution + clamp: + description: Clamps the sample values of all elements in v to have a lower limit of min and an upper limit of max + type: + type: nullable + underlying_type: + type: named + name: ValueBoundaryInput + clamp_max: + description: Clamps the sample values of all elements in v to have an upper limit of max + type: + type: nullable + underlying_type: + type: named + name: Float64 + clamp_min: + description: Clamps the sample values of all elements in v to have a lower limit of min + type: + type: nullable + underlying_type: + type: named + name: Float64 + cos: + description: Calculates the cosine of all elements in v + type: + type: nullable + underlying_type: + type: named + name: Boolean + cosh: + description: Calculates the hyperbolic cosine of all elements in v + type: + type: nullable + underlying_type: + type: named + name: Boolean + count: + type: + type: nullable + underlying_type: + type: array + element_type: + type: named + name: NetConntrackDialerConnAttemptedTotalLabel + count_over_time: + description: The count of all values in the specified interval + type: + type: nullable + underlying_type: + type: named + name: RangeResolution + count_values: + type: + type: nullable + underlying_type: + type: named + name: NetConntrackDialerConnAttemptedTotalLabel + deg: + description: Converts radians to degrees for all elements in v + type: + type: nullable + underlying_type: + type: named + name: Boolean + delta: + description: Calculates the difference between the first and last value of each time series element in a range vector v, returning an instant vector with the given deltas and equivalent labels + type: + type: nullable + underlying_type: + type: named + name: RangeResolution + deriv: + description: Calculates the per-second derivative of the time series in a range vector v, using simple linear regression + type: + type: nullable + underlying_type: + type: named + name: RangeResolution + exp: + description: Calculates the exponential function for all elements in v + type: + type: nullable + underlying_type: + type: named + name: Boolean + floor: + description: Rounds the sample values of all elements in v down to the nearest integer value smaller than or equal to v + type: + type: nullable + underlying_type: + type: named + name: Boolean + group: + type: + type: nullable + underlying_type: + type: array + element_type: + type: named + name: NetConntrackDialerConnAttemptedTotalLabel + histogram_avg: + description: Returns the arithmetic average of observed values stored in a native histogram. Samples that are not native histograms are ignored and do not show up in the returned vector + type: + type: nullable + underlying_type: + type: named + name: Boolean + histogram_count: + description: Returns the count of observations stored in a native histogram. Samples that are not native histograms are ignored and do not show up in the returned vector + type: + type: nullable + underlying_type: + type: named + name: Boolean + histogram_fraction: + description: Returns the estimated fraction of observations between the provided lower and upper values. Samples that are not native histograms are ignored and do not show up in the returned vector + type: + type: nullable + underlying_type: + type: named + name: ValueBoundaryInput + histogram_quantile: + description: Calculates the φ-quantile (0 ≤ φ ≤ 1) from a classic histogram or from a native histogram + type: + type: nullable + underlying_type: + type: named + name: Float64 + histogram_stddev: + description: Returns the estimated standard deviation of observations in a native histogram, based on the geometric mean of the buckets where the observations lie. Samples that are not native histograms are ignored and do not show up in the returned vector + type: + type: nullable + underlying_type: + type: named + name: Boolean + histogram_stdvar: + description: Returns the estimated standard variance of observations in a native histogram + type: + type: nullable + underlying_type: + type: named + name: Boolean + histogram_sum: + description: Returns the sum of observations stored in a native histogram + type: + type: nullable + underlying_type: + type: named + name: Boolean + holt_winters: + description: Produces a smoothed value for time series based on the range in v + type: + type: nullable + underlying_type: + type: named + name: HoltWintersInput + idelta: + description: Calculates the difference between the last two samples in the range vector v, returning an instant vector with the given deltas and equivalent labels + type: + type: nullable + underlying_type: + type: named + name: RangeResolution + increase: + description: Calculates the increase in the time series in the range vector. Breaks in monotonicity (such as counter resets due to target restarts) are automatically adjusted for + type: + type: nullable + underlying_type: + type: named + name: RangeResolution + irate: + description: Calculates the per-second instant rate of increase of the time series in the range vector. This is based on the last two data points + type: + type: nullable + underlying_type: + type: named + name: RangeResolution + label_join: + description: Joins all the values of all the src_labels using separator and returns the timeseries with the label dst_label containing the joined value + type: + type: nullable + underlying_type: + type: named + name: NetConntrackDialerConnAttemptedTotalLabelJoinInput + label_replace: + description: Matches the regular expression regex against the value of the label src_label. If it matches, the value of the label dst_label in the returned timeseries will be the expansion of replacement, together with the original labels in the input + type: + type: nullable + underlying_type: + type: named + name: NetConntrackDialerConnAttemptedTotalLabelReplaceInput + last_over_time: + description: The most recent point value in the specified interval + type: + type: nullable + underlying_type: + type: named + name: RangeResolution + limit_ratio: + description: "Sample elements with approximately \U0001D45F ratio if \U0001D45F > 0, and the complement of such samples if \U0001D45F = -(1.0 - \U0001D45F))" + type: + type: nullable + underlying_type: + type: named + name: Float64 + limitk: + description: Limit sample n elements + type: + type: nullable + underlying_type: + type: named + name: Int64 + ln: + description: Calculates the natural logarithm for all elements in v + type: + type: nullable + underlying_type: + type: named + name: Boolean + log2: + description: Calculates the binary logarithm for all elements in v + type: + type: nullable + underlying_type: + type: named + name: Boolean + log10: + description: Calculates the decimal logarithm for all elements in v + type: + type: nullable + underlying_type: + type: named + name: Boolean + mad_over_time: + description: The median absolute deviation of all points in the specified interval + type: + type: nullable + underlying_type: + type: named + name: RangeResolution + max: + type: + type: nullable + underlying_type: + type: array + element_type: + type: named + name: NetConntrackDialerConnAttemptedTotalLabel + max_over_time: + description: The maximum value of all points in the specified interval + type: + type: nullable + underlying_type: + type: named + name: RangeResolution + min: + type: + type: nullable + underlying_type: + type: array + element_type: + type: named + name: NetConntrackDialerConnAttemptedTotalLabel + min_over_time: + description: The minimum value of all points in the specified interval + type: + type: nullable + underlying_type: + type: named + name: RangeResolution + predict_linear: + description: Predicts the value of time series t seconds from now, based on the range vector v, using simple linear regression + type: + type: nullable + underlying_type: + type: named + name: PredictLinearInput + present_over_time: + description: The value 1 for any series in the specified interval + type: + type: nullable + underlying_type: + type: named + name: RangeResolution + quantile: + description: Calculate φ-quantile (0 ≤ φ ≤ 1) over dimensions + type: + type: nullable + underlying_type: + type: named + name: Float64 + quantile_over_time: + description: The φ-quantile (0 ≤ φ ≤ 1) of the values in the specified interval + type: + type: nullable + underlying_type: + type: named + name: QuantileOverTimeInput + rad: + description: Converts degrees to radians for all elements in v + type: + type: nullable + underlying_type: + type: named + name: Boolean + rate: + description: Calculates the per-second average rate of increase of the time series in the range vector + type: + type: nullable + underlying_type: + type: named + name: RangeResolution + resets: + description: Returns the number of counter resets within the provided time range as an instant vector + type: + type: nullable + underlying_type: + type: named + name: RangeResolution + round: + description: Rounds the sample values of all elements in v to the nearest integer + type: + type: nullable + underlying_type: + type: named + name: Float64 + scalar: + description: Returns the sample value of that single element as a scalar + type: + type: nullable + underlying_type: + type: named + name: Boolean + sgn: + description: 'Returns a vector with all sample values converted to their sign, defined as this: 1 if v is positive, -1 if v is negative and 0 if v is equal to zero' + type: + type: nullable + underlying_type: + type: named + name: Boolean + sin: + description: Calculates the sine of all elements in v + type: + type: nullable + underlying_type: + type: named + name: Boolean + sinh: + description: Calculates the hyperbolic sine of all elements in v + type: + type: nullable + underlying_type: + type: named + name: Boolean + sort: + description: Returns vector elements sorted by their sample values, in ascending order. Native histograms are sorted by their sum of observations + type: + type: nullable + underlying_type: + type: named + name: Boolean + sort_by_label: + description: Returns vector elements sorted by their label values and sample value in case of label values being equal, in ascending order + type: + type: nullable + underlying_type: + type: array + element_type: + type: named + name: NetConntrackDialerConnAttemptedTotalLabel + sort_by_label_desc: + description: Same as sort_by_label, but sorts in descending order + type: + type: nullable + underlying_type: + type: array + element_type: + type: named + name: NetConntrackDialerConnAttemptedTotalLabel + sort_desc: + description: Same as sort, but sorts in descending order + type: + type: nullable + underlying_type: + type: named + name: Boolean + sqrt: + description: Calculates the square root of all elements in v + type: + type: nullable + underlying_type: + type: named + name: Boolean + stddev: + type: + type: nullable + underlying_type: + type: array + element_type: + type: named + name: NetConntrackDialerConnAttemptedTotalLabel + stddev_over_time: + description: The population standard deviation of the values in the specified interval + type: + type: nullable + underlying_type: + type: named + name: RangeResolution + stdvar: + type: + type: nullable + underlying_type: + type: array + element_type: + type: named + name: NetConntrackDialerConnAttemptedTotalLabel + stdvar_over_time: + description: The population standard variance of the values in the specified interval + type: + type: nullable + underlying_type: + type: named + name: RangeResolution + sum: + type: + type: nullable + underlying_type: + type: array + element_type: + type: named + name: NetConntrackDialerConnAttemptedTotalLabel + sum_over_time: + description: The sum of all values in the specified interval + type: + type: nullable + underlying_type: + type: named + name: RangeResolution + tan: + description: Calculates the tangent of all elements in v + type: + type: nullable + underlying_type: + type: named + name: Boolean + tanh: + description: Calculates the hyperbolic tangent of all elements in v + type: + type: nullable + underlying_type: + type: named + name: Boolean + timestamp: + description: Returns the timestamp of each of the samples of the given vector as the number of seconds since January 1, 1970 UTC. It also works with histogram samples + type: + type: nullable + underlying_type: + type: named + name: Boolean + topk: + description: Largest k elements by sample value + type: + type: nullable + underlying_type: + type: named + name: Int64 + NetConntrackDialerConnAttemptedTotalLabelJoinInput: + description: Input arguments for the label_join function + fields: + dest_label: + description: The destination label name + type: + type: named + name: String + separator: + description: The separator between source labels + type: + type: named + name: String + source_labels: + description: Source labels + type: + type: array + element_type: + type: named + name: NetConntrackDialerConnAttemptedTotalLabel + NetConntrackDialerConnAttemptedTotalLabelReplaceInput: + description: Input arguments for the label_replace function + fields: + dest_label: + description: The destination label name + type: + type: named + name: String + regex: + description: The regular expression against the value of the source label + type: + type: named + name: String + replacement: + description: The replacement value + type: + type: named + name: String + source_label: + description: Source label + type: + type: named + name: NetConntrackDialerConnAttemptedTotalLabel + NetConntrackDialerConnClosedTotal: + fields: + instance: + type: + type: named + name: String + job: + type: + type: named + name: String + labels: + description: Labels of the metric + type: + type: named + name: LabelSet + timestamp: + description: An instant timestamp or the last timestamp of a range query result + type: + type: named + name: Timestamp + value: + description: Value of the instant query or the last value of a range query + type: + type: named + name: Decimal + values: + description: An array of query result values + type: + type: array + element_type: + type: named + name: QueryResultValue + NetConntrackDialerConnClosedTotalFunctions: + fields: + abs: + description: Returns the input vector with all sample values converted to their absolute value + type: + type: nullable + underlying_type: + type: named + name: Boolean + absent: + description: Returns an empty vector if the vector passed to it has any elements (floats or native histograms) and a 1-element vector with the value 1 if the vector passed to it has no elements + type: + type: nullable + underlying_type: + type: named + name: Boolean + absent_over_time: + description: Returns an empty vector if the range vector passed to it has any elements (floats or native histograms) and a 1-element vector with the value 1 if the range vector passed to it has no elements + type: + type: nullable + underlying_type: + type: named + name: RangeResolution + acos: + description: Calculates the arccosine of all elements in v + type: + type: nullable + underlying_type: + type: named + name: Boolean + acosh: + description: Calculates the inverse hyperbolic cosine of all elements in v + type: + type: nullable + underlying_type: + type: named + name: Boolean + asin: + description: Calculates the arcsine of all elements in v + type: + type: nullable + underlying_type: + type: named + name: Boolean + asinh: + description: Calculates the inverse hyperbolic sine of all elements in v + type: + type: nullable + underlying_type: + type: named + name: Boolean + atan: + description: Calculates the arctangent of all elements in v + type: + type: nullable + underlying_type: + type: named + name: Boolean + atanh: + description: Calculates the inverse hyperbolic tangent of all elements in v + type: + type: nullable + underlying_type: + type: named + name: Boolean + avg: + type: + type: nullable + underlying_type: + type: array + element_type: + type: named + name: NetConntrackDialerConnClosedTotalLabel + avg_over_time: + description: The average value of all points in the specified interval + type: + type: nullable + underlying_type: + type: named + name: RangeResolution + bottomk: + description: Smallest k elements by sample value + type: + type: nullable + underlying_type: + type: named + name: Int64 + ceil: + description: Rounds the sample values of all elements in v up to the nearest integer value greater than or equal to v + type: + type: nullable + underlying_type: + type: named + name: Boolean + changes: + description: Returns the number of times its value has changed within the provided time range as an instant vector + type: + type: nullable + underlying_type: + type: named + name: RangeResolution + clamp: + description: Clamps the sample values of all elements in v to have a lower limit of min and an upper limit of max + type: + type: nullable + underlying_type: + type: named + name: ValueBoundaryInput + clamp_max: + description: Clamps the sample values of all elements in v to have an upper limit of max + type: + type: nullable + underlying_type: + type: named + name: Float64 + clamp_min: + description: Clamps the sample values of all elements in v to have a lower limit of min + type: + type: nullable + underlying_type: + type: named + name: Float64 + cos: + description: Calculates the cosine of all elements in v + type: + type: nullable + underlying_type: + type: named + name: Boolean + cosh: + description: Calculates the hyperbolic cosine of all elements in v + type: + type: nullable + underlying_type: + type: named + name: Boolean + count: + type: + type: nullable + underlying_type: + type: array + element_type: + type: named + name: NetConntrackDialerConnClosedTotalLabel + count_over_time: + description: The count of all values in the specified interval + type: + type: nullable + underlying_type: + type: named + name: RangeResolution + count_values: + type: + type: nullable + underlying_type: + type: named + name: NetConntrackDialerConnClosedTotalLabel + deg: + description: Converts radians to degrees for all elements in v + type: + type: nullable + underlying_type: + type: named + name: Boolean + delta: + description: Calculates the difference between the first and last value of each time series element in a range vector v, returning an instant vector with the given deltas and equivalent labels + type: + type: nullable + underlying_type: + type: named + name: RangeResolution + deriv: + description: Calculates the per-second derivative of the time series in a range vector v, using simple linear regression + type: + type: nullable + underlying_type: + type: named + name: RangeResolution + exp: + description: Calculates the exponential function for all elements in v + type: + type: nullable + underlying_type: + type: named + name: Boolean + floor: + description: Rounds the sample values of all elements in v down to the nearest integer value smaller than or equal to v + type: + type: nullable + underlying_type: + type: named + name: Boolean + group: + type: + type: nullable + underlying_type: + type: array + element_type: + type: named + name: NetConntrackDialerConnClosedTotalLabel + histogram_avg: + description: Returns the arithmetic average of observed values stored in a native histogram. Samples that are not native histograms are ignored and do not show up in the returned vector + type: + type: nullable + underlying_type: + type: named + name: Boolean + histogram_count: + description: Returns the count of observations stored in a native histogram. Samples that are not native histograms are ignored and do not show up in the returned vector + type: + type: nullable + underlying_type: + type: named + name: Boolean + histogram_fraction: + description: Returns the estimated fraction of observations between the provided lower and upper values. Samples that are not native histograms are ignored and do not show up in the returned vector + type: + type: nullable + underlying_type: + type: named + name: ValueBoundaryInput + histogram_quantile: + description: Calculates the φ-quantile (0 ≤ φ ≤ 1) from a classic histogram or from a native histogram + type: + type: nullable + underlying_type: + type: named + name: Float64 + histogram_stddev: + description: Returns the estimated standard deviation of observations in a native histogram, based on the geometric mean of the buckets where the observations lie. Samples that are not native histograms are ignored and do not show up in the returned vector + type: + type: nullable + underlying_type: + type: named + name: Boolean + histogram_stdvar: + description: Returns the estimated standard variance of observations in a native histogram + type: + type: nullable + underlying_type: + type: named + name: Boolean + histogram_sum: + description: Returns the sum of observations stored in a native histogram + type: + type: nullable + underlying_type: + type: named + name: Boolean + holt_winters: + description: Produces a smoothed value for time series based on the range in v + type: + type: nullable + underlying_type: + type: named + name: HoltWintersInput + idelta: + description: Calculates the difference between the last two samples in the range vector v, returning an instant vector with the given deltas and equivalent labels + type: + type: nullable + underlying_type: + type: named + name: RangeResolution + increase: + description: Calculates the increase in the time series in the range vector. Breaks in monotonicity (such as counter resets due to target restarts) are automatically adjusted for + type: + type: nullable + underlying_type: + type: named + name: RangeResolution + irate: + description: Calculates the per-second instant rate of increase of the time series in the range vector. This is based on the last two data points + type: + type: nullable + underlying_type: + type: named + name: RangeResolution + label_join: + description: Joins all the values of all the src_labels using separator and returns the timeseries with the label dst_label containing the joined value + type: + type: nullable + underlying_type: + type: named + name: NetConntrackDialerConnClosedTotalLabelJoinInput + label_replace: + description: Matches the regular expression regex against the value of the label src_label. If it matches, the value of the label dst_label in the returned timeseries will be the expansion of replacement, together with the original labels in the input + type: + type: nullable + underlying_type: + type: named + name: NetConntrackDialerConnClosedTotalLabelReplaceInput + last_over_time: + description: The most recent point value in the specified interval + type: + type: nullable + underlying_type: + type: named + name: RangeResolution + limit_ratio: + description: "Sample elements with approximately \U0001D45F ratio if \U0001D45F > 0, and the complement of such samples if \U0001D45F = -(1.0 - \U0001D45F))" + type: + type: nullable + underlying_type: + type: named + name: Float64 + limitk: + description: Limit sample n elements + type: + type: nullable + underlying_type: + type: named + name: Int64 + ln: + description: Calculates the natural logarithm for all elements in v + type: + type: nullable + underlying_type: + type: named + name: Boolean + log2: + description: Calculates the binary logarithm for all elements in v + type: + type: nullable + underlying_type: + type: named + name: Boolean + log10: + description: Calculates the decimal logarithm for all elements in v + type: + type: nullable + underlying_type: + type: named + name: Boolean + mad_over_time: + description: The median absolute deviation of all points in the specified interval + type: + type: nullable + underlying_type: + type: named + name: RangeResolution + max: + type: + type: nullable + underlying_type: + type: array + element_type: + type: named + name: NetConntrackDialerConnClosedTotalLabel + max_over_time: + description: The maximum value of all points in the specified interval + type: + type: nullable + underlying_type: + type: named + name: RangeResolution + min: + type: + type: nullable + underlying_type: + type: array + element_type: + type: named + name: NetConntrackDialerConnClosedTotalLabel + min_over_time: + description: The minimum value of all points in the specified interval + type: + type: nullable + underlying_type: + type: named + name: RangeResolution + predict_linear: + description: Predicts the value of time series t seconds from now, based on the range vector v, using simple linear regression + type: + type: nullable + underlying_type: + type: named + name: PredictLinearInput + present_over_time: + description: The value 1 for any series in the specified interval + type: + type: nullable + underlying_type: + type: named + name: RangeResolution + quantile: + description: Calculate φ-quantile (0 ≤ φ ≤ 1) over dimensions + type: + type: nullable + underlying_type: + type: named + name: Float64 + quantile_over_time: + description: The φ-quantile (0 ≤ φ ≤ 1) of the values in the specified interval + type: + type: nullable + underlying_type: + type: named + name: QuantileOverTimeInput + rad: + description: Converts degrees to radians for all elements in v + type: + type: nullable + underlying_type: + type: named + name: Boolean + rate: + description: Calculates the per-second average rate of increase of the time series in the range vector + type: + type: nullable + underlying_type: + type: named + name: RangeResolution + resets: + description: Returns the number of counter resets within the provided time range as an instant vector + type: + type: nullable + underlying_type: + type: named + name: RangeResolution + round: + description: Rounds the sample values of all elements in v to the nearest integer + type: + type: nullable + underlying_type: + type: named + name: Float64 + scalar: + description: Returns the sample value of that single element as a scalar + type: + type: nullable + underlying_type: + type: named + name: Boolean + sgn: + description: 'Returns a vector with all sample values converted to their sign, defined as this: 1 if v is positive, -1 if v is negative and 0 if v is equal to zero' + type: + type: nullable + underlying_type: + type: named + name: Boolean + sin: + description: Calculates the sine of all elements in v + type: + type: nullable + underlying_type: + type: named + name: Boolean + sinh: + description: Calculates the hyperbolic sine of all elements in v + type: + type: nullable + underlying_type: + type: named + name: Boolean + sort: + description: Returns vector elements sorted by their sample values, in ascending order. Native histograms are sorted by their sum of observations + type: + type: nullable + underlying_type: + type: named + name: Boolean + sort_by_label: + description: Returns vector elements sorted by their label values and sample value in case of label values being equal, in ascending order + type: + type: nullable + underlying_type: + type: array + element_type: + type: named + name: NetConntrackDialerConnClosedTotalLabel + sort_by_label_desc: + description: Same as sort_by_label, but sorts in descending order + type: + type: nullable + underlying_type: + type: array + element_type: + type: named + name: NetConntrackDialerConnClosedTotalLabel + sort_desc: + description: Same as sort, but sorts in descending order + type: + type: nullable + underlying_type: + type: named + name: Boolean + sqrt: + description: Calculates the square root of all elements in v + type: + type: nullable + underlying_type: + type: named + name: Boolean + stddev: + type: + type: nullable + underlying_type: + type: array + element_type: + type: named + name: NetConntrackDialerConnClosedTotalLabel + stddev_over_time: + description: The population standard deviation of the values in the specified interval + type: + type: nullable + underlying_type: + type: named + name: RangeResolution + stdvar: + type: + type: nullable + underlying_type: + type: array + element_type: + type: named + name: NetConntrackDialerConnClosedTotalLabel + stdvar_over_time: + description: The population standard variance of the values in the specified interval + type: + type: nullable + underlying_type: + type: named + name: RangeResolution + sum: + type: + type: nullable + underlying_type: + type: array + element_type: + type: named + name: NetConntrackDialerConnClosedTotalLabel + sum_over_time: + description: The sum of all values in the specified interval + type: + type: nullable + underlying_type: + type: named + name: RangeResolution + tan: + description: Calculates the tangent of all elements in v + type: + type: nullable + underlying_type: + type: named + name: Boolean + tanh: + description: Calculates the hyperbolic tangent of all elements in v + type: + type: nullable + underlying_type: + type: named + name: Boolean + timestamp: + description: Returns the timestamp of each of the samples of the given vector as the number of seconds since January 1, 1970 UTC. It also works with histogram samples + type: + type: nullable + underlying_type: + type: named + name: Boolean + topk: + description: Largest k elements by sample value + type: + type: nullable + underlying_type: + type: named + name: Int64 + NetConntrackDialerConnClosedTotalLabelJoinInput: + description: Input arguments for the label_join function + fields: + dest_label: + description: The destination label name + type: + type: named + name: String + separator: + description: The separator between source labels + type: + type: named + name: String + source_labels: + description: Source labels + type: + type: array + element_type: + type: named + name: NetConntrackDialerConnClosedTotalLabel + NetConntrackDialerConnClosedTotalLabelReplaceInput: + description: Input arguments for the label_replace function + fields: + dest_label: + description: The destination label name + type: + type: named + name: String + regex: + description: The regular expression against the value of the source label + type: + type: named + name: String + replacement: + description: The replacement value + type: + type: named + name: String + source_label: + description: Source label + type: + type: named + name: NetConntrackDialerConnClosedTotalLabel + NetConntrackDialerConnEstablishedTotal: fields: instance: type: @@ -1090,7 +4326,7 @@ definition: element_type: type: named name: QueryResultValue - NetConntrackDialerConnClosedTotalFunctions: + NetConntrackDialerConnEstablishedTotalFunctions: fields: abs: description: Returns the input vector with all sample values converted to their absolute value @@ -1162,7 +4398,7 @@ definition: type: array element_type: type: named - name: NetConntrackDialerConnClosedTotalLabel + name: NetConntrackDialerConnEstablishedTotalLabel avg_over_time: description: The average value of all points in the specified interval type: @@ -1233,7 +4469,7 @@ definition: type: array element_type: type: named - name: NetConntrackDialerConnClosedTotalLabel + name: NetConntrackDialerConnEstablishedTotalLabel count_over_time: description: The count of all values in the specified interval type: @@ -1246,7 +4482,7 @@ definition: type: nullable underlying_type: type: named - name: NetConntrackDialerConnClosedTotalLabel + name: NetConntrackDialerConnEstablishedTotalLabel deg: description: Converts radians to degrees for all elements in v type: @@ -1289,7 +4525,7 @@ definition: type: array element_type: type: named - name: NetConntrackDialerConnClosedTotalLabel + name: NetConntrackDialerConnEstablishedTotalLabel histogram_avg: description: Returns the arithmetic average of observed values stored in a native histogram. Samples that are not native histograms are ignored and do not show up in the returned vector type: @@ -1373,14 +4609,14 @@ definition: type: nullable underlying_type: type: named - name: NetConntrackDialerConnClosedTotalLabelJoinInput + name: NetConntrackDialerConnEstablishedTotalLabelJoinInput label_replace: description: Matches the regular expression regex against the value of the label src_label. If it matches, the value of the label dst_label in the returned timeseries will be the expansion of replacement, together with the original labels in the input type: type: nullable underlying_type: type: named - name: NetConntrackDialerConnClosedTotalLabelReplaceInput + name: NetConntrackDialerConnEstablishedTotalLabelReplaceInput last_over_time: description: The most recent point value in the specified interval type: @@ -1437,7 +4673,7 @@ definition: type: array element_type: type: named - name: NetConntrackDialerConnClosedTotalLabel + name: NetConntrackDialerConnEstablishedTotalLabel max_over_time: description: The maximum value of all points in the specified interval type: @@ -1452,7 +4688,7 @@ definition: type: array element_type: type: named - name: NetConntrackDialerConnClosedTotalLabel + name: NetConntrackDialerConnEstablishedTotalLabel min_over_time: description: The minimum value of all points in the specified interval type: @@ -1559,7 +4795,7 @@ definition: type: array element_type: type: named - name: NetConntrackDialerConnClosedTotalLabel + name: NetConntrackDialerConnEstablishedTotalLabel sort_by_label_desc: description: Same as sort_by_label, but sorts in descending order type: @@ -1568,7 +4804,7 @@ definition: type: array element_type: type: named - name: NetConntrackDialerConnClosedTotalLabel + name: NetConntrackDialerConnEstablishedTotalLabel sort_desc: description: Same as sort, but sorts in descending order type: @@ -1590,7 +4826,7 @@ definition: type: array element_type: type: named - name: NetConntrackDialerConnClosedTotalLabel + name: NetConntrackDialerConnEstablishedTotalLabel stddev_over_time: description: The population standard deviation of the values in the specified interval type: @@ -1605,7 +4841,7 @@ definition: type: array element_type: type: named - name: NetConntrackDialerConnClosedTotalLabel + name: NetConntrackDialerConnEstablishedTotalLabel stdvar_over_time: description: The population standard variance of the values in the specified interval type: @@ -1620,7 +4856,7 @@ definition: type: array element_type: type: named - name: NetConntrackDialerConnClosedTotalLabel + name: NetConntrackDialerConnEstablishedTotalLabel sum_over_time: description: The sum of all values in the specified interval type: @@ -1656,7 +4892,7 @@ definition: underlying_type: type: named name: Int64 - NetConntrackDialerConnClosedTotalLabelJoinInput: + NetConntrackDialerConnEstablishedTotalLabelJoinInput: description: Input arguments for the label_join function fields: dest_label: @@ -1675,8 +4911,8 @@ definition: type: array element_type: type: named - name: NetConntrackDialerConnClosedTotalLabel - NetConntrackDialerConnClosedTotalLabelReplaceInput: + name: NetConntrackDialerConnEstablishedTotalLabel + NetConntrackDialerConnEstablishedTotalLabelReplaceInput: description: Input arguments for the label_replace function fields: dest_label: @@ -1698,8 +4934,8 @@ definition: description: Source label type: type: named - name: NetConntrackDialerConnClosedTotalLabel - NetConntrackDialerConnEstablishedTotal: + name: NetConntrackDialerConnEstablishedTotalLabel + NetConntrackDialerConnFailedTotal: fields: instance: type: @@ -1714,6 +4950,10 @@ definition: type: type: named name: LabelSet + reason: + type: + type: named + name: String timestamp: description: An instant timestamp or the last timestamp of a range query result type: @@ -1731,7 +4971,7 @@ definition: element_type: type: named name: QueryResultValue - NetConntrackDialerConnEstablishedTotalFunctions: + NetConntrackDialerConnFailedTotalFunctions: fields: abs: description: Returns the input vector with all sample values converted to their absolute value @@ -1803,7 +5043,7 @@ definition: type: array element_type: type: named - name: NetConntrackDialerConnEstablishedTotalLabel + name: NetConntrackDialerConnFailedTotalLabel avg_over_time: description: The average value of all points in the specified interval type: @@ -1874,7 +5114,7 @@ definition: type: array element_type: type: named - name: NetConntrackDialerConnEstablishedTotalLabel + name: NetConntrackDialerConnFailedTotalLabel count_over_time: description: The count of all values in the specified interval type: @@ -1887,7 +5127,7 @@ definition: type: nullable underlying_type: type: named - name: NetConntrackDialerConnEstablishedTotalLabel + name: NetConntrackDialerConnFailedTotalLabel deg: description: Converts radians to degrees for all elements in v type: @@ -1930,7 +5170,7 @@ definition: type: array element_type: type: named - name: NetConntrackDialerConnEstablishedTotalLabel + name: NetConntrackDialerConnFailedTotalLabel histogram_avg: description: Returns the arithmetic average of observed values stored in a native histogram. Samples that are not native histograms are ignored and do not show up in the returned vector type: @@ -2014,14 +5254,14 @@ definition: type: nullable underlying_type: type: named - name: NetConntrackDialerConnEstablishedTotalLabelJoinInput + name: NetConntrackDialerConnFailedTotalLabelJoinInput label_replace: description: Matches the regular expression regex against the value of the label src_label. If it matches, the value of the label dst_label in the returned timeseries will be the expansion of replacement, together with the original labels in the input type: type: nullable underlying_type: type: named - name: NetConntrackDialerConnEstablishedTotalLabelReplaceInput + name: NetConntrackDialerConnFailedTotalLabelReplaceInput last_over_time: description: The most recent point value in the specified interval type: @@ -2078,7 +5318,7 @@ definition: type: array element_type: type: named - name: NetConntrackDialerConnEstablishedTotalLabel + name: NetConntrackDialerConnFailedTotalLabel max_over_time: description: The maximum value of all points in the specified interval type: @@ -2093,7 +5333,7 @@ definition: type: array element_type: type: named - name: NetConntrackDialerConnEstablishedTotalLabel + name: NetConntrackDialerConnFailedTotalLabel min_over_time: description: The minimum value of all points in the specified interval type: @@ -2200,7 +5440,7 @@ definition: type: array element_type: type: named - name: NetConntrackDialerConnEstablishedTotalLabel + name: NetConntrackDialerConnFailedTotalLabel sort_by_label_desc: description: Same as sort_by_label, but sorts in descending order type: @@ -2209,7 +5449,7 @@ definition: type: array element_type: type: named - name: NetConntrackDialerConnEstablishedTotalLabel + name: NetConntrackDialerConnFailedTotalLabel sort_desc: description: Same as sort, but sorts in descending order type: @@ -2231,7 +5471,7 @@ definition: type: array element_type: type: named - name: NetConntrackDialerConnEstablishedTotalLabel + name: NetConntrackDialerConnFailedTotalLabel stddev_over_time: description: The population standard deviation of the values in the specified interval type: @@ -2246,7 +5486,7 @@ definition: type: array element_type: type: named - name: NetConntrackDialerConnEstablishedTotalLabel + name: NetConntrackDialerConnFailedTotalLabel stdvar_over_time: description: The population standard variance of the values in the specified interval type: @@ -2261,7 +5501,7 @@ definition: type: array element_type: type: named - name: NetConntrackDialerConnEstablishedTotalLabel + name: NetConntrackDialerConnFailedTotalLabel sum_over_time: description: The sum of all values in the specified interval type: @@ -2297,7 +5537,7 @@ definition: underlying_type: type: named name: Int64 - NetConntrackDialerConnEstablishedTotalLabelJoinInput: + NetConntrackDialerConnFailedTotalLabelJoinInput: description: Input arguments for the label_join function fields: dest_label: @@ -2316,8 +5556,8 @@ definition: type: array element_type: type: named - name: NetConntrackDialerConnEstablishedTotalLabel - NetConntrackDialerConnEstablishedTotalLabelReplaceInput: + name: NetConntrackDialerConnFailedTotalLabel + NetConntrackDialerConnFailedTotalLabelReplaceInput: description: Input arguments for the label_replace function fields: dest_label: @@ -2339,8 +5579,8 @@ definition: description: Source label type: type: named - name: NetConntrackDialerConnEstablishedTotalLabel - NetConntrackDialerConnFailedTotal: + name: NetConntrackDialerConnFailedTotalLabel + OtelScopeInfo: fields: instance: type: @@ -2355,7 +5595,7 @@ definition: type: type: named name: LabelSet - reason: + otel_scope_name: type: type: named name: String @@ -2376,7 +5616,7 @@ definition: element_type: type: named name: QueryResultValue - NetConntrackDialerConnFailedTotalFunctions: + OtelScopeInfoFunctions: fields: abs: description: Returns the input vector with all sample values converted to their absolute value @@ -2448,7 +5688,7 @@ definition: type: array element_type: type: named - name: NetConntrackDialerConnFailedTotalLabel + name: OtelScopeInfoLabel avg_over_time: description: The average value of all points in the specified interval type: @@ -2519,7 +5759,7 @@ definition: type: array element_type: type: named - name: NetConntrackDialerConnFailedTotalLabel + name: OtelScopeInfoLabel count_over_time: description: The count of all values in the specified interval type: @@ -2532,7 +5772,7 @@ definition: type: nullable underlying_type: type: named - name: NetConntrackDialerConnFailedTotalLabel + name: OtelScopeInfoLabel deg: description: Converts radians to degrees for all elements in v type: @@ -2575,7 +5815,7 @@ definition: type: array element_type: type: named - name: NetConntrackDialerConnFailedTotalLabel + name: OtelScopeInfoLabel histogram_avg: description: Returns the arithmetic average of observed values stored in a native histogram. Samples that are not native histograms are ignored and do not show up in the returned vector type: @@ -2659,14 +5899,14 @@ definition: type: nullable underlying_type: type: named - name: NetConntrackDialerConnFailedTotalLabelJoinInput + name: OtelScopeInfoLabelJoinInput label_replace: description: Matches the regular expression regex against the value of the label src_label. If it matches, the value of the label dst_label in the returned timeseries will be the expansion of replacement, together with the original labels in the input type: type: nullable underlying_type: type: named - name: NetConntrackDialerConnFailedTotalLabelReplaceInput + name: OtelScopeInfoLabelReplaceInput last_over_time: description: The most recent point value in the specified interval type: @@ -2723,7 +5963,7 @@ definition: type: array element_type: type: named - name: NetConntrackDialerConnFailedTotalLabel + name: OtelScopeInfoLabel max_over_time: description: The maximum value of all points in the specified interval type: @@ -2738,7 +5978,7 @@ definition: type: array element_type: type: named - name: NetConntrackDialerConnFailedTotalLabel + name: OtelScopeInfoLabel min_over_time: description: The minimum value of all points in the specified interval type: @@ -2845,7 +6085,7 @@ definition: type: array element_type: type: named - name: NetConntrackDialerConnFailedTotalLabel + name: OtelScopeInfoLabel sort_by_label_desc: description: Same as sort_by_label, but sorts in descending order type: @@ -2854,7 +6094,7 @@ definition: type: array element_type: type: named - name: NetConntrackDialerConnFailedTotalLabel + name: OtelScopeInfoLabel sort_desc: description: Same as sort, but sorts in descending order type: @@ -2876,7 +6116,7 @@ definition: type: array element_type: type: named - name: NetConntrackDialerConnFailedTotalLabel + name: OtelScopeInfoLabel stddev_over_time: description: The population standard deviation of the values in the specified interval type: @@ -2891,7 +6131,7 @@ definition: type: array element_type: type: named - name: NetConntrackDialerConnFailedTotalLabel + name: OtelScopeInfoLabel stdvar_over_time: description: The population standard variance of the values in the specified interval type: @@ -2906,7 +6146,7 @@ definition: type: array element_type: type: named - name: NetConntrackDialerConnFailedTotalLabel + name: OtelScopeInfoLabel sum_over_time: description: The sum of all values in the specified interval type: @@ -2942,7 +6182,7 @@ definition: underlying_type: type: named name: Int64 - NetConntrackDialerConnFailedTotalLabelJoinInput: + OtelScopeInfoLabelJoinInput: description: Input arguments for the label_join function fields: dest_label: @@ -2961,8 +6201,8 @@ definition: type: array element_type: type: named - name: NetConntrackDialerConnFailedTotalLabel - NetConntrackDialerConnFailedTotalLabelReplaceInput: + name: OtelScopeInfoLabel + OtelScopeInfoLabelReplaceInput: description: Input arguments for the label_replace function fields: dest_label: @@ -2984,7 +6224,7 @@ definition: description: Source label type: type: named - name: NetConntrackDialerConnFailedTotalLabel + name: OtelScopeInfoLabel PredictLinearInput: description: Input arguments for the predict_linear function fields: @@ -11525,6 +14765,150 @@ definition: type: named name: Float64 collections: + - name: ndc_prometheus_query_total + description: Total number of query requests + arguments: + fn: + description: PromQL aggregation operators and functions for ndc_prometheus_query_total + type: + type: nullable + underlying_type: + type: array + element_type: + type: named + name: NdcPrometheusQueryTotalFunctions + offset: + description: The offset modifier allows changing the time offset for individual instant and range vectors in a query. + type: + type: nullable + underlying_type: + type: named + name: Duration + step: + description: Query resolution step width in duration format or float number of seconds. + type: + type: nullable + underlying_type: + type: named + name: Duration + timeout: + description: Evaluation timeout + type: + type: nullable + underlying_type: + type: named + name: Duration + type: NdcPrometheusQueryTotal + uniqueness_constraints: {} + foreign_keys: {} + - name: ndc_prometheus_query_total_time_bucket + description: Total time taken to plan and execute a query, in seconds + arguments: + fn: + description: PromQL aggregation operators and functions for ndc_prometheus_query_total_time_bucket + type: + type: nullable + underlying_type: + type: array + element_type: + type: named + name: NdcPrometheusQueryTotalTimeBucketFunctions + offset: + description: The offset modifier allows changing the time offset for individual instant and range vectors in a query. + type: + type: nullable + underlying_type: + type: named + name: Duration + step: + description: Query resolution step width in duration format or float number of seconds. + type: + type: nullable + underlying_type: + type: named + name: Duration + timeout: + description: Evaluation timeout + type: + type: nullable + underlying_type: + type: named + name: Duration + type: NdcPrometheusQueryTotalTimeBucket + uniqueness_constraints: {} + foreign_keys: {} + - name: ndc_prometheus_query_total_time_count + description: Total time taken to plan and execute a query, in seconds + arguments: + fn: + description: PromQL aggregation operators and functions for ndc_prometheus_query_total_time_count + type: + type: nullable + underlying_type: + type: array + element_type: + type: named + name: NdcPrometheusQueryTotalTimeCountFunctions + offset: + description: The offset modifier allows changing the time offset for individual instant and range vectors in a query. + type: + type: nullable + underlying_type: + type: named + name: Duration + step: + description: Query resolution step width in duration format or float number of seconds. + type: + type: nullable + underlying_type: + type: named + name: Duration + timeout: + description: Evaluation timeout + type: + type: nullable + underlying_type: + type: named + name: Duration + type: NdcPrometheusQueryTotalTimeCount + uniqueness_constraints: {} + foreign_keys: {} + - name: ndc_prometheus_query_total_time_sum + description: Total time taken to plan and execute a query, in seconds + arguments: + fn: + description: PromQL aggregation operators and functions for ndc_prometheus_query_total_time_sum + type: + type: nullable + underlying_type: + type: array + element_type: + type: named + name: NdcPrometheusQueryTotalTimeSumFunctions + offset: + description: The offset modifier allows changing the time offset for individual instant and range vectors in a query. + type: + type: nullable + underlying_type: + type: named + name: Duration + step: + description: Query resolution step width in duration format or float number of seconds. + type: + type: nullable + underlying_type: + type: named + name: Duration + timeout: + description: Evaluation timeout + type: + type: nullable + underlying_type: + type: named + name: Duration + type: NdcPrometheusQueryTotalTimeSum + uniqueness_constraints: {} + foreign_keys: {} - name: net_conntrack_dialer_conn_attempted_total description: Total number of connections attempted by the given dialer a given name. arguments: @@ -11669,6 +15053,42 @@ definition: type: NetConntrackDialerConnFailedTotal uniqueness_constraints: {} foreign_keys: {} + - name: otel_scope_info + description: Instrumentation Scope metadata + arguments: + fn: + description: PromQL aggregation operators and functions for otel_scope_info + type: + type: nullable + underlying_type: + type: array + element_type: + type: named + name: OtelScopeInfoFunctions + offset: + description: The offset modifier allows changing the time offset for individual instant and range vectors in a query. + type: + type: nullable + underlying_type: + type: named + name: Duration + step: + description: Query resolution step width in duration format or float number of seconds. + type: + type: nullable + underlying_type: + type: named + name: Duration + timeout: + description: Evaluation timeout + type: + type: nullable + underlying_type: + type: named + name: Duration + type: OtelScopeInfo + uniqueness_constraints: {} + foreign_keys: {} - name: process_cpu_seconds_total description: Total user and system CPU time spent in seconds. arguments: