diff --git a/Makefile b/Makefile index 52bd25f..ac8d2ab 100644 --- a/Makefile +++ b/Makefile @@ -22,7 +22,7 @@ clean: .PHONY: build-configuration build-configuration: - go build -o _output/ndc-prometheus-configuration . + go build -o _output/ndc-prometheus ./configuration .PHONY: build-jsonschema build-jsonschema: diff --git a/configuration/update.go b/configuration/update.go index 364ea3f..b6d13f1 100644 --- a/configuration/update.go +++ b/configuration/update.go @@ -23,17 +23,23 @@ import ( var clientTracer = otel.Tracer("PrometheusClient") var bannedLabels = []string{"__name__"} +type ExcludeLabels struct { + Regex *regexp.Regexp + Labels []string +} + type updateCommand struct { - Client *client.Client - OutputDir string - Config *metadata.Configuration - Include []*regexp.Regexp - Exclude []*regexp.Regexp + Client *client.Client + OutputDir string + Config *metadata.Configuration + Include []*regexp.Regexp + Exclude []*regexp.Regexp + ExcludeLabels []ExcludeLabels } 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) { @@ -56,6 +62,24 @@ 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 + } + rg, err := regexp.Compile(el.Pattern) + if err != nil { + return fmt.Errorf("invalid exclude_labels pattern `%s`: %s", el.Pattern, err) + } + cmd.ExcludeLabels = append(cmd.ExcludeLabels, ExcludeLabels{ + Regex: rg, + Labels: el.Labels, + }) + } if err := cmd.updateMetricsMetadata(ctx); err != nil { return err } @@ -78,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 @@ -98,27 +131,35 @@ func (uc *updateCommand) updateMetricsMetadata(ctx context.Context) error { Labels: labels, } } - uc.Config.Metadata.Metrics = newMetrics return nil } func (uc *updateCommand) getAllLabelsOfMetric(ctx context.Context, name string) (map[string]metadata.LabelInfo, error) { - labels, warnings, err := uc.Client.LabelNames(ctx, []string{name}, time.Time{}, time.Now()) + labels, warnings, err := uc.Client.Series(ctx, []string{name}, uc.Config.Generator.Metrics.StartAt, time.Now(), 1) if err != nil { return nil, err } if len(warnings) > 0 { - slog.Warn(fmt.Sprintf("warning when fetching labels for metric `%s`", name), slog.Any("warnings", warnings)) + slog.Debug(fmt.Sprintf("warning when fetching labels for metric `%s`", name), slog.Any("warnings", warnings)) } - results := make(map[string]metadata.LabelInfo) - for _, label := range labels { - if slices.Contains(bannedLabels, label) { + if len(labels) == 0 { + return results, nil + } + excludedLabels := bannedLabels + for _, el := range uc.ExcludeLabels { + if el.Regex.MatchString(name) { + excludedLabels = append(excludedLabels, el.Labels...) + } + } + for key := range labels[0] { + if !key.IsValid() || slices.Contains(excludedLabels, string(key)) { continue } - results[label] = metadata.LabelInfo{} + + results[string(key)] = metadata.LabelInfo{} } return results, nil } @@ -157,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 { @@ -174,9 +215,12 @@ var defaultConfiguration = metadata.Configuration{ }, Generator: metadata.GeneratorSettings{ Metrics: metadata.MetricsGeneratorSettings{ - Enabled: true, - Include: []string{}, - Exclude: []string{}, + Enabled: true, + Behavior: metadata.MetricsGenerationMerge, + Include: []string{}, + Exclude: []string{}, + ExcludeLabels: []metadata.ExcludeLabelsSetting{}, + StartAt: time.Date(2024, 1, 1, 0, 0, 0, 0, time.UTC), }, }, Metadata: metadata.Metadata{ diff --git a/connector-definition/configuration.yaml b/connector-definition/configuration.yaml index d688ac9..0d812dc 100644 --- a/connector-definition/configuration.yaml +++ b/connector-definition/configuration.yaml @@ -5,8 +5,11 @@ connection_settings: generator: metrics: enabled: true + behavior: merge include: [] exclude: [] + exclude_labels: [] + start_at: "2024-01-01T00:00:00Z" metadata: metrics: {} native_operations: diff --git a/connector/api/series.go b/connector/api/series.go index fd1bb6a..a83e6b3 100644 --- a/connector/api/series.go +++ b/connector/api/series.go @@ -25,7 +25,7 @@ type PrometheusSeriesArguments struct { } // Validate validates arguments and options -func (psa *PrometheusSeriesArguments) Validate(state *metadata.State, span trace.Span) (*PrometheusSeriesArguments, []v1.Option, error) { +func (psa PrometheusSeriesArguments) Validate(state *metadata.State, span trace.Span) (*PrometheusSeriesArguments, []v1.Option, error) { endTime := time.Now() arguments := PrometheusSeriesArguments{ Match: psa.Match, @@ -66,11 +66,15 @@ func FunctionPrometheusSeries(ctx context.Context, state *metadata.State, argume ctx, span := state.Tracer.Start(ctx, "Prometheus Series") defer span.End() - args, opts, err := arguments.Validate(state, span) + args, _, err := arguments.Validate(state, span) if err != nil { return nil, err } - labelSets, warnings, err := state.Client.Series(ctx, args.Match, *args.Start, *args.End, opts...) + var limit uint64 + if args.Limit != nil { + limit = *args.Limit + } + labelSets, warnings, err := state.Client.Series(ctx, args.Match, *args.Start, *args.End, limit) if len(warnings) > 0 { span.SetAttributes(attribute.StringSlice("warnings", warnings)) } diff --git a/connector/client/client.go b/connector/client/client.go index fa93035..eb855d1 100644 --- a/connector/client/client.go +++ b/connector/client/client.go @@ -2,6 +2,7 @@ package client import ( "context" + "encoding/json" "errors" "fmt" "log/slog" @@ -82,6 +83,51 @@ func (c *Client) ApplyOptions(span trace.Span, timeout any) ([]v1.Option, error) return options, nil } +func (c *Client) do(ctx context.Context, req *http.Request) (*http.Response, []byte, v1.Warnings, error) { + resp, body, err := c.client.Do(ctx, req) + if err != nil { + return resp, body, nil, err + } + + code := resp.StatusCode + + if code/100 != 2 && !apiError(code) { + errorType, errorMsg := errorTypeAndMsgFor(resp) + return resp, body, nil, &v1.Error{ + Type: errorType, + Msg: errorMsg, + Detail: string(body), + } + } + + var result apiResponse + + if http.StatusNoContent != code { + if jsonErr := json.Unmarshal(body, &result); jsonErr != nil { + return resp, body, nil, &v1.Error{ + Type: v1.ErrBadResponse, + Msg: jsonErr.Error(), + } + } + } + + if apiError(code) && result.Status == "success" { + err = &v1.Error{ + Type: v1.ErrBadResponse, + Msg: "inconsistent body for response code", + } + } + + if result.Status == "error" { + err = &v1.Error{ + Type: result.ErrorType, + Msg: result.Error, + } + } + + return resp, []byte(result.Data), result.Warnings, err +} + // wrap the prometheus client with trace context type httpClient struct { api.Client @@ -111,7 +157,7 @@ func (ac *httpClient) Do(ctx context.Context, req *http.Request) (*http.Response if err != nil { attrs = append(attrs, slog.String("error", err.Error())) } - slog.Debug(fmt.Sprintf("%s %s", strings.ToUpper(req.Method), req.RequestURI), attrs...) + slog.Debug(fmt.Sprintf("%s %s", strings.ToUpper(req.Method), req.URL.String()), attrs...) } return r, bs, err } diff --git a/connector/client/config.go b/connector/client/config.go index 29e7868..28134cf 100644 --- a/connector/client/config.go +++ b/connector/client/config.go @@ -2,9 +2,11 @@ package client import ( "context" + "encoding/base64" "encoding/json" "fmt" "net/http" + "net/url" "github.com/hasura/ndc-prometheus/connector/types" "github.com/prometheus/common/config" @@ -31,11 +33,11 @@ type ClientSettings struct { // The omitempty flag is not set, because it would be hidden from the // marshalled configuration when set to false. EnableHTTP2 bool `yaml:"enable_http2,omitempty" json:"enable_http2,omitempty"` - // Proxy configuration. - config.ProxyConfig `yaml:",inline"` // HTTPHeaders specify headers to inject in the requests. Those headers // could be marshalled back to the users. - HTTPHeaders *config.Headers `yaml:"http_headers,omitempty" json:"http_headers,omitempty"` + HTTPHeaders http.Header `yaml:"http_headers,omitempty" json:"http_headers,omitempty"` + // Proxy configuration. + *ProxyConfig `yaml:",inline"` } // UnmarshalJSON implements json.Unmarshaler. @@ -61,10 +63,16 @@ func (cs ClientSettings) getHTTPClientConfig() (*config.HTTPClientConfig, error) TLSConfig: cs.TLSConfig, FollowRedirects: cs.FollowRedirects, EnableHTTP2: cs.EnableHTTP2, - ProxyConfig: cs.ProxyConfig, - HTTPHeaders: cs.HTTPHeaders, + HTTPHeaders: cs.getHTTPHeaders(), } + if cs.ProxyConfig != nil { + pc, err := cs.ProxyConfig.toClientConfig() + if err != nil { + return nil, err + } + result.ProxyConfig = *pc + } if cs.Authentication == nil { return result, nil } @@ -93,6 +101,18 @@ func (cs ClientSettings) getHTTPClientConfig() (*config.HTTPClientConfig, error) return result, nil } +func (cs ClientSettings) getHTTPHeaders() *config.Headers { + result := config.Headers{ + Headers: make(map[string]config.Header), + } + for k, v := range cs.HTTPHeaders { + result.Headers[k] = config.Header{ + Values: v, + } + } + return &result +} + func (cs ClientSettings) createHttpClient(ctx context.Context) (*http.Client, error) { httpClient, err := cs.createGoogleHttpClient(ctx) if err != nil { @@ -123,6 +143,13 @@ func (cs ClientSettings) createGoogleHttpClient(ctx context.Context) (*http.Clie return nil, err } if credJSON != "" { + if cs.Authentication.Google.Encoding != nil && *cs.Authentication.Google.Encoding == CredentialsEncodingBase64 { + credByte, err := base64.StdEncoding.DecodeString(credJSON) + if err != nil { + return nil, err + } + credJSON = string(credByte) + } opts = append(opts, option.WithCredentialsJSON([]byte(credJSON))) } } else if cs.Authentication.Google.CredentialsFile != nil { @@ -138,9 +165,8 @@ func (cs ClientSettings) createGoogleHttpClient(ctx context.Context) (*http.Clie rt, err := config.NewRoundTripperFromConfigWithContext(ctx, config.HTTPClientConfig{ TLSConfig: cs.TLSConfig, EnableHTTP2: cs.EnableHTTP2, - ProxyConfig: cs.ProxyConfig, FollowRedirects: cs.FollowRedirects, - HTTPHeaders: cs.HTTPHeaders, + HTTPHeaders: cs.getHTTPHeaders(), }, "ndc-prometheus") if err != nil { return nil, err @@ -212,13 +238,14 @@ func (hac AuthorizationConfig) toClientConfig() (*config.Authorization, error) { // OAuth2Config the OAuth2 client credentials used to fetch a token for the targets type OAuth2Config struct { - ClientID types.EnvironmentValue `yaml:"client_id" json:"client_id"` - ClientSecret types.EnvironmentValue `yaml:"client_secret" json:"client_secret"` - TokenURL types.EnvironmentValue `yaml:"token_url" json:"token_url"` - Scopes []string `yaml:"scopes,omitempty" json:"scopes,omitempty"` - EndpointParams map[string]string `yaml:"endpoint_params,omitempty" json:"endpoint_params,omitempty"` - TLSConfig config.TLSConfig `yaml:"tls_config,omitempty"` - config.ProxyConfig `yaml:",inline"` + ClientID types.EnvironmentValue `yaml:"client_id" json:"client_id"` + ClientSecret types.EnvironmentValue `yaml:"client_secret" json:"client_secret"` + TokenURL types.EnvironmentValue `yaml:"token_url" json:"token_url"` + Scopes []string `yaml:"scopes,omitempty" json:"scopes,omitempty"` + EndpointParams map[string]string `yaml:"endpoint_params,omitempty" json:"endpoint_params,omitempty"` + TLSConfig config.TLSConfig `yaml:"tls_config,omitempty"` + + *ProxyConfig `yaml:",inline"` } func (oc OAuth2Config) toClientConfig() (*config.OAuth2, error) { @@ -235,21 +262,69 @@ func (oc OAuth2Config) toClientConfig() (*config.OAuth2, error) { return nil, err } - return &config.OAuth2{ + result := &config.OAuth2{ ClientID: clientId, ClientSecret: config.Secret(clientSecret), TokenURL: tokenURL, Scopes: oc.Scopes, EndpointParams: oc.EndpointParams, TLSConfig: oc.TLSConfig, - ProxyConfig: oc.ProxyConfig, - }, nil + } + if oc.ProxyConfig != nil { + pc, err := oc.ProxyConfig.toClientConfig() + if err != nil { + return nil, err + } + result.ProxyConfig = *pc + } + return result, nil } +// CredentialsEncoding the encoding of credentials string +type CredentialsEncoding string + +const ( + CredentialsEncodingPlainText CredentialsEncoding = "plaintext" + CredentialsEncodingBase64 CredentialsEncoding = "base64" +) + // GoogleAuth the Google client credentials used to fetch a token for the targets type GoogleAuthConfig struct { + Encoding *CredentialsEncoding `yaml:"encoding,omitempty" json:"encoding,omitempty" jsonschema:"enum=plaintext,enum=base64,default=plaintext"` // Text of the Google credential JSON Credentials *types.EnvironmentValue `yaml:"credentials,omitempty" json:"credentials,omitempty"` // Path of the Google credential file CredentialsFile *types.EnvironmentValue `yaml:"credentials_file,omitempty" json:"credentials_file,omitempty"` } + +// ProxyConfig the proxy configuration +type ProxyConfig struct { + // HTTP proxy server to use to connect to the targets. + ProxyURL string `yaml:"proxy_url,omitempty" json:"proxy_url,omitempty"` + // NoProxy contains addresses that should not use a proxy. + NoProxy string `yaml:"no_proxy,omitempty" json:"no_proxy,omitempty"` + // ProxyFromEnvironment makes use of net/http ProxyFromEnvironment function + // to determine proxies. + ProxyFromEnvironment bool `yaml:"proxy_from_environment,omitempty" json:"proxy_from_environment,omitempty"` + // ProxyConnectHeader optionally specifies headers to send to + // proxies during CONNECT requests. Assume that at least _some_ of + // these headers are going to contain secrets and use Secret as the + // value type instead of string. + ProxyConnectHeader config.ProxyHeader `yaml:"proxy_connect_header,omitempty" json:"proxy_connect_header,omitempty"` +} + +func (oc ProxyConfig) toClientConfig() (*config.ProxyConfig, error) { + result := &config.ProxyConfig{ + NoProxy: oc.NoProxy, + ProxyFromEnvironment: oc.ProxyFromEnvironment, + ProxyConnectHeader: oc.ProxyConnectHeader, + } + if oc.ProxyURL != "" { + u, err := url.Parse(oc.ProxyURL) + if err != nil { + return nil, err + } + result.ProxyURL = config.URL{URL: u} + } + return result, nil +} diff --git a/connector/client/series.go b/connector/client/series.go new file mode 100644 index 0000000..085de12 --- /dev/null +++ b/connector/client/series.go @@ -0,0 +1,53 @@ +package client + +import ( + "context" + "encoding/json" + "net/http" + "strconv" + "time" + + v1 "github.com/prometheus/client_golang/api/prometheus/v1" + "github.com/prometheus/common/model" +) + +// Series returns the list of [time series] that match a certain label set. +// Google Managed Prometheus supports GET method only so the base API library doesn't work. +// [time series](https://prometheus.io/docs/prometheus/latest/querying/api/#finding-series-by-label-matchers) +func (c *Client) Series(ctx context.Context, matches []string, startTime, endTime time.Time, limit uint64) ([]model.LabelSet, v1.Warnings, error) { + u := c.client.URL("/api/v1/series", nil) + q := u.Query() + + for _, m := range matches { + q.Add("match[]", m) + } + + if !startTime.IsZero() { + q.Set("start", formatTime(startTime)) + } + if !endTime.IsZero() { + q.Set("end", formatTime(endTime)) + } + + if limit > 0 { + q.Set("limit", strconv.FormatUint(limit, 10)) + } + u.RawQuery = q.Encode() + + req, err := http.NewRequest("GET", u.String(), nil) + if err != nil { + return nil, nil, err + } + + _, body, warnings, err := c.do(ctx, req) + if err != nil { + return nil, nil, err + } + + var mset []model.LabelSet + return mset, warnings, json.Unmarshal(body, &mset) +} + +func formatTime(t time.Time) string { + return strconv.FormatFloat(float64(t.Unix())+float64(t.Nanosecond())/1e9, 'f', -1, 64) +} diff --git a/connector/client/utils.go b/connector/client/utils.go index 7fbfc6d..0e8c55a 100644 --- a/connector/client/utils.go +++ b/connector/client/utils.go @@ -1,11 +1,14 @@ package client import ( + "encoding/json" "fmt" + "net/http" "reflect" "time" "github.com/hasura/ndc-sdk-go/utils" + v1 "github.com/prometheus/client_golang/api/prometheus/v1" "github.com/prometheus/common/model" ) @@ -109,3 +112,26 @@ func ParseTimestamp(s any) (*time.Time, error) { return nil, fmt.Errorf("unable to parse timestamp from kind %v", kind) } } + +type apiResponse struct { + Status string `json:"status"` + Data json.RawMessage `json:"data"` + ErrorType v1.ErrorType `json:"errorType"` + Error string `json:"error"` + Warnings []string `json:"warnings,omitempty"` +} + +func apiError(code int) bool { + // These are the codes that Prometheus sends when it returns an error. + return code == http.StatusUnprocessableEntity || code == http.StatusBadRequest +} + +func errorTypeAndMsgFor(resp *http.Response) (v1.ErrorType, string) { + switch resp.StatusCode / 100 { + case 4: + return v1.ErrClient, fmt.Sprintf("client error: %d", resp.StatusCode) + case 5: + return v1.ErrServer, fmt.Sprintf("server error: %d", resp.StatusCode) + } + return v1.ErrBadResponse, fmt.Sprintf("bad response code %d", resp.StatusCode) +} diff --git a/connector/metadata/configuration.go b/connector/metadata/configuration.go index 446dd6a..e23c273 100644 --- a/connector/metadata/configuration.go +++ b/connector/metadata/configuration.go @@ -3,6 +3,7 @@ package metadata import ( "fmt" "os" + "time" "github.com/hasura/ndc-prometheus/connector/client" "gopkg.in/yaml.v3" @@ -15,14 +16,36 @@ 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. // Note: exclude is higher priority than include Exclude []string `json:"exclude" yaml:"exclude"` + // Exclude unnecessary labels + ExcludeLabels []ExcludeLabelsSetting `json:"exclude_labels" yaml:"exclude_labels"` + // The minimum timestamp that the plugin uses to query metadata + StartAt time.Time `json:"start_at" yaml:"start_at"` +} + +// ExcludeLabelsSetting the setting to exclude labels +type ExcludeLabelsSetting struct { + // The regular expression pattern of metric names + Pattern string `json:"pattern" yaml:"pattern"` + // List of labels to be excluded + Labels []string `json:"labels" yaml:"labels"` } // GeneratorSettings contain settings for the configuration generator diff --git a/jsonschema/configuration.json b/jsonschema/configuration.json index bab4070..7e2b91f 100644 --- a/jsonschema/configuration.json +++ b/jsonschema/configuration.json @@ -73,8 +73,11 @@ "enable_http2": { "type": "boolean" }, + "http_headers": { + "$ref": "#/$defs/Header" + }, "proxy_url": { - "$ref": "#/$defs/URL" + "type": "string" }, "no_proxy": { "type": "string" @@ -84,9 +87,6 @@ }, "proxy_connect_header": { "$ref": "#/$defs/ProxyHeader" - }, - "http_headers": { - "$ref": "#/$defs/Headers" } }, "additionalProperties": false, @@ -141,6 +141,25 @@ "additionalProperties": false, "type": "object" }, + "ExcludeLabelsSetting": { + "properties": { + "pattern": { + "type": "string" + }, + "labels": { + "items": { + "type": "string" + }, + "type": "array" + } + }, + "additionalProperties": false, + "type": "object", + "required": [ + "pattern", + "labels" + ] + }, "GeneratorSettings": { "properties": { "metrics": { @@ -155,6 +174,14 @@ }, "GoogleAuthConfig": { "properties": { + "encoding": { + "type": "string", + "enum": [ + "plaintext", + "base64" + ], + "default": "plaintext" + }, "credentials": { "$ref": "#/$defs/EnvironmentValue" }, @@ -166,44 +193,14 @@ "type": "object" }, "Header": { - "properties": { - "values": { - "items": { - "type": "string" - }, - "type": "array" - }, - "secrets": { - "items": { - "type": "string" - }, - "type": "array" + "additionalProperties": { + "items": { + "type": "string" }, - "files": { - "items": { - "type": "string" - }, - "type": "array" - } + "type": "array" }, - "additionalProperties": false, "type": "object" }, - "Headers": { - "properties": { - "Headers": { - "additionalProperties": { - "$ref": "#/$defs/Header" - }, - "type": "object" - } - }, - "additionalProperties": false, - "type": "object", - "required": [ - "Headers" - ] - }, "LabelInfo": { "properties": { "description": { @@ -259,6 +256,13 @@ "enabled": { "type": "boolean" }, + "behavior": { + "type": "string", + "enum": [ + "merge", + "replace" + ] + }, "include": { "items": { "type": "string" @@ -270,14 +274,27 @@ "type": "string" }, "type": "array" + }, + "exclude_labels": { + "items": { + "$ref": "#/$defs/ExcludeLabelsSetting" + }, + "type": "array" + }, + "start_at": { + "type": "string", + "format": "date-time" } }, "additionalProperties": false, "type": "object", "required": [ "enabled", + "behavior", "include", - "exclude" + "exclude", + "exclude_labels", + "start_at" ] }, "NativeOperations": { @@ -372,7 +389,7 @@ "$ref": "#/$defs/TLSConfig" }, "proxy_url": { - "$ref": "#/$defs/URL" + "type": "string" }, "no_proxy": { "type": "string" @@ -449,63 +466,6 @@ "required": [ "insecure_skip_verify" ] - }, - "URL": { - "properties": { - "Scheme": { - "type": "string" - }, - "Opaque": { - "type": "string" - }, - "User": { - "$ref": "#/$defs/Userinfo" - }, - "Host": { - "type": "string" - }, - "Path": { - "type": "string" - }, - "RawPath": { - "type": "string" - }, - "OmitHost": { - "type": "boolean" - }, - "ForceQuery": { - "type": "boolean" - }, - "RawQuery": { - "type": "string" - }, - "Fragment": { - "type": "string" - }, - "RawFragment": { - "type": "string" - } - }, - "additionalProperties": false, - "type": "object", - "required": [ - "Scheme", - "Opaque", - "User", - "Host", - "Path", - "RawPath", - "OmitHost", - "ForceQuery", - "RawQuery", - "Fragment", - "RawFragment" - ] - }, - "Userinfo": { - "properties": {}, - "additionalProperties": false, - "type": "object" } } } \ No newline at end of file diff --git a/tests/configuration/configuration.yaml b/tests/configuration/configuration.yaml index 4128f0c..73ac831 100644 --- a/tests/configuration/configuration.yaml +++ b/tests/configuration/configuration.yaml @@ -11,11 +11,17 @@ connection_settings: generator: metrics: enabled: true + behavior: merge include: [] exclude: - ^prometheus_+ - ^go_+ - ^node_+ + exclude_labels: + - pattern: ^net_.+ + labels: + - dialer_name + start_at: 2024-09-01T00:00:00Z metadata: metrics: ndc_prometheus_query_total: @@ -36,28 +42,24 @@ metadata: type: counter description: Total number of connections attempted by the given dialer a given name. labels: - dialer_name: {} instance: {} job: {} net_conntrack_dialer_conn_closed_total: type: counter description: Total number of connections closed which originated from the dialer of a given name. labels: - dialer_name: {} instance: {} job: {} net_conntrack_dialer_conn_established_total: type: counter description: Total number of connections successfully established by the given dialer a given name. labels: - dialer_name: {} instance: {} job: {} net_conntrack_dialer_conn_failed_total: type: counter description: Total number of connections failed to dial by the dialer a given name. labels: - dialer_name: {} instance: {} job: {} reason: {} diff --git a/tests/engine/app/metadata/net_conntrack_listener_conn_closed_total.hml b/tests/engine/app/metadata/ndc_prometheus_query_total.hml similarity index 81% rename from tests/engine/app/metadata/net_conntrack_listener_conn_closed_total.hml rename to tests/engine/app/metadata/ndc_prometheus_query_total.hml index 245d5d5..986ed43 100644 --- a/tests/engine/app/metadata/net_conntrack_listener_conn_closed_total.hml +++ b/tests/engine/app/metadata/ndc_prometheus_query_total.hml @@ -2,7 +2,7 @@ kind: ObjectType version: v1 definition: - name: NetConntrackListenerConnClosedTotalLabelJoinInput + name: NdcPrometheusQueryTotalLabelJoinInput description: Input arguments for the label_join function fields: - name: dest_label @@ -12,20 +12,20 @@ definition: type: String! description: The separator between source labels - name: source_labels - type: "[NetConntrackListenerConnClosedTotalLabel!]!" + type: "[NdcPrometheusQueryTotalLabel!]!" description: Source labels graphql: - typeName: NetConntrackListenerConnClosedTotalLabelJoinInput - inputTypeName: NetConntrackListenerConnClosedTotalLabelJoinInput_input + typeName: NdcPrometheusQueryTotalLabelJoinInput + inputTypeName: NdcPrometheusQueryTotalLabelJoinInput_input dataConnectorTypeMapping: - dataConnectorName: prometheus - dataConnectorObjectType: NetConntrackListenerConnClosedTotalLabelJoinInput + dataConnectorObjectType: NdcPrometheusQueryTotalLabelJoinInput --- kind: TypePermissions version: v1 definition: - typeName: NetConntrackListenerConnClosedTotalLabelJoinInput + typeName: NdcPrometheusQueryTotalLabelJoinInput permissions: - role: admin output: @@ -38,7 +38,7 @@ definition: kind: ObjectType version: v1 definition: - name: NetConntrackListenerConnClosedTotalLabelReplaceInput + name: NdcPrometheusQueryTotalLabelReplaceInput description: Input arguments for the label_replace function fields: - name: dest_label @@ -51,20 +51,20 @@ definition: type: String! description: The replacement value - name: source_label - type: NetConntrackListenerConnClosedTotalLabel! + type: NdcPrometheusQueryTotalLabel! description: Source label graphql: - typeName: NetConntrackListenerConnClosedTotalLabelReplaceInput - inputTypeName: NetConntrackListenerConnClosedTotalLabelReplaceInput_input + typeName: NdcPrometheusQueryTotalLabelReplaceInput + inputTypeName: NdcPrometheusQueryTotalLabelReplaceInput_input dataConnectorTypeMapping: - dataConnectorName: prometheus - dataConnectorObjectType: NetConntrackListenerConnClosedTotalLabelReplaceInput + dataConnectorObjectType: NdcPrometheusQueryTotalLabelReplaceInput --- kind: TypePermissions version: v1 definition: - typeName: NetConntrackListenerConnClosedTotalLabelReplaceInput + typeName: NdcPrometheusQueryTotalLabelReplaceInput permissions: - role: admin output: @@ -78,7 +78,7 @@ definition: kind: ObjectType version: v1 definition: - name: NetConntrackListenerConnClosedTotalFunctions + name: NdcPrometheusQueryTotalFunctions fields: - name: abs type: Boolean @@ -113,7 +113,7 @@ definition: type: Boolean description: Calculates the inverse hyperbolic tangent of all elements in v - name: avg - type: "[NetConntrackListenerConnClosedTotalLabel!]" + type: "[NdcPrometheusQueryTotalLabel!]" - name: avg_over_time type: RangeResolution description: The average value of all points in the specified interval @@ -147,12 +147,12 @@ definition: type: Boolean description: Calculates the hyperbolic cosine of all elements in v - name: count - type: "[NetConntrackListenerConnClosedTotalLabel!]" + type: "[NdcPrometheusQueryTotalLabel!]" - name: count_over_time type: RangeResolution description: The count of all values in the specified interval - name: count_values - type: NetConntrackListenerConnClosedTotalLabel + type: NdcPrometheusQueryTotalLabel - name: deg type: Boolean description: Converts radians to degrees for all elements in v @@ -173,7 +173,7 @@ definition: 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: "[NetConntrackListenerConnClosedTotalLabel!]" + type: "[NdcPrometheusQueryTotalLabel!]" - name: histogram_avg type: Boolean description: Returns the arithmetic average of observed values stored in a @@ -224,12 +224,12 @@ definition: 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: NetConntrackListenerConnClosedTotalLabelJoinInput + 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: NetConntrackListenerConnClosedTotalLabelReplaceInput + 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 @@ -257,12 +257,12 @@ definition: type: RangeResolution description: The median absolute deviation of all points in the specified interval - name: max - type: "[NetConntrackListenerConnClosedTotalLabel!]" + type: "[NdcPrometheusQueryTotalLabel!]" - name: max_over_time type: RangeResolution description: The maximum value of all points in the specified interval - name: min - type: "[NetConntrackListenerConnClosedTotalLabel!]" + type: "[NdcPrometheusQueryTotalLabel!]" - name: min_over_time type: RangeResolution description: The minimum value of all points in the specified interval @@ -312,11 +312,11 @@ definition: 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: "[NetConntrackListenerConnClosedTotalLabel!]" + 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: "[NetConntrackListenerConnClosedTotalLabel!]" + type: "[NdcPrometheusQueryTotalLabel!]" description: Same as sort_by_label, but sorts in descending order - name: sort_desc type: Boolean @@ -325,17 +325,17 @@ definition: type: Boolean description: Calculates the square root of all elements in v - name: stddev - type: "[NetConntrackListenerConnClosedTotalLabel!]" + type: "[NdcPrometheusQueryTotalLabel!]" - name: stddev_over_time type: RangeResolution description: The population standard deviation of the values in the specified interval - name: stdvar - type: "[NetConntrackListenerConnClosedTotalLabel!]" + type: "[NdcPrometheusQueryTotalLabel!]" - name: stdvar_over_time type: RangeResolution description: The population standard variance of the values in the specified interval - name: sum - type: "[NetConntrackListenerConnClosedTotalLabel!]" + type: "[NdcPrometheusQueryTotalLabel!]" - name: sum_over_time type: RangeResolution description: The sum of all values in the specified interval @@ -354,17 +354,17 @@ definition: type: Int64 description: Largest k elements by sample value graphql: - typeName: NetConntrackListenerConnClosedTotalFunctions - inputTypeName: NetConntrackListenerConnClosedTotalFunctions_input + typeName: NdcPrometheusQueryTotalFunctions + inputTypeName: NdcPrometheusQueryTotalFunctions_input dataConnectorTypeMapping: - dataConnectorName: prometheus - dataConnectorObjectType: NetConntrackListenerConnClosedTotalFunctions + dataConnectorObjectType: NdcPrometheusQueryTotalFunctions --- kind: TypePermissions version: v1 definition: - typeName: NetConntrackListenerConnClosedTotalFunctions + typeName: NdcPrometheusQueryTotalFunctions permissions: - role: admin output: @@ -453,8 +453,12 @@ definition: kind: ObjectType version: v1 definition: - name: NetConntrackListenerConnClosedTotal + name: NdcPrometheusQueryTotal fields: + - name: collection + type: String! + - name: http_status + type: String! - name: instance type: String! - name: job @@ -462,7 +466,9 @@ definition: - name: labels type: LabelSet! description: Labels of the metric - - name: listener_name + - name: otel_scope_name + type: String! + - name: status type: String! - name: timestamp type: Timestamp! @@ -474,73 +480,77 @@ definition: type: "[QueryResultValue!]!" description: An array of query result values graphql: - typeName: NetConntrackListenerConnClosedTotal - inputTypeName: NetConntrackListenerConnClosedTotal_input + typeName: NdcPrometheusQueryTotal + inputTypeName: NdcPrometheusQueryTotal_input dataConnectorTypeMapping: - dataConnectorName: prometheus - dataConnectorObjectType: NetConntrackListenerConnClosedTotal + dataConnectorObjectType: NdcPrometheusQueryTotal --- kind: TypePermissions version: v1 definition: - typeName: NetConntrackListenerConnClosedTotal + typeName: NdcPrometheusQueryTotal permissions: - role: admin output: allowedFields: + - collection + - http_status - instance - job - labels - - listener_name + - otel_scope_name + - status - timestamp - value - values --- -kind: ObjectBooleanExpressionType +kind: BooleanExpressionType version: v1 definition: - name: NetConntrackListenerConnClosedTotal_bool_exp - objectType: NetConntrackListenerConnClosedTotal - dataConnectorName: prometheus - dataConnectorObjectType: NetConntrackListenerConnClosedTotal - comparableFields: - - fieldName: instance - operators: - enableAll: true - - fieldName: job - operators: - enableAll: true - - fieldName: labels - operators: - enableAll: true - - fieldName: listener_name - operators: - enableAll: true - - fieldName: timestamp - operators: - enableAll: true - - fieldName: value - operators: - enableAll: true - - fieldName: values - operators: - enableAll: true + 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: NetConntrackListenerConnClosedTotal_bool_exp + typeName: NdcPrometheusQueryTotal_bool_exp --- kind: Model version: v1 definition: - name: net_conntrack_listener_conn_closed_total - objectType: NetConntrackListenerConnClosedTotal + name: ndc_prometheus_query_total + objectType: NdcPrometheusQueryTotal arguments: - name: fn - type: "[NetConntrackListenerConnClosedTotalFunctions!]" - description: PromQL aggregation operators and functions for - net_conntrack_listener_conn_closed_total + 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 @@ -554,9 +564,15 @@ definition: description: Evaluation timeout source: dataConnectorName: prometheus - collection: net_conntrack_listener_conn_closed_total - filterExpressionType: NetConntrackListenerConnClosedTotal_bool_exp + 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 @@ -566,32 +582,31 @@ definition: - fieldName: labels orderByDirections: enableAll: true - - fieldName: listener_name + - fieldName: otel_scope_name orderByDirections: enableAll: true - - fieldName: timestamp + - fieldName: status orderByDirections: enableAll: true - - fieldName: value + - fieldName: timestamp orderByDirections: enableAll: true - - fieldName: values + - fieldName: value orderByDirections: enableAll: true graphql: selectMany: - queryRootField: net_conntrack_listener_conn_closed_total + queryRootField: ndc_prometheus_query_total selectUniques: [] - argumentsInputType: net_conntrack_listener_conn_closed_total_arguments - orderByExpressionType: net_conntrack_listener_conn_closed_total_order_by - description: Total number of connections closed that were made to the listener - of a given name. + 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: net_conntrack_listener_conn_closed_total + modelName: ndc_prometheus_query_total permissions: - role: admin select: 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/net_conntrack_dialer_conn_attempted_total.hml b/tests/engine/app/metadata/net_conntrack_dialer_conn_attempted_total.hml index 2d8b4bb..cd5ddec 100644 --- a/tests/engine/app/metadata/net_conntrack_dialer_conn_attempted_total.hml +++ b/tests/engine/app/metadata/net_conntrack_dialer_conn_attempted_total.hml @@ -621,8 +621,6 @@ version: v1 definition: name: NetConntrackDialerConnAttemptedTotal fields: - - name: dialer_name - type: String! - name: instance type: String! - name: job @@ -655,7 +653,6 @@ definition: - role: admin output: allowedFields: - - dialer_name - instance - job - labels @@ -664,35 +661,29 @@ definition: - values --- -kind: ObjectBooleanExpressionType +kind: BooleanExpressionType version: v1 definition: name: NetConntrackDialerConnAttemptedTotal_bool_exp - objectType: NetConntrackDialerConnAttemptedTotal - dataConnectorName: prometheus - dataConnectorObjectType: NetConntrackDialerConnAttemptedTotal - comparableFields: - - fieldName: dialer_name - operators: - enableAll: true - - fieldName: instance - operators: - enableAll: true - - fieldName: job - operators: - enableAll: true - - fieldName: labels - operators: - enableAll: true - - fieldName: timestamp - operators: - enableAll: true - - fieldName: value - operators: - enableAll: true - - fieldName: values - operators: - enableAll: true + operand: + object: + type: NetConntrackDialerConnAttemptedTotal + comparableFields: + - fieldName: instance + booleanExpressionType: String_bool_exp + - fieldName: job + booleanExpressionType: String_bool_exp + - 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: NetConntrackDialerConnAttemptedTotal_bool_exp @@ -723,9 +714,6 @@ definition: collection: net_conntrack_dialer_conn_attempted_total filterExpressionType: NetConntrackDialerConnAttemptedTotal_bool_exp orderableFields: - - fieldName: dialer_name - orderByDirections: - enableAll: true - fieldName: instance orderByDirections: enableAll: true @@ -741,9 +729,6 @@ definition: - fieldName: value orderByDirections: enableAll: true - - fieldName: values - orderByDirections: - enableAll: true graphql: selectMany: queryRootField: net_conntrack_dialer_conn_attempted_total diff --git a/tests/engine/app/metadata/net_conntrack_dialer_conn_closed_total.hml b/tests/engine/app/metadata/net_conntrack_dialer_conn_closed_total.hml index b1557c1..d805b07 100644 --- a/tests/engine/app/metadata/net_conntrack_dialer_conn_closed_total.hml +++ b/tests/engine/app/metadata/net_conntrack_dialer_conn_closed_total.hml @@ -455,8 +455,6 @@ version: v1 definition: name: NetConntrackDialerConnClosedTotal fields: - - name: dialer_name - type: String! - name: instance type: String! - name: job @@ -489,7 +487,6 @@ definition: - role: admin output: allowedFields: - - dialer_name - instance - job - labels @@ -498,35 +495,29 @@ definition: - values --- -kind: ObjectBooleanExpressionType +kind: BooleanExpressionType version: v1 definition: name: NetConntrackDialerConnClosedTotal_bool_exp - objectType: NetConntrackDialerConnClosedTotal - dataConnectorName: prometheus - dataConnectorObjectType: NetConntrackDialerConnClosedTotal - comparableFields: - - fieldName: dialer_name - operators: - enableAll: true - - fieldName: instance - operators: - enableAll: true - - fieldName: job - operators: - enableAll: true - - fieldName: labels - operators: - enableAll: true - - fieldName: timestamp - operators: - enableAll: true - - fieldName: value - operators: - enableAll: true - - fieldName: values - operators: - enableAll: true + operand: + object: + type: NetConntrackDialerConnClosedTotal + comparableFields: + - fieldName: instance + booleanExpressionType: String_bool_exp + - fieldName: job + booleanExpressionType: String_bool_exp + - 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: NetConntrackDialerConnClosedTotal_bool_exp @@ -557,9 +548,6 @@ definition: collection: net_conntrack_dialer_conn_closed_total filterExpressionType: NetConntrackDialerConnClosedTotal_bool_exp orderableFields: - - fieldName: dialer_name - orderByDirections: - enableAll: true - fieldName: instance orderByDirections: enableAll: true @@ -575,9 +563,6 @@ definition: - fieldName: value orderByDirections: enableAll: true - - fieldName: values - orderByDirections: - enableAll: true graphql: selectMany: queryRootField: net_conntrack_dialer_conn_closed_total diff --git a/tests/engine/app/metadata/net_conntrack_dialer_conn_established_total.hml b/tests/engine/app/metadata/net_conntrack_dialer_conn_established_total.hml index c821646..e1cf516 100644 --- a/tests/engine/app/metadata/net_conntrack_dialer_conn_established_total.hml +++ b/tests/engine/app/metadata/net_conntrack_dialer_conn_established_total.hml @@ -455,8 +455,6 @@ version: v1 definition: name: NetConntrackDialerConnEstablishedTotal fields: - - name: dialer_name - type: String! - name: instance type: String! - name: job @@ -489,7 +487,6 @@ definition: - role: admin output: allowedFields: - - dialer_name - instance - job - labels @@ -498,35 +495,29 @@ definition: - values --- -kind: ObjectBooleanExpressionType +kind: BooleanExpressionType version: v1 definition: name: NetConntrackDialerConnEstablishedTotal_bool_exp - objectType: NetConntrackDialerConnEstablishedTotal - dataConnectorName: prometheus - dataConnectorObjectType: NetConntrackDialerConnEstablishedTotal - comparableFields: - - fieldName: dialer_name - operators: - enableAll: true - - fieldName: instance - operators: - enableAll: true - - fieldName: job - operators: - enableAll: true - - fieldName: labels - operators: - enableAll: true - - fieldName: timestamp - operators: - enableAll: true - - fieldName: value - operators: - enableAll: true - - fieldName: values - operators: - enableAll: true + operand: + object: + type: NetConntrackDialerConnEstablishedTotal + comparableFields: + - fieldName: instance + booleanExpressionType: String_bool_exp + - fieldName: job + booleanExpressionType: String_bool_exp + - 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: NetConntrackDialerConnEstablishedTotal_bool_exp @@ -557,9 +548,6 @@ definition: collection: net_conntrack_dialer_conn_established_total filterExpressionType: NetConntrackDialerConnEstablishedTotal_bool_exp orderableFields: - - fieldName: dialer_name - orderByDirections: - enableAll: true - fieldName: instance orderByDirections: enableAll: true @@ -575,9 +563,6 @@ definition: - fieldName: value orderByDirections: enableAll: true - - fieldName: values - orderByDirections: - enableAll: true graphql: selectMany: queryRootField: net_conntrack_dialer_conn_established_total diff --git a/tests/engine/app/metadata/net_conntrack_dialer_conn_failed_total.hml b/tests/engine/app/metadata/net_conntrack_dialer_conn_failed_total.hml index 6f8abf4..26736aa 100644 --- a/tests/engine/app/metadata/net_conntrack_dialer_conn_failed_total.hml +++ b/tests/engine/app/metadata/net_conntrack_dialer_conn_failed_total.hml @@ -455,8 +455,6 @@ version: v1 definition: name: NetConntrackDialerConnFailedTotal fields: - - name: dialer_name - type: String! - name: instance type: String! - name: job @@ -491,7 +489,6 @@ definition: - role: admin output: allowedFields: - - dialer_name - instance - job - labels @@ -501,38 +498,31 @@ definition: - values --- -kind: ObjectBooleanExpressionType +kind: BooleanExpressionType version: v1 definition: name: NetConntrackDialerConnFailedTotal_bool_exp - objectType: NetConntrackDialerConnFailedTotal - dataConnectorName: prometheus - dataConnectorObjectType: NetConntrackDialerConnFailedTotal - comparableFields: - - fieldName: dialer_name - operators: - enableAll: true - - fieldName: instance - operators: - enableAll: true - - fieldName: job - operators: - enableAll: true - - fieldName: labels - operators: - enableAll: true - - fieldName: reason - operators: - enableAll: true - - fieldName: timestamp - operators: - enableAll: true - - fieldName: value - operators: - enableAll: true - - fieldName: values - operators: - enableAll: true + operand: + object: + type: NetConntrackDialerConnFailedTotal + comparableFields: + - fieldName: instance + booleanExpressionType: String_bool_exp + - fieldName: job + booleanExpressionType: String_bool_exp + - fieldName: labels + booleanExpressionType: LabelSet_bool_exp + - fieldName: reason + 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: NetConntrackDialerConnFailedTotal_bool_exp @@ -563,9 +553,6 @@ definition: collection: net_conntrack_dialer_conn_failed_total filterExpressionType: NetConntrackDialerConnFailedTotal_bool_exp orderableFields: - - fieldName: dialer_name - orderByDirections: - enableAll: true - fieldName: instance orderByDirections: enableAll: true @@ -584,9 +571,6 @@ definition: - fieldName: value orderByDirections: enableAll: true - - fieldName: values - orderByDirections: - enableAll: true graphql: selectMany: queryRootField: net_conntrack_dialer_conn_failed_total diff --git a/tests/engine/app/metadata/net_conntrack_listener_conn_accepted_total.hml b/tests/engine/app/metadata/otel_scope_info.hml similarity index 80% rename from tests/engine/app/metadata/net_conntrack_listener_conn_accepted_total.hml rename to tests/engine/app/metadata/otel_scope_info.hml index cfeda7e..d09d16b 100644 --- a/tests/engine/app/metadata/net_conntrack_listener_conn_accepted_total.hml +++ b/tests/engine/app/metadata/otel_scope_info.hml @@ -2,7 +2,7 @@ kind: ObjectType version: v1 definition: - name: NetConntrackListenerConnAcceptedTotalLabelJoinInput + name: OtelScopeInfoLabelJoinInput description: Input arguments for the label_join function fields: - name: dest_label @@ -12,20 +12,20 @@ definition: type: String! description: The separator between source labels - name: source_labels - type: "[NetConntrackListenerConnAcceptedTotalLabel!]!" + type: "[OtelScopeInfoLabel!]!" description: Source labels graphql: - typeName: NetConntrackListenerConnAcceptedTotalLabelJoinInput - inputTypeName: NetConntrackListenerConnAcceptedTotalLabelJoinInput_input + typeName: OtelScopeInfoLabelJoinInput + inputTypeName: OtelScopeInfoLabelJoinInput_input dataConnectorTypeMapping: - dataConnectorName: prometheus - dataConnectorObjectType: NetConntrackListenerConnAcceptedTotalLabelJoinInput + dataConnectorObjectType: OtelScopeInfoLabelJoinInput --- kind: TypePermissions version: v1 definition: - typeName: NetConntrackListenerConnAcceptedTotalLabelJoinInput + typeName: OtelScopeInfoLabelJoinInput permissions: - role: admin output: @@ -38,7 +38,7 @@ definition: kind: ObjectType version: v1 definition: - name: NetConntrackListenerConnAcceptedTotalLabelReplaceInput + name: OtelScopeInfoLabelReplaceInput description: Input arguments for the label_replace function fields: - name: dest_label @@ -51,20 +51,20 @@ definition: type: String! description: The replacement value - name: source_label - type: NetConntrackListenerConnAcceptedTotalLabel! + type: OtelScopeInfoLabel! description: Source label graphql: - typeName: NetConntrackListenerConnAcceptedTotalLabelReplaceInput - inputTypeName: NetConntrackListenerConnAcceptedTotalLabelReplaceInput_input + typeName: OtelScopeInfoLabelReplaceInput + inputTypeName: OtelScopeInfoLabelReplaceInput_input dataConnectorTypeMapping: - dataConnectorName: prometheus - dataConnectorObjectType: NetConntrackListenerConnAcceptedTotalLabelReplaceInput + dataConnectorObjectType: OtelScopeInfoLabelReplaceInput --- kind: TypePermissions version: v1 definition: - typeName: NetConntrackListenerConnAcceptedTotalLabelReplaceInput + typeName: OtelScopeInfoLabelReplaceInput permissions: - role: admin output: @@ -78,7 +78,7 @@ definition: kind: ObjectType version: v1 definition: - name: NetConntrackListenerConnAcceptedTotalFunctions + name: OtelScopeInfoFunctions fields: - name: abs type: Boolean @@ -113,7 +113,7 @@ definition: type: Boolean description: Calculates the inverse hyperbolic tangent of all elements in v - name: avg - type: "[NetConntrackListenerConnAcceptedTotalLabel!]" + type: "[OtelScopeInfoLabel!]" - name: avg_over_time type: RangeResolution description: The average value of all points in the specified interval @@ -147,12 +147,12 @@ definition: type: Boolean description: Calculates the hyperbolic cosine of all elements in v - name: count - type: "[NetConntrackListenerConnAcceptedTotalLabel!]" + type: "[OtelScopeInfoLabel!]" - name: count_over_time type: RangeResolution description: The count of all values in the specified interval - name: count_values - type: NetConntrackListenerConnAcceptedTotalLabel + type: OtelScopeInfoLabel - name: deg type: Boolean description: Converts radians to degrees for all elements in v @@ -173,7 +173,7 @@ definition: 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: "[NetConntrackListenerConnAcceptedTotalLabel!]" + type: "[OtelScopeInfoLabel!]" - name: histogram_avg type: Boolean description: Returns the arithmetic average of observed values stored in a @@ -224,12 +224,12 @@ definition: 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: NetConntrackListenerConnAcceptedTotalLabelJoinInput + 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: NetConntrackListenerConnAcceptedTotalLabelReplaceInput + 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 @@ -257,12 +257,12 @@ definition: type: RangeResolution description: The median absolute deviation of all points in the specified interval - name: max - type: "[NetConntrackListenerConnAcceptedTotalLabel!]" + type: "[OtelScopeInfoLabel!]" - name: max_over_time type: RangeResolution description: The maximum value of all points in the specified interval - name: min - type: "[NetConntrackListenerConnAcceptedTotalLabel!]" + type: "[OtelScopeInfoLabel!]" - name: min_over_time type: RangeResolution description: The minimum value of all points in the specified interval @@ -312,11 +312,11 @@ definition: 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: "[NetConntrackListenerConnAcceptedTotalLabel!]" + 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: "[NetConntrackListenerConnAcceptedTotalLabel!]" + type: "[OtelScopeInfoLabel!]" description: Same as sort_by_label, but sorts in descending order - name: sort_desc type: Boolean @@ -325,17 +325,17 @@ definition: type: Boolean description: Calculates the square root of all elements in v - name: stddev - type: "[NetConntrackListenerConnAcceptedTotalLabel!]" + type: "[OtelScopeInfoLabel!]" - name: stddev_over_time type: RangeResolution description: The population standard deviation of the values in the specified interval - name: stdvar - type: "[NetConntrackListenerConnAcceptedTotalLabel!]" + type: "[OtelScopeInfoLabel!]" - name: stdvar_over_time type: RangeResolution description: The population standard variance of the values in the specified interval - name: sum - type: "[NetConntrackListenerConnAcceptedTotalLabel!]" + type: "[OtelScopeInfoLabel!]" - name: sum_over_time type: RangeResolution description: The sum of all values in the specified interval @@ -354,17 +354,17 @@ definition: type: Int64 description: Largest k elements by sample value graphql: - typeName: NetConntrackListenerConnAcceptedTotalFunctions - inputTypeName: NetConntrackListenerConnAcceptedTotalFunctions_input + typeName: OtelScopeInfoFunctions + inputTypeName: OtelScopeInfoFunctions_input dataConnectorTypeMapping: - dataConnectorName: prometheus - dataConnectorObjectType: NetConntrackListenerConnAcceptedTotalFunctions + dataConnectorObjectType: OtelScopeInfoFunctions --- kind: TypePermissions version: v1 definition: - typeName: NetConntrackListenerConnAcceptedTotalFunctions + typeName: OtelScopeInfoFunctions permissions: - role: admin output: @@ -453,7 +453,7 @@ definition: kind: ObjectType version: v1 definition: - name: NetConntrackListenerConnAcceptedTotal + name: OtelScopeInfo fields: - name: instance type: String! @@ -462,7 +462,7 @@ definition: - name: labels type: LabelSet! description: Labels of the metric - - name: listener_name + - name: otel_scope_name type: String! - name: timestamp type: Timestamp! @@ -474,17 +474,17 @@ definition: type: "[QueryResultValue!]!" description: An array of query result values graphql: - typeName: NetConntrackListenerConnAcceptedTotal - inputTypeName: NetConntrackListenerConnAcceptedTotal_input + typeName: OtelScopeInfo + inputTypeName: OtelScopeInfo_input dataConnectorTypeMapping: - dataConnectorName: prometheus - dataConnectorObjectType: NetConntrackListenerConnAcceptedTotal + dataConnectorObjectType: OtelScopeInfo --- kind: TypePermissions version: v1 definition: - typeName: NetConntrackListenerConnAcceptedTotal + typeName: OtelScopeInfo permissions: - role: admin output: @@ -492,55 +492,50 @@ definition: - instance - job - labels - - listener_name + - otel_scope_name - timestamp - value - values --- -kind: ObjectBooleanExpressionType +kind: BooleanExpressionType version: v1 definition: - name: NetConntrackListenerConnAcceptedTotal_bool_exp - objectType: NetConntrackListenerConnAcceptedTotal - dataConnectorName: prometheus - dataConnectorObjectType: NetConntrackListenerConnAcceptedTotal - comparableFields: - - fieldName: instance - operators: - enableAll: true - - fieldName: job - operators: - enableAll: true - - fieldName: labels - operators: - enableAll: true - - fieldName: listener_name - operators: - enableAll: true - - fieldName: timestamp - operators: - enableAll: true - - fieldName: value - operators: - enableAll: true - - fieldName: values - operators: - enableAll: true + 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: NetConntrackListenerConnAcceptedTotal_bool_exp + typeName: OtelScopeInfo_bool_exp --- kind: Model version: v1 definition: - name: net_conntrack_listener_conn_accepted_total - objectType: NetConntrackListenerConnAcceptedTotal + name: otel_scope_info + objectType: OtelScopeInfo arguments: - name: fn - type: "[NetConntrackListenerConnAcceptedTotalFunctions!]" - description: PromQL aggregation operators and functions for - net_conntrack_listener_conn_accepted_total + 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 @@ -554,8 +549,8 @@ definition: description: Evaluation timeout source: dataConnectorName: prometheus - collection: net_conntrack_listener_conn_accepted_total - filterExpressionType: NetConntrackListenerConnAcceptedTotal_bool_exp + collection: otel_scope_info + filterExpressionType: OtelScopeInfo_bool_exp orderableFields: - fieldName: instance orderByDirections: @@ -566,7 +561,7 @@ definition: - fieldName: labels orderByDirections: enableAll: true - - fieldName: listener_name + - fieldName: otel_scope_name orderByDirections: enableAll: true - fieldName: timestamp @@ -575,22 +570,19 @@ definition: - fieldName: value orderByDirections: enableAll: true - - fieldName: values - orderByDirections: - enableAll: true graphql: selectMany: - queryRootField: net_conntrack_listener_conn_accepted_total + queryRootField: otel_scope_info selectUniques: [] - argumentsInputType: net_conntrack_listener_conn_accepted_total_arguments - orderByExpressionType: net_conntrack_listener_conn_accepted_total_order_by - description: Total number of connections opened to the listener of a given name. + argumentsInputType: otel_scope_info_arguments + orderByExpressionType: otel_scope_info_order_by + description: Instrumentation Scope metadata --- kind: ModelPermissions version: v1 definition: - modelName: net_conntrack_listener_conn_accepted_total + modelName: otel_scope_info permissions: - role: admin select: diff --git a/tests/engine/app/metadata/process_cpu_seconds_total.hml b/tests/engine/app/metadata/process_cpu_seconds_total.hml index 305bdb9..cf07ece 100644 --- a/tests/engine/app/metadata/process_cpu_seconds_total.hml +++ b/tests/engine/app/metadata/process_cpu_seconds_total.hml @@ -82,19 +82,16 @@ definition: fields: - name: abs type: Boolean - description: - Returns the input vector with all sample values converted to their + 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 + 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 + 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 @@ -125,8 +122,7 @@ definition: 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 + 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 @@ -134,18 +130,15 @@ definition: 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 + 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 + 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 + description: Clamps the sample values of all elements in v to have a lower limit of min - name: cos type: Boolean @@ -165,22 +158,19 @@ definition: 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 + 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 + 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 + 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: "[ProcessCpuSecondsTotalLabel!]" @@ -191,20 +181,17 @@ definition: do not show up in the returned vector - name: histogram_count type: Boolean - description: - Returns the count of observations stored in a native histogram. + 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 + 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 + description: Calculates the φ-quantile (0 ≤ φ ≤ 1) from a classic histogram or from a native histogram - name: histogram_stddev type: Boolean @@ -214,8 +201,7 @@ definition: do not show up in the returned vector - name: histogram_stdvar type: Boolean - description: - Returns the estimated standard variance of observations in a native + description: Returns the estimated standard variance of observations in a native histogram - name: histogram_sum type: Boolean @@ -225,31 +211,26 @@ definition: 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 + 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. + 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 + 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: ProcessCpuSecondsTotalLabelJoinInput - description: - Joins all the values of all the src_labels using separator and + 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: ProcessCpuSecondsTotalLabelReplaceInput - description: - Matches the regular expression regex against the value of the label + 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 @@ -287,8 +268,7 @@ definition: 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 + 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 @@ -304,13 +284,11 @@ definition: 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 + 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 + description: Returns the number of counter resets within the provided time range as an instant vector - name: round type: Float64 @@ -320,8 +298,7 @@ definition: 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, + 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 @@ -332,13 +309,11 @@ definition: 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 + 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: "[ProcessCpuSecondsTotalLabel!]" - description: - Returns vector elements sorted by their label values and sample + 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: "[ProcessCpuSecondsTotalLabel!]" @@ -372,8 +347,7 @@ definition: 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 + 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 @@ -521,32 +495,29 @@ definition: - values --- -kind: ObjectBooleanExpressionType +kind: BooleanExpressionType version: v1 definition: name: ProcessCpuSecondsTotal_bool_exp - objectType: ProcessCpuSecondsTotal - dataConnectorName: prometheus - dataConnectorObjectType: ProcessCpuSecondsTotal - comparableFields: - - fieldName: instance - operators: - enableAll: true - - fieldName: job - operators: - enableAll: true - - fieldName: labels - operators: - enableAll: true - - fieldName: timestamp - operators: - enableAll: true - - fieldName: value - operators: - enableAll: true - - fieldName: values - operators: - enableAll: true + operand: + object: + type: ProcessCpuSecondsTotal + comparableFields: + - fieldName: instance + booleanExpressionType: String_bool_exp + - fieldName: job + booleanExpressionType: String_bool_exp + - 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: ProcessCpuSecondsTotal_bool_exp @@ -562,13 +533,11 @@ definition: description: PromQL aggregation operators and functions for process_cpu_seconds_total - name: offset type: Duration - description: - The offset modifier allows changing the time offset for individual + 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 + description: Query resolution step width in duration format or float number of seconds. - name: timeout type: Duration @@ -593,9 +562,6 @@ definition: - fieldName: value orderByDirections: enableAll: true - - fieldName: values - orderByDirections: - enableAll: true graphql: selectMany: queryRootField: process_cpu_seconds_total @@ -612,9 +578,5 @@ definition: permissions: - role: admin select: - filter: - fieldComparison: - field: job - operator: _in - value: - sessionVariable: x-hasura-jobs + filter: null + diff --git a/tests/engine/app/metadata/process_max_fds.hml b/tests/engine/app/metadata/process_max_fds.hml index 6251ddf..fc29e8e 100644 --- a/tests/engine/app/metadata/process_max_fds.hml +++ b/tests/engine/app/metadata/process_max_fds.hml @@ -495,32 +495,29 @@ definition: - values --- -kind: ObjectBooleanExpressionType +kind: BooleanExpressionType version: v1 definition: name: ProcessMaxFds_bool_exp - objectType: ProcessMaxFds - dataConnectorName: prometheus - dataConnectorObjectType: ProcessMaxFds - comparableFields: - - fieldName: instance - operators: - enableAll: true - - fieldName: job - operators: - enableAll: true - - fieldName: labels - operators: - enableAll: true - - fieldName: timestamp - operators: - enableAll: true - - fieldName: value - operators: - enableAll: true - - fieldName: values - operators: - enableAll: true + operand: + object: + type: ProcessMaxFds + comparableFields: + - fieldName: instance + booleanExpressionType: String_bool_exp + - fieldName: job + booleanExpressionType: String_bool_exp + - 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: ProcessMaxFds_bool_exp @@ -565,9 +562,6 @@ definition: - fieldName: value orderByDirections: enableAll: true - - fieldName: values - orderByDirections: - enableAll: true graphql: selectMany: queryRootField: process_max_fds diff --git a/tests/engine/app/metadata/process_network_receive_bytes_total.hml b/tests/engine/app/metadata/process_network_receive_bytes_total.hml index 8b0f88e..88da5c6 100644 --- a/tests/engine/app/metadata/process_network_receive_bytes_total.hml +++ b/tests/engine/app/metadata/process_network_receive_bytes_total.hml @@ -495,32 +495,29 @@ definition: - values --- -kind: ObjectBooleanExpressionType +kind: BooleanExpressionType version: v1 definition: name: ProcessNetworkReceiveBytesTotal_bool_exp - objectType: ProcessNetworkReceiveBytesTotal - dataConnectorName: prometheus - dataConnectorObjectType: ProcessNetworkReceiveBytesTotal - comparableFields: - - fieldName: instance - operators: - enableAll: true - - fieldName: job - operators: - enableAll: true - - fieldName: labels - operators: - enableAll: true - - fieldName: timestamp - operators: - enableAll: true - - fieldName: value - operators: - enableAll: true - - fieldName: values - operators: - enableAll: true + operand: + object: + type: ProcessNetworkReceiveBytesTotal + comparableFields: + - fieldName: instance + booleanExpressionType: String_bool_exp + - fieldName: job + booleanExpressionType: String_bool_exp + - 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: ProcessNetworkReceiveBytesTotal_bool_exp @@ -566,9 +563,6 @@ definition: - fieldName: value orderByDirections: enableAll: true - - fieldName: values - orderByDirections: - enableAll: true graphql: selectMany: queryRootField: process_network_receive_bytes_total diff --git a/tests/engine/app/metadata/process_network_transmit_bytes_total.hml b/tests/engine/app/metadata/process_network_transmit_bytes_total.hml index ef5bcf1..86f1ba2 100644 --- a/tests/engine/app/metadata/process_network_transmit_bytes_total.hml +++ b/tests/engine/app/metadata/process_network_transmit_bytes_total.hml @@ -495,32 +495,29 @@ definition: - values --- -kind: ObjectBooleanExpressionType +kind: BooleanExpressionType version: v1 definition: name: ProcessNetworkTransmitBytesTotal_bool_exp - objectType: ProcessNetworkTransmitBytesTotal - dataConnectorName: prometheus - dataConnectorObjectType: ProcessNetworkTransmitBytesTotal - comparableFields: - - fieldName: instance - operators: - enableAll: true - - fieldName: job - operators: - enableAll: true - - fieldName: labels - operators: - enableAll: true - - fieldName: timestamp - operators: - enableAll: true - - fieldName: value - operators: - enableAll: true - - fieldName: values - operators: - enableAll: true + operand: + object: + type: ProcessNetworkTransmitBytesTotal + comparableFields: + - fieldName: instance + booleanExpressionType: String_bool_exp + - fieldName: job + booleanExpressionType: String_bool_exp + - 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: ProcessNetworkTransmitBytesTotal_bool_exp @@ -566,9 +563,6 @@ definition: - fieldName: value orderByDirections: enableAll: true - - fieldName: values - orderByDirections: - enableAll: true graphql: selectMany: queryRootField: process_network_transmit_bytes_total diff --git a/tests/engine/app/metadata/process_open_fds.hml b/tests/engine/app/metadata/process_open_fds.hml index 5684db1..ca8848d 100644 --- a/tests/engine/app/metadata/process_open_fds.hml +++ b/tests/engine/app/metadata/process_open_fds.hml @@ -495,32 +495,29 @@ definition: - values --- -kind: ObjectBooleanExpressionType +kind: BooleanExpressionType version: v1 definition: name: ProcessOpenFds_bool_exp - objectType: ProcessOpenFds - dataConnectorName: prometheus - dataConnectorObjectType: ProcessOpenFds - comparableFields: - - fieldName: instance - operators: - enableAll: true - - fieldName: job - operators: - enableAll: true - - fieldName: labels - operators: - enableAll: true - - fieldName: timestamp - operators: - enableAll: true - - fieldName: value - operators: - enableAll: true - - fieldName: values - operators: - enableAll: true + operand: + object: + type: ProcessOpenFds + comparableFields: + - fieldName: instance + booleanExpressionType: String_bool_exp + - fieldName: job + booleanExpressionType: String_bool_exp + - 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: ProcessOpenFds_bool_exp @@ -565,9 +562,6 @@ definition: - fieldName: value orderByDirections: enableAll: true - - fieldName: values - orderByDirections: - enableAll: true graphql: selectMany: queryRootField: process_open_fds diff --git a/tests/engine/app/metadata/process_resident_memory_bytes.hml b/tests/engine/app/metadata/process_resident_memory_bytes.hml index 67eadbe..2392385 100644 --- a/tests/engine/app/metadata/process_resident_memory_bytes.hml +++ b/tests/engine/app/metadata/process_resident_memory_bytes.hml @@ -495,32 +495,29 @@ definition: - values --- -kind: ObjectBooleanExpressionType +kind: BooleanExpressionType version: v1 definition: name: ProcessResidentMemoryBytes_bool_exp - objectType: ProcessResidentMemoryBytes - dataConnectorName: prometheus - dataConnectorObjectType: ProcessResidentMemoryBytes - comparableFields: - - fieldName: instance - operators: - enableAll: true - - fieldName: job - operators: - enableAll: true - - fieldName: labels - operators: - enableAll: true - - fieldName: timestamp - operators: - enableAll: true - - fieldName: value - operators: - enableAll: true - - fieldName: values - operators: - enableAll: true + operand: + object: + type: ProcessResidentMemoryBytes + comparableFields: + - fieldName: instance + booleanExpressionType: String_bool_exp + - fieldName: job + booleanExpressionType: String_bool_exp + - 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: ProcessResidentMemoryBytes_bool_exp @@ -566,9 +563,6 @@ definition: - fieldName: value orderByDirections: enableAll: true - - fieldName: values - orderByDirections: - enableAll: true graphql: selectMany: queryRootField: process_resident_memory_bytes diff --git a/tests/engine/app/metadata/process_start_time_seconds.hml b/tests/engine/app/metadata/process_start_time_seconds.hml index 49f8607..ad26a2c 100644 --- a/tests/engine/app/metadata/process_start_time_seconds.hml +++ b/tests/engine/app/metadata/process_start_time_seconds.hml @@ -495,32 +495,29 @@ definition: - values --- -kind: ObjectBooleanExpressionType +kind: BooleanExpressionType version: v1 definition: name: ProcessStartTimeSeconds_bool_exp - objectType: ProcessStartTimeSeconds - dataConnectorName: prometheus - dataConnectorObjectType: ProcessStartTimeSeconds - comparableFields: - - fieldName: instance - operators: - enableAll: true - - fieldName: job - operators: - enableAll: true - - fieldName: labels - operators: - enableAll: true - - fieldName: timestamp - operators: - enableAll: true - - fieldName: value - operators: - enableAll: true - - fieldName: values - operators: - enableAll: true + operand: + object: + type: ProcessStartTimeSeconds + comparableFields: + - fieldName: instance + booleanExpressionType: String_bool_exp + - fieldName: job + booleanExpressionType: String_bool_exp + - 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: ProcessStartTimeSeconds_bool_exp @@ -565,9 +562,6 @@ definition: - fieldName: value orderByDirections: enableAll: true - - fieldName: values - orderByDirections: - enableAll: true graphql: selectMany: queryRootField: process_start_time_seconds diff --git a/tests/engine/app/metadata/process_virtual_memory_bytes.hml b/tests/engine/app/metadata/process_virtual_memory_bytes.hml index 89d2f2b..daccb18 100644 --- a/tests/engine/app/metadata/process_virtual_memory_bytes.hml +++ b/tests/engine/app/metadata/process_virtual_memory_bytes.hml @@ -495,32 +495,29 @@ definition: - values --- -kind: ObjectBooleanExpressionType +kind: BooleanExpressionType version: v1 definition: name: ProcessVirtualMemoryBytes_bool_exp - objectType: ProcessVirtualMemoryBytes - dataConnectorName: prometheus - dataConnectorObjectType: ProcessVirtualMemoryBytes - comparableFields: - - fieldName: instance - operators: - enableAll: true - - fieldName: job - operators: - enableAll: true - - fieldName: labels - operators: - enableAll: true - - fieldName: timestamp - operators: - enableAll: true - - fieldName: value - operators: - enableAll: true - - fieldName: values - operators: - enableAll: true + operand: + object: + type: ProcessVirtualMemoryBytes + comparableFields: + - fieldName: instance + booleanExpressionType: String_bool_exp + - fieldName: job + booleanExpressionType: String_bool_exp + - 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: ProcessVirtualMemoryBytes_bool_exp @@ -566,9 +563,6 @@ definition: - fieldName: value orderByDirections: enableAll: true - - fieldName: values - orderByDirections: - enableAll: true graphql: selectMany: queryRootField: process_virtual_memory_bytes diff --git a/tests/engine/app/metadata/process_virtual_memory_max_bytes.hml b/tests/engine/app/metadata/process_virtual_memory_max_bytes.hml index 98b7bba..3b4c43a 100644 --- a/tests/engine/app/metadata/process_virtual_memory_max_bytes.hml +++ b/tests/engine/app/metadata/process_virtual_memory_max_bytes.hml @@ -495,32 +495,29 @@ definition: - values --- -kind: ObjectBooleanExpressionType +kind: BooleanExpressionType version: v1 definition: name: ProcessVirtualMemoryMaxBytes_bool_exp - objectType: ProcessVirtualMemoryMaxBytes - dataConnectorName: prometheus - dataConnectorObjectType: ProcessVirtualMemoryMaxBytes - comparableFields: - - fieldName: instance - operators: - enableAll: true - - fieldName: job - operators: - enableAll: true - - fieldName: labels - operators: - enableAll: true - - fieldName: timestamp - operators: - enableAll: true - - fieldName: value - operators: - enableAll: true - - fieldName: values - operators: - enableAll: true + operand: + object: + type: ProcessVirtualMemoryMaxBytes + comparableFields: + - fieldName: instance + booleanExpressionType: String_bool_exp + - fieldName: job + booleanExpressionType: String_bool_exp + - 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: ProcessVirtualMemoryMaxBytes_bool_exp @@ -566,9 +563,6 @@ definition: - fieldName: value orderByDirections: enableAll: true - - fieldName: values - orderByDirections: - enableAll: true graphql: selectMany: queryRootField: process_virtual_memory_max_bytes diff --git a/tests/engine/app/metadata/prometheus-types.hml b/tests/engine/app/metadata/prometheus-types.hml index 139841e..332ede7 100644 --- a/tests/engine/app/metadata/prometheus-types.hml +++ b/tests/engine/app/metadata/prometheus-types.hml @@ -7,160 +7,298 @@ definition: typeName: RangeResolution --- -kind: ScalarType +kind: BooleanExpressionType version: v1 definition: - name: NetConntrackDialerConnAttemptedTotalLabel + name: RangeResolution_bool_exp + operand: + scalar: + type: RangeResolution + comparisonOperators: [] + dataConnectorOperatorMapping: + - dataConnectorName: prometheus + dataConnectorScalarType: RangeResolution + operatorMapping: {} + logicalOperators: + enable: true + isNull: + enable: true graphql: - typeName: NetConntrackDialerConnAttemptedTotalLabel + typeName: RangeResolution_bool_exp --- kind: ScalarType version: v1 definition: - name: Int64 + name: NetConntrackDialerConnAttemptedTotalLabel graphql: - typeName: Int64 + typeName: NetConntrackDialerConnAttemptedTotalLabel --- -kind: ScalarType +kind: BooleanExpressionType version: v1 definition: - name: Float64 + name: NetConntrackDialerConnAttemptedTotalLabel_bool_exp + operand: + scalar: + type: NetConntrackDialerConnAttemptedTotalLabel + comparisonOperators: [] + dataConnectorOperatorMapping: + - dataConnectorName: prometheus + dataConnectorScalarType: NetConntrackDialerConnAttemptedTotalLabel + operatorMapping: {} + logicalOperators: + enable: true + isNull: + enable: true graphql: - typeName: Float64 + typeName: NetConntrackDialerConnAttemptedTotalLabel_bool_exp --- kind: ScalarType version: v1 definition: - name: Duration + name: Int64 graphql: - typeName: Duration + typeName: Int64 --- -kind: ScalarType +kind: BooleanExpressionType version: v1 definition: - name: LabelSet + name: Int64_bool_exp + operand: + scalar: + type: Int64 + comparisonOperators: [] + dataConnectorOperatorMapping: + - dataConnectorName: prometheus + dataConnectorScalarType: Int64 + operatorMapping: {} + logicalOperators: + enable: true + isNull: + enable: true graphql: - typeName: LabelSet + typeName: Int64_bool_exp --- kind: ScalarType version: v1 definition: - name: Timestamp + name: Float64 graphql: - typeName: Timestamp + typeName: Float64 --- -kind: ScalarType +kind: BooleanExpressionType version: v1 definition: - name: Decimal + name: Float64_bool_exp + operand: + scalar: + type: Float64 + comparisonOperators: [] + dataConnectorOperatorMapping: + - dataConnectorName: prometheus + dataConnectorScalarType: Float64 + operatorMapping: {} + logicalOperators: + enable: true + isNull: + enable: true graphql: - typeName: Decimal + typeName: Float64_bool_exp --- -kind: DataConnectorScalarRepresentation +kind: ScalarType version: v1 definition: - dataConnectorName: prometheus - dataConnectorScalarType: Boolean - representation: Boolean + name: Duration graphql: - comparisonExpressionTypeName: Boolean_comparison_exp + typeName: Duration --- -kind: DataConnectorScalarRepresentation +kind: BooleanExpressionType version: v1 definition: - dataConnectorName: prometheus - dataConnectorScalarType: RangeResolution - representation: RangeResolution + name: Duration_bool_exp + operand: + scalar: + type: Duration + comparisonOperators: [] + dataConnectorOperatorMapping: + - dataConnectorName: prometheus + dataConnectorScalarType: Duration + operatorMapping: {} + logicalOperators: + enable: true + isNull: + enable: true graphql: - comparisonExpressionTypeName: RangeResolution_comparison_exp + typeName: Duration_bool_exp --- -kind: DataConnectorScalarRepresentation +kind: ScalarType version: v1 definition: - dataConnectorName: prometheus - dataConnectorScalarType: NetConntrackDialerConnAttemptedTotalLabel - representation: NetConntrackDialerConnAttemptedTotalLabel + name: LabelSet graphql: - comparisonExpressionTypeName: NetConntrackDialerConnAttemptedTotalLabel_comparison_exp + typeName: LabelSet --- -kind: DataConnectorScalarRepresentation +kind: BooleanExpressionType version: v1 definition: - dataConnectorName: prometheus - dataConnectorScalarType: Int64 - representation: Int64 + name: LabelSet_bool_exp + operand: + scalar: + type: LabelSet + comparisonOperators: [] + dataConnectorOperatorMapping: + - dataConnectorName: prometheus + dataConnectorScalarType: LabelSet + operatorMapping: {} + logicalOperators: + enable: true + isNull: + enable: true graphql: - comparisonExpressionTypeName: Int64_comparison_exp + typeName: LabelSet_bool_exp --- -kind: DataConnectorScalarRepresentation +kind: ScalarType version: v1 definition: - dataConnectorName: prometheus - dataConnectorScalarType: Float64 - representation: Float64 + name: Timestamp graphql: - comparisonExpressionTypeName: Float64_comparison_exp + typeName: Timestamp --- -kind: DataConnectorScalarRepresentation +kind: BooleanExpressionType version: v1 definition: - dataConnectorName: prometheus - dataConnectorScalarType: String - representation: String + name: Timestamp_bool_exp + operand: + scalar: + type: Timestamp + comparisonOperators: + - name: _eq + argumentType: Timestamp! + - name: _gt + argumentType: String! + - name: _lt + argumentType: String! + dataConnectorOperatorMapping: + - dataConnectorName: prometheus + dataConnectorScalarType: Timestamp + operatorMapping: {} + logicalOperators: + enable: true + isNull: + enable: true graphql: - comparisonExpressionTypeName: String_comparison_exp + typeName: Timestamp_bool_exp --- -kind: DataConnectorScalarRepresentation +kind: ScalarType version: v1 definition: - dataConnectorName: prometheus - dataConnectorScalarType: Duration - representation: Duration + name: Decimal graphql: - comparisonExpressionTypeName: Duration_comparison_exp + typeName: Decimal --- -kind: DataConnectorScalarRepresentation -version: v1 -definition: - dataConnectorName: prometheus - dataConnectorScalarType: LabelSet - representation: LabelSet - graphql: - comparisonExpressionTypeName: LabelSet_comparison_exp +kind: BooleanExpressionType +version: v1 +definition: + name: Decimal_bool_exp + operand: + scalar: + type: Decimal + comparisonOperators: + - name: _eq + argumentType: Decimal! + - name: _gt + argumentType: Decimal! + - name: _gte + argumentType: Decimal! + - name: _lt + argumentType: Decimal! + - name: _lte + argumentType: Decimal! + - name: _neq + argumentType: Decimal! + dataConnectorOperatorMapping: + - dataConnectorName: prometheus + dataConnectorScalarType: Decimal + operatorMapping: {} + logicalOperators: + enable: true + isNull: + enable: true + graphql: + typeName: Decimal_bool_exp --- -kind: DataConnectorScalarRepresentation +kind: ScalarType version: v1 definition: - dataConnectorName: prometheus - dataConnectorScalarType: Timestamp - representation: Timestamp + name: JSON graphql: - comparisonExpressionTypeName: Timestamp_comparison_exp + typeName: JSON --- -kind: DataConnectorScalarRepresentation -version: v1 -definition: - dataConnectorName: prometheus - dataConnectorScalarType: Decimal - representation: Decimal - graphql: - comparisonExpressionTypeName: Decimal_comparison_exp +kind: BooleanExpressionType +version: v1 +definition: + name: JSON_bool_exp + operand: + scalar: + type: JSON + comparisonOperators: [] + dataConnectorOperatorMapping: + - dataConnectorName: prometheus + dataConnectorScalarType: JSON + operatorMapping: {} + logicalOperators: + enable: true + isNull: + enable: true + graphql: + typeName: JSON_bool_exp + +--- +kind: BooleanExpressionType +version: v1 +definition: + name: String_bool_exp + operand: + scalar: + type: String + comparisonOperators: + - name: _eq + argumentType: String! + - name: _in + argumentType: JSON! + - name: _neq + argumentType: String! + - name: _nin + argumentType: "[String!]!" + - name: _nregex + argumentType: String! + - name: _regex + argumentType: String! + dataConnectorOperatorMapping: + - dataConnectorName: prometheus + dataConnectorScalarType: String + operatorMapping: {} + logicalOperators: + enable: true + isNull: + enable: true + graphql: + typeName: String_bool_exp --- kind: ScalarType @@ -171,14 +309,24 @@ definition: typeName: NetConntrackDialerConnClosedTotalLabel --- -kind: DataConnectorScalarRepresentation +kind: BooleanExpressionType version: v1 definition: - dataConnectorName: prometheus - dataConnectorScalarType: NetConntrackDialerConnClosedTotalLabel - representation: NetConntrackDialerConnClosedTotalLabel + name: NetConntrackDialerConnClosedTotalLabel_bool_exp + operand: + scalar: + type: NetConntrackDialerConnClosedTotalLabel + comparisonOperators: [] + dataConnectorOperatorMapping: + - dataConnectorName: prometheus + dataConnectorScalarType: NetConntrackDialerConnClosedTotalLabel + operatorMapping: {} + logicalOperators: + enable: true + isNull: + enable: true graphql: - comparisonExpressionTypeName: NetConntrackDialerConnClosedTotalLabel_comparison_exp + typeName: NetConntrackDialerConnClosedTotalLabel_bool_exp --- kind: ScalarType @@ -189,14 +337,24 @@ definition: typeName: NetConntrackDialerConnEstablishedTotalLabel --- -kind: DataConnectorScalarRepresentation +kind: BooleanExpressionType version: v1 definition: - dataConnectorName: prometheus - dataConnectorScalarType: NetConntrackDialerConnEstablishedTotalLabel - representation: NetConntrackDialerConnEstablishedTotalLabel + name: NetConntrackDialerConnEstablishedTotalLabel_bool_exp + operand: + scalar: + type: NetConntrackDialerConnEstablishedTotalLabel + comparisonOperators: [] + dataConnectorOperatorMapping: + - dataConnectorName: prometheus + dataConnectorScalarType: NetConntrackDialerConnEstablishedTotalLabel + operatorMapping: {} + logicalOperators: + enable: true + isNull: + enable: true graphql: - comparisonExpressionTypeName: NetConntrackDialerConnEstablishedTotalLabel_comparison_exp + typeName: NetConntrackDialerConnEstablishedTotalLabel_bool_exp --- kind: ScalarType @@ -207,50 +365,24 @@ definition: typeName: NetConntrackDialerConnFailedTotalLabel --- -kind: DataConnectorScalarRepresentation -version: v1 -definition: - dataConnectorName: prometheus - dataConnectorScalarType: NetConntrackDialerConnFailedTotalLabel - representation: NetConntrackDialerConnFailedTotalLabel - graphql: - comparisonExpressionTypeName: NetConntrackDialerConnFailedTotalLabel_comparison_exp - ---- -kind: ScalarType -version: v1 -definition: - name: NetConntrackListenerConnAcceptedTotalLabel - graphql: - typeName: NetConntrackListenerConnAcceptedTotalLabel - ---- -kind: DataConnectorScalarRepresentation +kind: BooleanExpressionType version: v1 definition: - dataConnectorName: prometheus - dataConnectorScalarType: NetConntrackListenerConnAcceptedTotalLabel - representation: NetConntrackListenerConnAcceptedTotalLabel + name: NetConntrackDialerConnFailedTotalLabel_bool_exp + operand: + scalar: + type: NetConntrackDialerConnFailedTotalLabel + comparisonOperators: [] + dataConnectorOperatorMapping: + - dataConnectorName: prometheus + dataConnectorScalarType: NetConntrackDialerConnFailedTotalLabel + operatorMapping: {} + logicalOperators: + enable: true + isNull: + enable: true graphql: - comparisonExpressionTypeName: NetConntrackListenerConnAcceptedTotalLabel_comparison_exp - ---- -kind: ScalarType -version: v1 -definition: - name: NetConntrackListenerConnClosedTotalLabel - graphql: - typeName: NetConntrackListenerConnClosedTotalLabel - ---- -kind: DataConnectorScalarRepresentation -version: v1 -definition: - dataConnectorName: prometheus - dataConnectorScalarType: NetConntrackListenerConnClosedTotalLabel - representation: NetConntrackListenerConnClosedTotalLabel - graphql: - comparisonExpressionTypeName: NetConntrackListenerConnClosedTotalLabel_comparison_exp + typeName: NetConntrackDialerConnFailedTotalLabel_bool_exp --- kind: ScalarType @@ -261,14 +393,24 @@ definition: typeName: ProcessCpuSecondsTotalLabel --- -kind: DataConnectorScalarRepresentation +kind: BooleanExpressionType version: v1 definition: - dataConnectorName: prometheus - dataConnectorScalarType: ProcessCpuSecondsTotalLabel - representation: ProcessCpuSecondsTotalLabel + name: ProcessCpuSecondsTotalLabel_bool_exp + operand: + scalar: + type: ProcessCpuSecondsTotalLabel + comparisonOperators: [] + dataConnectorOperatorMapping: + - dataConnectorName: prometheus + dataConnectorScalarType: ProcessCpuSecondsTotalLabel + operatorMapping: {} + logicalOperators: + enable: true + isNull: + enable: true graphql: - comparisonExpressionTypeName: ProcessCpuSecondsTotalLabel_comparison_exp + typeName: ProcessCpuSecondsTotalLabel_bool_exp --- kind: ScalarType @@ -279,14 +421,24 @@ definition: typeName: ProcessMaxFdsLabel --- -kind: DataConnectorScalarRepresentation +kind: BooleanExpressionType version: v1 definition: - dataConnectorName: prometheus - dataConnectorScalarType: ProcessMaxFdsLabel - representation: ProcessMaxFdsLabel + name: ProcessMaxFdsLabel_bool_exp + operand: + scalar: + type: ProcessMaxFdsLabel + comparisonOperators: [] + dataConnectorOperatorMapping: + - dataConnectorName: prometheus + dataConnectorScalarType: ProcessMaxFdsLabel + operatorMapping: {} + logicalOperators: + enable: true + isNull: + enable: true graphql: - comparisonExpressionTypeName: ProcessMaxFdsLabel_comparison_exp + typeName: ProcessMaxFdsLabel_bool_exp --- kind: ScalarType @@ -297,14 +449,24 @@ definition: typeName: ProcessNetworkReceiveBytesTotalLabel --- -kind: DataConnectorScalarRepresentation +kind: BooleanExpressionType version: v1 definition: - dataConnectorName: prometheus - dataConnectorScalarType: ProcessNetworkReceiveBytesTotalLabel - representation: ProcessNetworkReceiveBytesTotalLabel + name: ProcessNetworkReceiveBytesTotalLabel_bool_exp + operand: + scalar: + type: ProcessNetworkReceiveBytesTotalLabel + comparisonOperators: [] + dataConnectorOperatorMapping: + - dataConnectorName: prometheus + dataConnectorScalarType: ProcessNetworkReceiveBytesTotalLabel + operatorMapping: {} + logicalOperators: + enable: true + isNull: + enable: true graphql: - comparisonExpressionTypeName: ProcessNetworkReceiveBytesTotalLabel_comparison_exp + typeName: ProcessNetworkReceiveBytesTotalLabel_bool_exp --- kind: ScalarType @@ -315,14 +477,24 @@ definition: typeName: ProcessNetworkTransmitBytesTotalLabel --- -kind: DataConnectorScalarRepresentation +kind: BooleanExpressionType version: v1 definition: - dataConnectorName: prometheus - dataConnectorScalarType: ProcessNetworkTransmitBytesTotalLabel - representation: ProcessNetworkTransmitBytesTotalLabel + name: ProcessNetworkTransmitBytesTotalLabel_bool_exp + operand: + scalar: + type: ProcessNetworkTransmitBytesTotalLabel + comparisonOperators: [] + dataConnectorOperatorMapping: + - dataConnectorName: prometheus + dataConnectorScalarType: ProcessNetworkTransmitBytesTotalLabel + operatorMapping: {} + logicalOperators: + enable: true + isNull: + enable: true graphql: - comparisonExpressionTypeName: ProcessNetworkTransmitBytesTotalLabel_comparison_exp + typeName: ProcessNetworkTransmitBytesTotalLabel_bool_exp --- kind: ScalarType @@ -333,14 +505,24 @@ definition: typeName: ProcessOpenFdsLabel --- -kind: DataConnectorScalarRepresentation +kind: BooleanExpressionType version: v1 definition: - dataConnectorName: prometheus - dataConnectorScalarType: ProcessOpenFdsLabel - representation: ProcessOpenFdsLabel + name: ProcessOpenFdsLabel_bool_exp + operand: + scalar: + type: ProcessOpenFdsLabel + comparisonOperators: [] + dataConnectorOperatorMapping: + - dataConnectorName: prometheus + dataConnectorScalarType: ProcessOpenFdsLabel + operatorMapping: {} + logicalOperators: + enable: true + isNull: + enable: true graphql: - comparisonExpressionTypeName: ProcessOpenFdsLabel_comparison_exp + typeName: ProcessOpenFdsLabel_bool_exp --- kind: ScalarType @@ -351,14 +533,24 @@ definition: typeName: ProcessResidentMemoryBytesLabel --- -kind: DataConnectorScalarRepresentation +kind: BooleanExpressionType version: v1 definition: - dataConnectorName: prometheus - dataConnectorScalarType: ProcessResidentMemoryBytesLabel - representation: ProcessResidentMemoryBytesLabel + name: ProcessResidentMemoryBytesLabel_bool_exp + operand: + scalar: + type: ProcessResidentMemoryBytesLabel + comparisonOperators: [] + dataConnectorOperatorMapping: + - dataConnectorName: prometheus + dataConnectorScalarType: ProcessResidentMemoryBytesLabel + operatorMapping: {} + logicalOperators: + enable: true + isNull: + enable: true graphql: - comparisonExpressionTypeName: ProcessResidentMemoryBytesLabel_comparison_exp + typeName: ProcessResidentMemoryBytesLabel_bool_exp --- kind: ScalarType @@ -369,14 +561,24 @@ definition: typeName: ProcessStartTimeSecondsLabel --- -kind: DataConnectorScalarRepresentation +kind: BooleanExpressionType version: v1 definition: - dataConnectorName: prometheus - dataConnectorScalarType: ProcessStartTimeSecondsLabel - representation: ProcessStartTimeSecondsLabel + name: ProcessStartTimeSecondsLabel_bool_exp + operand: + scalar: + type: ProcessStartTimeSecondsLabel + comparisonOperators: [] + dataConnectorOperatorMapping: + - dataConnectorName: prometheus + dataConnectorScalarType: ProcessStartTimeSecondsLabel + operatorMapping: {} + logicalOperators: + enable: true + isNull: + enable: true graphql: - comparisonExpressionTypeName: ProcessStartTimeSecondsLabel_comparison_exp + typeName: ProcessStartTimeSecondsLabel_bool_exp --- kind: ScalarType @@ -387,14 +589,24 @@ definition: typeName: ProcessVirtualMemoryBytesLabel --- -kind: DataConnectorScalarRepresentation +kind: BooleanExpressionType version: v1 definition: - dataConnectorName: prometheus - dataConnectorScalarType: ProcessVirtualMemoryBytesLabel - representation: ProcessVirtualMemoryBytesLabel + name: ProcessVirtualMemoryBytesLabel_bool_exp + operand: + scalar: + type: ProcessVirtualMemoryBytesLabel + comparisonOperators: [] + dataConnectorOperatorMapping: + - dataConnectorName: prometheus + dataConnectorScalarType: ProcessVirtualMemoryBytesLabel + operatorMapping: {} + logicalOperators: + enable: true + isNull: + enable: true graphql: - comparisonExpressionTypeName: ProcessVirtualMemoryBytesLabel_comparison_exp + typeName: ProcessVirtualMemoryBytesLabel_bool_exp --- kind: ScalarType @@ -405,14 +617,24 @@ definition: typeName: ProcessVirtualMemoryMaxBytesLabel --- -kind: DataConnectorScalarRepresentation +kind: BooleanExpressionType version: v1 definition: - dataConnectorName: prometheus - dataConnectorScalarType: ProcessVirtualMemoryMaxBytesLabel - representation: ProcessVirtualMemoryMaxBytesLabel + name: ProcessVirtualMemoryMaxBytesLabel_bool_exp + operand: + scalar: + type: ProcessVirtualMemoryMaxBytesLabel + comparisonOperators: [] + dataConnectorOperatorMapping: + - dataConnectorName: prometheus + dataConnectorScalarType: ProcessVirtualMemoryMaxBytesLabel + operatorMapping: {} + logicalOperators: + enable: true + isNull: + enable: true graphql: - comparisonExpressionTypeName: ProcessVirtualMemoryMaxBytesLabel_comparison_exp + typeName: ProcessVirtualMemoryMaxBytesLabel_bool_exp --- kind: ScalarType @@ -423,14 +645,24 @@ definition: typeName: PromhttpMetricHandlerErrorsTotalLabel --- -kind: DataConnectorScalarRepresentation +kind: BooleanExpressionType version: v1 definition: - dataConnectorName: prometheus - dataConnectorScalarType: PromhttpMetricHandlerErrorsTotalLabel - representation: PromhttpMetricHandlerErrorsTotalLabel + name: PromhttpMetricHandlerErrorsTotalLabel_bool_exp + operand: + scalar: + type: PromhttpMetricHandlerErrorsTotalLabel + comparisonOperators: [] + dataConnectorOperatorMapping: + - dataConnectorName: prometheus + dataConnectorScalarType: PromhttpMetricHandlerErrorsTotalLabel + operatorMapping: {} + logicalOperators: + enable: true + isNull: + enable: true graphql: - comparisonExpressionTypeName: PromhttpMetricHandlerErrorsTotalLabel_comparison_exp + typeName: PromhttpMetricHandlerErrorsTotalLabel_bool_exp --- kind: ScalarType @@ -441,14 +673,24 @@ definition: typeName: PromhttpMetricHandlerRequestsInFlightLabel --- -kind: DataConnectorScalarRepresentation +kind: BooleanExpressionType version: v1 definition: - dataConnectorName: prometheus - dataConnectorScalarType: PromhttpMetricHandlerRequestsInFlightLabel - representation: PromhttpMetricHandlerRequestsInFlightLabel + name: PromhttpMetricHandlerRequestsInFlightLabel_bool_exp + operand: + scalar: + type: PromhttpMetricHandlerRequestsInFlightLabel + comparisonOperators: [] + dataConnectorOperatorMapping: + - dataConnectorName: prometheus + dataConnectorScalarType: PromhttpMetricHandlerRequestsInFlightLabel + operatorMapping: {} + logicalOperators: + enable: true + isNull: + enable: true graphql: - comparisonExpressionTypeName: PromhttpMetricHandlerRequestsInFlightLabel_comparison_exp + typeName: PromhttpMetricHandlerRequestsInFlightLabel_bool_exp --- kind: ScalarType @@ -459,14 +701,24 @@ definition: typeName: PromhttpMetricHandlerRequestsTotalLabel --- -kind: DataConnectorScalarRepresentation +kind: BooleanExpressionType version: v1 definition: - dataConnectorName: prometheus - dataConnectorScalarType: PromhttpMetricHandlerRequestsTotalLabel - representation: PromhttpMetricHandlerRequestsTotalLabel + name: PromhttpMetricHandlerRequestsTotalLabel_bool_exp + operand: + scalar: + type: PromhttpMetricHandlerRequestsTotalLabel + comparisonOperators: [] + dataConnectorOperatorMapping: + - dataConnectorName: prometheus + dataConnectorScalarType: PromhttpMetricHandlerRequestsTotalLabel + operatorMapping: {} + logicalOperators: + enable: true + isNull: + enable: true graphql: - comparisonExpressionTypeName: PromhttpMetricHandlerRequestsTotalLabel_comparison_exp + typeName: PromhttpMetricHandlerRequestsTotalLabel_bool_exp --- kind: ScalarType @@ -477,14 +729,24 @@ definition: typeName: TargetInfoLabel --- -kind: DataConnectorScalarRepresentation +kind: BooleanExpressionType version: v1 definition: - dataConnectorName: prometheus - dataConnectorScalarType: TargetInfoLabel - representation: TargetInfoLabel + name: TargetInfoLabel_bool_exp + operand: + scalar: + type: TargetInfoLabel + comparisonOperators: [] + dataConnectorOperatorMapping: + - dataConnectorName: prometheus + dataConnectorScalarType: TargetInfoLabel + operatorMapping: {} + logicalOperators: + enable: true + isNull: + enable: true graphql: - comparisonExpressionTypeName: TargetInfoLabel_comparison_exp + typeName: TargetInfoLabel_bool_exp --- kind: ScalarType @@ -495,12 +757,24 @@ definition: typeName: TimestampTZ --- -kind: ScalarType +kind: BooleanExpressionType version: v1 definition: - name: JSON + name: TimestampTZ_bool_exp + operand: + scalar: + type: TimestampTZ + comparisonOperators: [] + dataConnectorOperatorMapping: + - dataConnectorName: prometheus + dataConnectorScalarType: TimestampTZ + operatorMapping: {} + logicalOperators: + enable: true + isNull: + enable: true graphql: - typeName: JSON + typeName: TimestampTZ_bool_exp --- kind: ScalarType @@ -511,32 +785,162 @@ definition: typeName: AlertState --- -kind: DataConnectorScalarRepresentation +kind: BooleanExpressionType +version: v1 +definition: + name: AlertState_bool_exp + operand: + scalar: + type: AlertState + comparisonOperators: [] + dataConnectorOperatorMapping: + - dataConnectorName: prometheus + dataConnectorScalarType: AlertState + operatorMapping: {} + logicalOperators: + enable: true + isNull: + enable: true + 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: - dataConnectorName: prometheus - dataConnectorScalarType: TimestampTZ - representation: TimestampTZ + name: NdcPrometheusQueryTotalTimeBucketLabel graphql: - comparisonExpressionTypeName: TimestampTZ_comparison_exp + typeName: NdcPrometheusQueryTotalTimeBucketLabel --- -kind: DataConnectorScalarRepresentation +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: - dataConnectorName: prometheus - dataConnectorScalarType: JSON - representation: JSON + name: OtelScopeInfoLabel graphql: - comparisonExpressionTypeName: JSON_comparison_exp + typeName: OtelScopeInfoLabel --- -kind: DataConnectorScalarRepresentation +kind: BooleanExpressionType version: v1 definition: - dataConnectorName: prometheus - dataConnectorScalarType: AlertState - representation: AlertState + name: OtelScopeInfoLabel_bool_exp + operand: + scalar: + type: OtelScopeInfoLabel + comparisonOperators: [] + dataConnectorOperatorMapping: + - dataConnectorName: prometheus + dataConnectorScalarType: OtelScopeInfoLabel + operatorMapping: {} + logicalOperators: + enable: true + isNull: + enable: true graphql: - comparisonExpressionTypeName: AlertState_comparison_exp + typeName: OtelScopeInfoLabel_bool_exp diff --git a/tests/engine/app/metadata/prometheus.hml b/tests/engine/app/metadata/prometheus.hml index 2175bd7..4b93e9a 100644 --- a/tests/engine/app/metadata/prometheus.hml +++ b/tests/engine/app/metadata/prometheus.hml @@ -84,58 +84,75 @@ definition: type: json aggregate_functions: {} comparison_operators: {} - NetConntrackDialerConnAttemptedTotalLabel: + NdcPrometheusQueryTotalLabel: representation: type: enum one_of: - - dialer_name + - collection + - http_status - instance - job + - otel_scope_name + - status aggregate_functions: {} comparison_operators: {} - NetConntrackDialerConnClosedTotalLabel: + 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 one_of: - - dialer_name - instance - job aggregate_functions: {} comparison_operators: {} - NetConntrackDialerConnEstablishedTotalLabel: + NetConntrackDialerConnClosedTotalLabel: representation: type: enum one_of: - - job - - dialer_name - instance + - job aggregate_functions: {} comparison_operators: {} - NetConntrackDialerConnFailedTotalLabel: + NetConntrackDialerConnEstablishedTotalLabel: representation: type: enum one_of: - instance - job - - reason - - dialer_name aggregate_functions: {} comparison_operators: {} - NetConntrackListenerConnAcceptedTotalLabel: + NetConntrackDialerConnFailedTotalLabel: representation: type: enum one_of: + - reason - instance - job - - listener_name aggregate_functions: {} comparison_operators: {} - NetConntrackListenerConnClosedTotalLabel: + OtelScopeInfoLabel: representation: type: enum one_of: - job - - listener_name + - otel_scope_name - instance aggregate_functions: {} comparison_operators: {} @@ -191,8 +208,8 @@ definition: representation: type: enum one_of: - - instance - job + - instance aggregate_functions: {} comparison_operators: {} ProcessVirtualMemoryBytesLabel: @@ -224,8 +241,8 @@ definition: representation: type: enum one_of: - - instance - job + - instance aggregate_functions: {} comparison_operators: {} PromhttpMetricHandlerRequestsTotalLabel: @@ -280,13 +297,13 @@ definition: representation: type: enum one_of: - - telemetry_sdk_language - - 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: @@ -439,9 +456,13 @@ definition: type: type: named name: String - NetConntrackDialerConnAttemptedTotal: + NdcPrometheusQueryTotal: fields: - dialer_name: + collection: + type: + type: named + name: String + http_status: type: type: named name: String @@ -458,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: @@ -475,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 @@ -547,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: @@ -618,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: @@ -631,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: @@ -674,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: @@ -758,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: @@ -822,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: @@ -837,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: @@ -944,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: @@ -953,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: @@ -975,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: @@ -990,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: @@ -1005,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: @@ -1041,7 +1070,7 @@ definition: underlying_type: type: named name: Int64 - NetConntrackDialerConnAttemptedTotalLabelJoinInput: + NdcPrometheusQueryTotalLabelJoinInput: description: Input arguments for the label_join function fields: dest_label: @@ -1060,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: @@ -1083,21 +1112,9 @@ definition: description: Source label type: type: named - name: NetConntrackDialerConnAttemptedTotalLabel - NetConntrackDialerConnClosedTotal: + name: NdcPrometheusQueryTotalLabel + NdcPrometheusQueryTotalTimeBucket: fields: - dialer_name: - type: - type: named - name: String - instance: - type: - type: named - name: String - job: - type: - type: named - name: String labels: description: Labels of the metric type: @@ -1120,7 +1137,7 @@ definition: element_type: type: named name: QueryResultValue - NetConntrackDialerConnClosedTotalFunctions: + NdcPrometheusQueryTotalTimeBucketFunctions: fields: abs: description: Returns the input vector with all sample values converted to their absolute value @@ -1192,7 +1209,7 @@ definition: type: array element_type: type: named - name: NetConntrackDialerConnClosedTotalLabel + name: NdcPrometheusQueryTotalTimeBucketLabel avg_over_time: description: The average value of all points in the specified interval type: @@ -1263,7 +1280,7 @@ definition: type: array element_type: type: named - name: NetConntrackDialerConnClosedTotalLabel + name: NdcPrometheusQueryTotalTimeBucketLabel count_over_time: description: The count of all values in the specified interval type: @@ -1276,7 +1293,7 @@ definition: type: nullable underlying_type: type: named - name: NetConntrackDialerConnClosedTotalLabel + name: NdcPrometheusQueryTotalTimeBucketLabel deg: description: Converts radians to degrees for all elements in v type: @@ -1319,7 +1336,7 @@ definition: type: array element_type: type: named - name: NetConntrackDialerConnClosedTotalLabel + 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: @@ -1403,14 +1420,14 @@ definition: type: nullable underlying_type: type: named - name: NetConntrackDialerConnClosedTotalLabelJoinInput + 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: NetConntrackDialerConnClosedTotalLabelReplaceInput + name: NdcPrometheusQueryTotalTimeBucketLabelReplaceInput last_over_time: description: The most recent point value in the specified interval type: @@ -1467,7 +1484,7 @@ definition: type: array element_type: type: named - name: NetConntrackDialerConnClosedTotalLabel + name: NdcPrometheusQueryTotalTimeBucketLabel max_over_time: description: The maximum value of all points in the specified interval type: @@ -1482,7 +1499,7 @@ definition: type: array element_type: type: named - name: NetConntrackDialerConnClosedTotalLabel + name: NdcPrometheusQueryTotalTimeBucketLabel min_over_time: description: The minimum value of all points in the specified interval type: @@ -1589,7 +1606,1914 @@ definition: type: array element_type: type: named - name: NetConntrackDialerConnClosedTotalLabel + 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: @@ -1598,7 +3522,7 @@ definition: type: array element_type: type: named - name: NetConntrackDialerConnClosedTotalLabel + name: NetConntrackDialerConnAttemptedTotalLabel sort_desc: description: Same as sort, but sorts in descending order type: @@ -1620,7 +3544,7 @@ definition: type: array element_type: type: named - name: NetConntrackDialerConnClosedTotalLabel + name: NetConntrackDialerConnAttemptedTotalLabel stddev_over_time: description: The population standard deviation of the values in the specified interval type: @@ -1635,7 +3559,7 @@ definition: type: array element_type: type: named - name: NetConntrackDialerConnClosedTotalLabel + name: NetConntrackDialerConnAttemptedTotalLabel stdvar_over_time: description: The population standard variance of the values in the specified interval type: @@ -1650,7 +3574,7 @@ definition: type: array element_type: type: named - name: NetConntrackDialerConnClosedTotalLabel + name: NetConntrackDialerConnAttemptedTotalLabel sum_over_time: description: The sum of all values in the specified interval type: @@ -1686,7 +3610,7 @@ definition: underlying_type: type: named name: Int64 - NetConntrackDialerConnClosedTotalLabelJoinInput: + NetConntrackDialerConnAttemptedTotalLabelJoinInput: description: Input arguments for the label_join function fields: dest_label: @@ -1705,8 +3629,8 @@ definition: type: array element_type: type: named - name: NetConntrackDialerConnClosedTotalLabel - NetConntrackDialerConnClosedTotalLabelReplaceInput: + name: NetConntrackDialerConnAttemptedTotalLabel + NetConntrackDialerConnAttemptedTotalLabelReplaceInput: description: Input arguments for the label_replace function fields: dest_label: @@ -1728,13 +3652,9 @@ definition: description: Source label type: type: named - name: NetConntrackDialerConnClosedTotalLabel - NetConntrackDialerConnEstablishedTotal: + name: NetConntrackDialerConnAttemptedTotalLabel + NetConntrackDialerConnClosedTotal: fields: - dialer_name: - type: - type: named - name: String instance: type: type: named @@ -1765,7 +3685,7 @@ definition: element_type: type: named name: QueryResultValue - NetConntrackDialerConnEstablishedTotalFunctions: + NetConntrackDialerConnClosedTotalFunctions: fields: abs: description: Returns the input vector with all sample values converted to their absolute value @@ -1837,7 +3757,7 @@ definition: type: array element_type: type: named - name: NetConntrackDialerConnEstablishedTotalLabel + name: NetConntrackDialerConnClosedTotalLabel avg_over_time: description: The average value of all points in the specified interval type: @@ -1908,7 +3828,7 @@ definition: type: array element_type: type: named - name: NetConntrackDialerConnEstablishedTotalLabel + name: NetConntrackDialerConnClosedTotalLabel count_over_time: description: The count of all values in the specified interval type: @@ -1921,7 +3841,7 @@ definition: type: nullable underlying_type: type: named - name: NetConntrackDialerConnEstablishedTotalLabel + name: NetConntrackDialerConnClosedTotalLabel deg: description: Converts radians to degrees for all elements in v type: @@ -1964,7 +3884,7 @@ definition: type: array element_type: type: named - name: NetConntrackDialerConnEstablishedTotalLabel + 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: @@ -2048,14 +3968,14 @@ definition: type: nullable underlying_type: type: named - name: NetConntrackDialerConnEstablishedTotalLabelJoinInput + 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: NetConntrackDialerConnEstablishedTotalLabelReplaceInput + name: NetConntrackDialerConnClosedTotalLabelReplaceInput last_over_time: description: The most recent point value in the specified interval type: @@ -2112,7 +4032,7 @@ definition: type: array element_type: type: named - name: NetConntrackDialerConnEstablishedTotalLabel + name: NetConntrackDialerConnClosedTotalLabel max_over_time: description: The maximum value of all points in the specified interval type: @@ -2127,7 +4047,7 @@ definition: type: array element_type: type: named - name: NetConntrackDialerConnEstablishedTotalLabel + name: NetConntrackDialerConnClosedTotalLabel min_over_time: description: The minimum value of all points in the specified interval type: @@ -2234,7 +4154,7 @@ definition: type: array element_type: type: named - name: NetConntrackDialerConnEstablishedTotalLabel + name: NetConntrackDialerConnClosedTotalLabel sort_by_label_desc: description: Same as sort_by_label, but sorts in descending order type: @@ -2243,7 +4163,7 @@ definition: type: array element_type: type: named - name: NetConntrackDialerConnEstablishedTotalLabel + name: NetConntrackDialerConnClosedTotalLabel sort_desc: description: Same as sort, but sorts in descending order type: @@ -2265,7 +4185,7 @@ definition: type: array element_type: type: named - name: NetConntrackDialerConnEstablishedTotalLabel + name: NetConntrackDialerConnClosedTotalLabel stddev_over_time: description: The population standard deviation of the values in the specified interval type: @@ -2280,7 +4200,7 @@ definition: type: array element_type: type: named - name: NetConntrackDialerConnEstablishedTotalLabel + name: NetConntrackDialerConnClosedTotalLabel stdvar_over_time: description: The population standard variance of the values in the specified interval type: @@ -2295,7 +4215,7 @@ definition: type: array element_type: type: named - name: NetConntrackDialerConnEstablishedTotalLabel + name: NetConntrackDialerConnClosedTotalLabel sum_over_time: description: The sum of all values in the specified interval type: @@ -2331,7 +4251,7 @@ definition: underlying_type: type: named name: Int64 - NetConntrackDialerConnEstablishedTotalLabelJoinInput: + NetConntrackDialerConnClosedTotalLabelJoinInput: description: Input arguments for the label_join function fields: dest_label: @@ -2350,8 +4270,8 @@ definition: type: array element_type: type: named - name: NetConntrackDialerConnEstablishedTotalLabel - NetConntrackDialerConnEstablishedTotalLabelReplaceInput: + name: NetConntrackDialerConnClosedTotalLabel + NetConntrackDialerConnClosedTotalLabelReplaceInput: description: Input arguments for the label_replace function fields: dest_label: @@ -2373,13 +4293,9 @@ definition: description: Source label type: type: named - name: NetConntrackDialerConnEstablishedTotalLabel - NetConntrackDialerConnFailedTotal: + name: NetConntrackDialerConnClosedTotalLabel + NetConntrackDialerConnEstablishedTotal: fields: - dialer_name: - type: - type: named - name: String instance: type: type: named @@ -2393,10 +4309,6 @@ 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: @@ -2414,7 +4326,7 @@ definition: element_type: type: named name: QueryResultValue - NetConntrackDialerConnFailedTotalFunctions: + NetConntrackDialerConnEstablishedTotalFunctions: fields: abs: description: Returns the input vector with all sample values converted to their absolute value @@ -2486,7 +4398,7 @@ definition: type: array element_type: type: named - name: NetConntrackDialerConnFailedTotalLabel + name: NetConntrackDialerConnEstablishedTotalLabel avg_over_time: description: The average value of all points in the specified interval type: @@ -2557,7 +4469,7 @@ definition: type: array element_type: type: named - name: NetConntrackDialerConnFailedTotalLabel + name: NetConntrackDialerConnEstablishedTotalLabel count_over_time: description: The count of all values in the specified interval type: @@ -2570,7 +4482,7 @@ definition: type: nullable underlying_type: type: named - name: NetConntrackDialerConnFailedTotalLabel + name: NetConntrackDialerConnEstablishedTotalLabel deg: description: Converts radians to degrees for all elements in v type: @@ -2613,7 +4525,7 @@ definition: type: array element_type: type: named - name: NetConntrackDialerConnFailedTotalLabel + 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: @@ -2697,14 +4609,14 @@ definition: type: nullable underlying_type: type: named - name: NetConntrackDialerConnFailedTotalLabelJoinInput + 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: NetConntrackDialerConnFailedTotalLabelReplaceInput + name: NetConntrackDialerConnEstablishedTotalLabelReplaceInput last_over_time: description: The most recent point value in the specified interval type: @@ -2761,7 +4673,7 @@ definition: type: array element_type: type: named - name: NetConntrackDialerConnFailedTotalLabel + name: NetConntrackDialerConnEstablishedTotalLabel max_over_time: description: The maximum value of all points in the specified interval type: @@ -2776,7 +4688,7 @@ definition: type: array element_type: type: named - name: NetConntrackDialerConnFailedTotalLabel + name: NetConntrackDialerConnEstablishedTotalLabel min_over_time: description: The minimum value of all points in the specified interval type: @@ -2883,7 +4795,7 @@ definition: type: array element_type: type: named - name: NetConntrackDialerConnFailedTotalLabel + name: NetConntrackDialerConnEstablishedTotalLabel sort_by_label_desc: description: Same as sort_by_label, but sorts in descending order type: @@ -2892,7 +4804,7 @@ definition: type: array element_type: type: named - name: NetConntrackDialerConnFailedTotalLabel + name: NetConntrackDialerConnEstablishedTotalLabel sort_desc: description: Same as sort, but sorts in descending order type: @@ -2914,7 +4826,7 @@ definition: type: array element_type: type: named - name: NetConntrackDialerConnFailedTotalLabel + name: NetConntrackDialerConnEstablishedTotalLabel stddev_over_time: description: The population standard deviation of the values in the specified interval type: @@ -2929,7 +4841,7 @@ definition: type: array element_type: type: named - name: NetConntrackDialerConnFailedTotalLabel + name: NetConntrackDialerConnEstablishedTotalLabel stdvar_over_time: description: The population standard variance of the values in the specified interval type: @@ -2944,7 +4856,7 @@ definition: type: array element_type: type: named - name: NetConntrackDialerConnFailedTotalLabel + name: NetConntrackDialerConnEstablishedTotalLabel sum_over_time: description: The sum of all values in the specified interval type: @@ -2980,7 +4892,7 @@ definition: underlying_type: type: named name: Int64 - NetConntrackDialerConnFailedTotalLabelJoinInput: + NetConntrackDialerConnEstablishedTotalLabelJoinInput: description: Input arguments for the label_join function fields: dest_label: @@ -2999,8 +4911,8 @@ definition: type: array element_type: type: named - name: NetConntrackDialerConnFailedTotalLabel - NetConntrackDialerConnFailedTotalLabelReplaceInput: + name: NetConntrackDialerConnEstablishedTotalLabel + NetConntrackDialerConnEstablishedTotalLabelReplaceInput: description: Input arguments for the label_replace function fields: dest_label: @@ -3022,8 +4934,8 @@ definition: description: Source label type: type: named - name: NetConntrackDialerConnFailedTotalLabel - NetConntrackListenerConnAcceptedTotal: + name: NetConntrackDialerConnEstablishedTotalLabel + NetConntrackDialerConnFailedTotal: fields: instance: type: @@ -3038,7 +4950,7 @@ definition: type: type: named name: LabelSet - listener_name: + reason: type: type: named name: String @@ -3059,7 +4971,7 @@ definition: element_type: type: named name: QueryResultValue - NetConntrackListenerConnAcceptedTotalFunctions: + NetConntrackDialerConnFailedTotalFunctions: fields: abs: description: Returns the input vector with all sample values converted to their absolute value @@ -3131,7 +5043,7 @@ definition: type: array element_type: type: named - name: NetConntrackListenerConnAcceptedTotalLabel + name: NetConntrackDialerConnFailedTotalLabel avg_over_time: description: The average value of all points in the specified interval type: @@ -3202,7 +5114,7 @@ definition: type: array element_type: type: named - name: NetConntrackListenerConnAcceptedTotalLabel + name: NetConntrackDialerConnFailedTotalLabel count_over_time: description: The count of all values in the specified interval type: @@ -3215,7 +5127,7 @@ definition: type: nullable underlying_type: type: named - name: NetConntrackListenerConnAcceptedTotalLabel + name: NetConntrackDialerConnFailedTotalLabel deg: description: Converts radians to degrees for all elements in v type: @@ -3258,7 +5170,7 @@ definition: type: array element_type: type: named - name: NetConntrackListenerConnAcceptedTotalLabel + 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: @@ -3342,14 +5254,14 @@ definition: type: nullable underlying_type: type: named - name: NetConntrackListenerConnAcceptedTotalLabelJoinInput + 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: NetConntrackListenerConnAcceptedTotalLabelReplaceInput + name: NetConntrackDialerConnFailedTotalLabelReplaceInput last_over_time: description: The most recent point value in the specified interval type: @@ -3406,7 +5318,7 @@ definition: type: array element_type: type: named - name: NetConntrackListenerConnAcceptedTotalLabel + name: NetConntrackDialerConnFailedTotalLabel max_over_time: description: The maximum value of all points in the specified interval type: @@ -3421,7 +5333,7 @@ definition: type: array element_type: type: named - name: NetConntrackListenerConnAcceptedTotalLabel + name: NetConntrackDialerConnFailedTotalLabel min_over_time: description: The minimum value of all points in the specified interval type: @@ -3528,7 +5440,7 @@ definition: type: array element_type: type: named - name: NetConntrackListenerConnAcceptedTotalLabel + name: NetConntrackDialerConnFailedTotalLabel sort_by_label_desc: description: Same as sort_by_label, but sorts in descending order type: @@ -3537,7 +5449,7 @@ definition: type: array element_type: type: named - name: NetConntrackListenerConnAcceptedTotalLabel + name: NetConntrackDialerConnFailedTotalLabel sort_desc: description: Same as sort, but sorts in descending order type: @@ -3559,7 +5471,7 @@ definition: type: array element_type: type: named - name: NetConntrackListenerConnAcceptedTotalLabel + name: NetConntrackDialerConnFailedTotalLabel stddev_over_time: description: The population standard deviation of the values in the specified interval type: @@ -3574,7 +5486,7 @@ definition: type: array element_type: type: named - name: NetConntrackListenerConnAcceptedTotalLabel + name: NetConntrackDialerConnFailedTotalLabel stdvar_over_time: description: The population standard variance of the values in the specified interval type: @@ -3589,7 +5501,7 @@ definition: type: array element_type: type: named - name: NetConntrackListenerConnAcceptedTotalLabel + name: NetConntrackDialerConnFailedTotalLabel sum_over_time: description: The sum of all values in the specified interval type: @@ -3625,7 +5537,7 @@ definition: underlying_type: type: named name: Int64 - NetConntrackListenerConnAcceptedTotalLabelJoinInput: + NetConntrackDialerConnFailedTotalLabelJoinInput: description: Input arguments for the label_join function fields: dest_label: @@ -3644,8 +5556,8 @@ definition: type: array element_type: type: named - name: NetConntrackListenerConnAcceptedTotalLabel - NetConntrackListenerConnAcceptedTotalLabelReplaceInput: + name: NetConntrackDialerConnFailedTotalLabel + NetConntrackDialerConnFailedTotalLabelReplaceInput: description: Input arguments for the label_replace function fields: dest_label: @@ -3667,8 +5579,8 @@ definition: description: Source label type: type: named - name: NetConntrackListenerConnAcceptedTotalLabel - NetConntrackListenerConnClosedTotal: + name: NetConntrackDialerConnFailedTotalLabel + OtelScopeInfo: fields: instance: type: @@ -3683,7 +5595,7 @@ definition: type: type: named name: LabelSet - listener_name: + otel_scope_name: type: type: named name: String @@ -3704,7 +5616,7 @@ definition: element_type: type: named name: QueryResultValue - NetConntrackListenerConnClosedTotalFunctions: + OtelScopeInfoFunctions: fields: abs: description: Returns the input vector with all sample values converted to their absolute value @@ -3776,7 +5688,7 @@ definition: type: array element_type: type: named - name: NetConntrackListenerConnClosedTotalLabel + name: OtelScopeInfoLabel avg_over_time: description: The average value of all points in the specified interval type: @@ -3847,7 +5759,7 @@ definition: type: array element_type: type: named - name: NetConntrackListenerConnClosedTotalLabel + name: OtelScopeInfoLabel count_over_time: description: The count of all values in the specified interval type: @@ -3860,7 +5772,7 @@ definition: type: nullable underlying_type: type: named - name: NetConntrackListenerConnClosedTotalLabel + name: OtelScopeInfoLabel deg: description: Converts radians to degrees for all elements in v type: @@ -3903,7 +5815,7 @@ definition: type: array element_type: type: named - name: NetConntrackListenerConnClosedTotalLabel + 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: @@ -3987,14 +5899,14 @@ definition: type: nullable underlying_type: type: named - name: NetConntrackListenerConnClosedTotalLabelJoinInput + 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: NetConntrackListenerConnClosedTotalLabelReplaceInput + name: OtelScopeInfoLabelReplaceInput last_over_time: description: The most recent point value in the specified interval type: @@ -4051,7 +5963,7 @@ definition: type: array element_type: type: named - name: NetConntrackListenerConnClosedTotalLabel + name: OtelScopeInfoLabel max_over_time: description: The maximum value of all points in the specified interval type: @@ -4066,7 +5978,7 @@ definition: type: array element_type: type: named - name: NetConntrackListenerConnClosedTotalLabel + name: OtelScopeInfoLabel min_over_time: description: The minimum value of all points in the specified interval type: @@ -4173,7 +6085,7 @@ definition: type: array element_type: type: named - name: NetConntrackListenerConnClosedTotalLabel + name: OtelScopeInfoLabel sort_by_label_desc: description: Same as sort_by_label, but sorts in descending order type: @@ -4182,7 +6094,7 @@ definition: type: array element_type: type: named - name: NetConntrackListenerConnClosedTotalLabel + name: OtelScopeInfoLabel sort_desc: description: Same as sort, but sorts in descending order type: @@ -4204,7 +6116,7 @@ definition: type: array element_type: type: named - name: NetConntrackListenerConnClosedTotalLabel + name: OtelScopeInfoLabel stddev_over_time: description: The population standard deviation of the values in the specified interval type: @@ -4219,7 +6131,7 @@ definition: type: array element_type: type: named - name: NetConntrackListenerConnClosedTotalLabel + name: OtelScopeInfoLabel stdvar_over_time: description: The population standard variance of the values in the specified interval type: @@ -4234,7 +6146,7 @@ definition: type: array element_type: type: named - name: NetConntrackListenerConnClosedTotalLabel + name: OtelScopeInfoLabel sum_over_time: description: The sum of all values in the specified interval type: @@ -4270,7 +6182,7 @@ definition: underlying_type: type: named name: Int64 - NetConntrackListenerConnClosedTotalLabelJoinInput: + OtelScopeInfoLabelJoinInput: description: Input arguments for the label_join function fields: dest_label: @@ -4289,8 +6201,8 @@ definition: type: array element_type: type: named - name: NetConntrackListenerConnClosedTotalLabel - NetConntrackListenerConnClosedTotalLabelReplaceInput: + name: OtelScopeInfoLabel + OtelScopeInfoLabelReplaceInput: description: Input arguments for the label_replace function fields: dest_label: @@ -4312,7 +6224,7 @@ definition: description: Source label type: type: named - name: NetConntrackListenerConnClosedTotalLabel + name: OtelScopeInfoLabel PredictLinearInput: description: Input arguments for the predict_linear function fields: @@ -12853,18 +14765,18 @@ definition: type: named name: Float64 collections: - - name: net_conntrack_dialer_conn_attempted_total - description: Total number of connections attempted by the given dialer a given name. + - name: ndc_prometheus_query_total + description: Total number of query requests arguments: fn: - description: PromQL aggregation operators and functions for net_conntrack_dialer_conn_attempted_total + description: PromQL aggregation operators and functions for ndc_prometheus_query_total type: type: nullable underlying_type: type: array element_type: type: named - name: NetConntrackDialerConnAttemptedTotalFunctions + name: NdcPrometheusQueryTotalFunctions offset: description: The offset modifier allows changing the time offset for individual instant and range vectors in a query. type: @@ -12886,21 +14798,21 @@ definition: underlying_type: type: named name: Duration - type: NetConntrackDialerConnAttemptedTotal + type: NdcPrometheusQueryTotal uniqueness_constraints: {} foreign_keys: {} - - name: net_conntrack_dialer_conn_closed_total - description: Total number of connections closed which originated from the dialer of a given name. + - 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 net_conntrack_dialer_conn_closed_total + 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: NetConntrackDialerConnClosedTotalFunctions + name: NdcPrometheusQueryTotalTimeBucketFunctions offset: description: The offset modifier allows changing the time offset for individual instant and range vectors in a query. type: @@ -12922,21 +14834,21 @@ definition: underlying_type: type: named name: Duration - type: NetConntrackDialerConnClosedTotal + type: NdcPrometheusQueryTotalTimeBucket uniqueness_constraints: {} foreign_keys: {} - - name: net_conntrack_dialer_conn_established_total - description: Total number of connections successfully established by the given dialer a given name. + - 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 net_conntrack_dialer_conn_established_total + 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: NetConntrackDialerConnEstablishedTotalFunctions + name: NdcPrometheusQueryTotalTimeCountFunctions offset: description: The offset modifier allows changing the time offset for individual instant and range vectors in a query. type: @@ -12958,21 +14870,21 @@ definition: underlying_type: type: named name: Duration - type: NetConntrackDialerConnEstablishedTotal + type: NdcPrometheusQueryTotalTimeCount uniqueness_constraints: {} foreign_keys: {} - - name: net_conntrack_dialer_conn_failed_total - description: Total number of connections failed to dial by the dialer a given name. + - 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 net_conntrack_dialer_conn_failed_total + 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: NetConntrackDialerConnFailedTotalFunctions + name: NdcPrometheusQueryTotalTimeSumFunctions offset: description: The offset modifier allows changing the time offset for individual instant and range vectors in a query. type: @@ -12994,21 +14906,129 @@ definition: underlying_type: type: named name: Duration - type: NetConntrackDialerConnFailedTotal + 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: + fn: + description: PromQL aggregation operators and functions for net_conntrack_dialer_conn_attempted_total + type: + type: nullable + underlying_type: + type: array + element_type: + type: named + name: NetConntrackDialerConnAttemptedTotalFunctions + 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: NetConntrackDialerConnAttemptedTotal + uniqueness_constraints: {} + foreign_keys: {} + - name: net_conntrack_dialer_conn_closed_total + description: Total number of connections closed which originated from the dialer of a given name. + arguments: + fn: + description: PromQL aggregation operators and functions for net_conntrack_dialer_conn_closed_total + type: + type: nullable + underlying_type: + type: array + element_type: + type: named + name: NetConntrackDialerConnClosedTotalFunctions + 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: NetConntrackDialerConnClosedTotal + uniqueness_constraints: {} + foreign_keys: {} + - name: net_conntrack_dialer_conn_established_total + description: Total number of connections successfully established by the given dialer a given name. + arguments: + fn: + description: PromQL aggregation operators and functions for net_conntrack_dialer_conn_established_total + type: + type: nullable + underlying_type: + type: array + element_type: + type: named + name: NetConntrackDialerConnEstablishedTotalFunctions + 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: NetConntrackDialerConnEstablishedTotal uniqueness_constraints: {} foreign_keys: {} - - name: net_conntrack_listener_conn_accepted_total - description: Total number of connections opened to the listener of a given name. + - name: net_conntrack_dialer_conn_failed_total + description: Total number of connections failed to dial by the dialer a given name. arguments: fn: - description: PromQL aggregation operators and functions for net_conntrack_listener_conn_accepted_total + description: PromQL aggregation operators and functions for net_conntrack_dialer_conn_failed_total type: type: nullable underlying_type: type: array element_type: type: named - name: NetConntrackListenerConnAcceptedTotalFunctions + name: NetConntrackDialerConnFailedTotalFunctions offset: description: The offset modifier allows changing the time offset for individual instant and range vectors in a query. type: @@ -13030,21 +15050,21 @@ definition: underlying_type: type: named name: Duration - type: NetConntrackListenerConnAcceptedTotal + type: NetConntrackDialerConnFailedTotal uniqueness_constraints: {} foreign_keys: {} - - name: net_conntrack_listener_conn_closed_total - description: Total number of connections closed that were made to the listener of a given name. + - name: otel_scope_info + description: Instrumentation Scope metadata arguments: fn: - description: PromQL aggregation operators and functions for net_conntrack_listener_conn_closed_total + description: PromQL aggregation operators and functions for otel_scope_info type: type: nullable underlying_type: type: array element_type: type: named - name: NetConntrackListenerConnClosedTotalFunctions + name: OtelScopeInfoFunctions offset: description: The offset modifier allows changing the time offset for individual instant and range vectors in a query. type: @@ -13066,7 +15086,7 @@ definition: underlying_type: type: named name: Duration - type: NetConntrackListenerConnClosedTotal + type: OtelScopeInfo uniqueness_constraints: {} foreign_keys: {} - name: process_cpu_seconds_total diff --git a/tests/engine/app/metadata/promhttp_metric_handler_errors_total.hml b/tests/engine/app/metadata/promhttp_metric_handler_errors_total.hml index 6a81d98..fa1951e 100644 --- a/tests/engine/app/metadata/promhttp_metric_handler_errors_total.hml +++ b/tests/engine/app/metadata/promhttp_metric_handler_errors_total.hml @@ -498,35 +498,31 @@ definition: - values --- -kind: ObjectBooleanExpressionType +kind: BooleanExpressionType version: v1 definition: name: PromhttpMetricHandlerErrorsTotal_bool_exp - objectType: PromhttpMetricHandlerErrorsTotal - dataConnectorName: prometheus - dataConnectorObjectType: PromhttpMetricHandlerErrorsTotal - comparableFields: - - fieldName: cause - operators: - enableAll: true - - fieldName: instance - operators: - enableAll: true - - fieldName: job - operators: - enableAll: true - - fieldName: labels - operators: - enableAll: true - - fieldName: timestamp - operators: - enableAll: true - - fieldName: value - operators: - enableAll: true - - fieldName: values - operators: - enableAll: true + operand: + object: + type: PromhttpMetricHandlerErrorsTotal + comparableFields: + - fieldName: cause + booleanExpressionType: String_bool_exp + - fieldName: instance + booleanExpressionType: String_bool_exp + - fieldName: job + booleanExpressionType: String_bool_exp + - 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: PromhttpMetricHandlerErrorsTotal_bool_exp @@ -575,9 +571,6 @@ definition: - fieldName: value orderByDirections: enableAll: true - - fieldName: values - orderByDirections: - enableAll: true graphql: selectMany: queryRootField: promhttp_metric_handler_errors_total diff --git a/tests/engine/app/metadata/promhttp_metric_handler_requests_in_flight.hml b/tests/engine/app/metadata/promhttp_metric_handler_requests_in_flight.hml index 1c9afc1..7389e72 100644 --- a/tests/engine/app/metadata/promhttp_metric_handler_requests_in_flight.hml +++ b/tests/engine/app/metadata/promhttp_metric_handler_requests_in_flight.hml @@ -495,32 +495,29 @@ definition: - values --- -kind: ObjectBooleanExpressionType +kind: BooleanExpressionType version: v1 definition: name: PromhttpMetricHandlerRequestsInFlight_bool_exp - objectType: PromhttpMetricHandlerRequestsInFlight - dataConnectorName: prometheus - dataConnectorObjectType: PromhttpMetricHandlerRequestsInFlight - comparableFields: - - fieldName: instance - operators: - enableAll: true - - fieldName: job - operators: - enableAll: true - - fieldName: labels - operators: - enableAll: true - - fieldName: timestamp - operators: - enableAll: true - - fieldName: value - operators: - enableAll: true - - fieldName: values - operators: - enableAll: true + operand: + object: + type: PromhttpMetricHandlerRequestsInFlight + comparableFields: + - fieldName: instance + booleanExpressionType: String_bool_exp + - fieldName: job + booleanExpressionType: String_bool_exp + - 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: PromhttpMetricHandlerRequestsInFlight_bool_exp @@ -566,9 +563,6 @@ definition: - fieldName: value orderByDirections: enableAll: true - - fieldName: values - orderByDirections: - enableAll: true graphql: selectMany: queryRootField: promhttp_metric_handler_requests_in_flight diff --git a/tests/engine/app/metadata/promhttp_metric_handler_requests_total.hml b/tests/engine/app/metadata/promhttp_metric_handler_requests_total.hml index 7394245..580fc43 100644 --- a/tests/engine/app/metadata/promhttp_metric_handler_requests_total.hml +++ b/tests/engine/app/metadata/promhttp_metric_handler_requests_total.hml @@ -498,35 +498,31 @@ definition: - values --- -kind: ObjectBooleanExpressionType +kind: BooleanExpressionType version: v1 definition: name: PromhttpMetricHandlerRequestsTotal_bool_exp - objectType: PromhttpMetricHandlerRequestsTotal - dataConnectorName: prometheus - dataConnectorObjectType: PromhttpMetricHandlerRequestsTotal - comparableFields: - - fieldName: code - operators: - enableAll: true - - fieldName: instance - operators: - enableAll: true - - fieldName: job - operators: - enableAll: true - - fieldName: labels - operators: - enableAll: true - - fieldName: timestamp - operators: - enableAll: true - - fieldName: value - operators: - enableAll: true - - fieldName: values - operators: - enableAll: true + operand: + object: + type: PromhttpMetricHandlerRequestsTotal + comparableFields: + - fieldName: code + booleanExpressionType: String_bool_exp + - fieldName: instance + booleanExpressionType: String_bool_exp + - fieldName: job + booleanExpressionType: String_bool_exp + - 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: PromhttpMetricHandlerRequestsTotal_bool_exp @@ -575,9 +571,6 @@ definition: - fieldName: value orderByDirections: enableAll: true - - fieldName: values - orderByDirections: - enableAll: true graphql: selectMany: queryRootField: promhttp_metric_handler_requests_total diff --git a/tests/engine/app/metadata/service_up.hml b/tests/engine/app/metadata/service_up.hml index a8c9c76..a417479 100644 --- a/tests/engine/app/metadata/service_up.hml +++ b/tests/engine/app/metadata/service_up.hml @@ -1,48 +1,3 @@ ---- -kind: Command -version: v1 -definition: - name: service_up - outputType: "[ServiceUpResult!]!" - arguments: - - name: end - type: Timestamp - description: End timestamp. Use this argument if you want to run an range query - - name: instance - type: String! - - name: job - type: String! - - name: start - type: Timestamp - description: Start timestamp. Use this argument if you want to run an range query - - name: step - type: Duration - description: Query resolution step width in duration format or float number of - seconds. - - name: time - type: Timestamp - description: Evaluation timestamp. Use this argument if you want to run an - instant query - - name: timeout - type: Duration - description: Evaluation timeout - source: - dataConnectorName: prometheus - dataConnectorCommand: - function: service_up - graphql: - rootFieldName: service_up - rootFieldKind: Query - ---- -kind: CommandPermissions -version: v1 -definition: - commandName: service_up - permissions: - - role: admin - allowExecution: true - --- kind: ObjectType version: v1 @@ -88,3 +43,48 @@ definition: - value - values +--- +kind: Command +version: v1 +definition: + name: service_up + outputType: "[ServiceUpResult!]!" + arguments: + - name: end + type: Timestamp + description: End timestamp. Use this argument if you want to run an range query + - name: instance + type: String! + - name: job + type: String! + - name: start + type: Timestamp + description: Start timestamp. Use this argument if you want to run an range query + - name: step + type: Duration + description: Query resolution step width in duration format or float number of + seconds. + - name: time + type: Timestamp + description: Evaluation timestamp. Use this argument if you want to run an + instant query + - name: timeout + type: Duration + description: Evaluation timeout + source: + dataConnectorName: prometheus + dataConnectorCommand: + function: service_up + graphql: + rootFieldName: service_up + rootFieldKind: Query + +--- +kind: CommandPermissions +version: v1 +definition: + commandName: service_up + permissions: + - role: admin + allowExecution: true + diff --git a/tests/engine/app/metadata/target_info.hml b/tests/engine/app/metadata/target_info.hml index 5f54a9b..52bc6fe 100644 --- a/tests/engine/app/metadata/target_info.hml +++ b/tests/engine/app/metadata/target_info.hml @@ -510,47 +510,39 @@ definition: - values --- -kind: ObjectBooleanExpressionType +kind: BooleanExpressionType version: v1 definition: name: TargetInfo_bool_exp - objectType: TargetInfo - dataConnectorName: prometheus - dataConnectorObjectType: TargetInfo - comparableFields: - - fieldName: instance - operators: - enableAll: true - - fieldName: job - operators: - enableAll: true - - fieldName: labels - operators: - enableAll: true - - fieldName: service_name - operators: - enableAll: true - - fieldName: service_version - operators: - enableAll: true - - fieldName: telemetry_sdk_language - operators: - enableAll: true - - fieldName: telemetry_sdk_name - operators: - enableAll: true - - fieldName: telemetry_sdk_version - operators: - enableAll: true - - fieldName: timestamp - operators: - enableAll: true - - fieldName: value - operators: - enableAll: true - - fieldName: values - operators: - enableAll: true + operand: + object: + type: TargetInfo + comparableFields: + - fieldName: instance + booleanExpressionType: String_bool_exp + - fieldName: job + booleanExpressionType: String_bool_exp + - fieldName: labels + booleanExpressionType: LabelSet_bool_exp + - fieldName: service_name + booleanExpressionType: String_bool_exp + - fieldName: service_version + booleanExpressionType: String_bool_exp + - fieldName: telemetry_sdk_language + booleanExpressionType: String_bool_exp + - fieldName: telemetry_sdk_name + booleanExpressionType: String_bool_exp + - fieldName: telemetry_sdk_version + 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: TargetInfo_bool_exp @@ -610,9 +602,6 @@ definition: - fieldName: value orderByDirections: enableAll: true - - fieldName: values - orderByDirections: - enableAll: true graphql: selectMany: queryRootField: target_info