Package google.monitoring.prometheus.v1

Index

PrometheusUpstream

A service that exposes selected endpoints of the HTTP v1 API of the open source Prometheus monitoring system (https://prometheus.io).

The service and its associated types are suffixed with Upstream to later allow for a native protobuf API under the name Prometheus. Since this API only makes sense to expose over JSON over HTTP, end users are never exposed to the service name.

LabelValues

rpc LabelValues(LabelValuesRequest) returns (HttpBody)

Lists possible values for a given label name.

Authorization scopes

Requires one of the following OAuth scopes:

  • https://www.googleapis.com/auth/cloud-platform
  • https://www.googleapis.com/auth/monitoring
  • https://www.googleapis.com/auth/monitoring.read

For more information, see the Authentication Overview.

ListMetricMetadata

rpc ListMetricMetadata(ListMetricMetadataRequest) returns (HttpBody)

Lists metadata for metrics.

Authorization scopes

Requires one of the following OAuth scopes:

  • https://www.googleapis.com/auth/cloud-platform
  • https://www.googleapis.com/auth/monitoring
  • https://www.googleapis.com/auth/monitoring.read

For more information, see the Authentication Overview.

QueryExemplars

rpc QueryExemplars(QueryExemplarsRequest) returns (HttpBody)

Lists exemplars relevant to a given PromQL query,

Authorization scopes

Requires one of the following OAuth scopes:

  • https://www.googleapis.com/auth/cloud-platform
  • https://www.googleapis.com/auth/monitoring
  • https://www.googleapis.com/auth/monitoring.read

For more information, see the Authentication Overview.

QueryInstant

rpc QueryInstant(QueryInstantRequest) returns (HttpBody)

Evaluate a PromQL query at a single point in time.

Authorization scopes

Requires one of the following OAuth scopes:

  • https://www.googleapis.com/auth/cloud-platform
  • https://www.googleapis.com/auth/monitoring
  • https://www.googleapis.com/auth/monitoring.read

For more information, see the Authentication Overview.

QueryLabels

rpc QueryLabels(QueryLabelsRequest) returns (HttpBody)

Lists labels for metrics.

Authorization scopes

Requires one of the following OAuth scopes:

  • https://www.googleapis.com/auth/cloud-platform
  • https://www.googleapis.com/auth/monitoring
  • https://www.googleapis.com/auth/monitoring.read

For more information, see the Authentication Overview.

QueryRange

rpc QueryRange(QueryRangeRequest) returns (HttpBody)

Evaluate a PromQL query with [start, end] time range.

Authorization scopes

Requires one of the following OAuth scopes:

  • https://www.googleapis.com/auth/cloud-platform
  • https://www.googleapis.com/auth/monitoring
  • https://www.googleapis.com/auth/monitoring.read

For more information, see the Authentication Overview.

QuerySeries

rpc QuerySeries(QuerySeriesRequest) returns (HttpBody)

Lists metadata for metrics.

Authorization scopes

Requires one of the following OAuth scopes:

  • https://www.googleapis.com/auth/cloud-platform
  • https://www.googleapis.com/auth/monitoring
  • https://www.googleapis.com/auth/monitoring.read

For more information, see the Authentication Overview.

LabelValuesRequest

LabelValuesRequests holds all parameters of the Prometheus upstream API for querying label values plus GCM-specific parameters.

Fields
name

string

The workspace on which to execute the request. It is not part of the open source API but used as a request path prefix to distinguish different virtual Prometheus instances of Google Prometheus Engine. The format is: projects/[PROJECT_ID_OR_NUMBER].

location

string

Location of the resource information. Has to be "global" now.

label

string

The label name for which values are queried.

start

string

The start time to evaluate the query for. Either floating point UNIX seconds or RFC3339 formatted timestamp.

end

string

The end time to evaluate the query for. Either floating point UNIX seconds or RFC3339 formatted timestamp.

match

string

A list of matchers encoded in the Prometheus label matcher format to constrain the values to series that satisfy them.

ListMetricMetadataRequest

ListMetadataRequest holds all parameters of the Prometheus upstream API for querying metric metadata plus GCM-specific parameters.

Fields
name

string

Required. The workspace on which to execute the request. It is not part of the open source API but used as a request path prefix to distinguish different virtual Prometheus instances of Google Prometheus Engine. The format is: projects/[PROJECT_ID_OR_NUMBER].

location

string

Location of the resource information. Has to be "global" for now.

metric

string

The metric name for which to query metadata. If unset, all metric metadata is returned.

limit

int64

Maximum number of metrics to return.

QueryExemplarsRequest

QueryExemplarsRequest holds all parameters of the Prometheus upstream API for querying exemplars.

Fields
name

string

The project on which to execute the request. Data associcated with the project's workspace stored under the The format is: projects/[PROJECT_ID_OR_NUMBER]. Open source API but used as a request path prefix to distinguish different virtual Prometheus instances of Google Prometheus Engine.

query

string

A PromQL query string. Query lanauge documentation: https://prometheus.io/docs/prometheus/latest/querying/basics/.

start

string

The start time to evaluate the query for. Either floating point UNIX seconds or RFC3339 formatted timestamp.

end

string

The end time to evaluate the query for. Either floating point UNIX seconds or RFC3339 formatted timestamp.

location

string

Location of the resource information. Has to be "global" now.

QueryInstantRequest

QueryInstantRequest holds all parameters of the Prometheus upstream instant query API plus GCM specific parameters.

Fields
name

string

The project on which to execute the request. Data associcated with the project's workspace stored under the The format is: projects/[PROJECT_ID_OR_NUMBER]. Open source API but used as a request path prefix to distinguish different virtual Prometheus instances of Google Prometheus Engine.

query

string

A PromQL query string. Query lanauge documentation: https://prometheus.io/docs/prometheus/latest/querying/basics/.

time

string

The single point in time to evaluate the query for. Either floating point UNIX seconds or RFC3339 formatted timestamp.

timeout

string

An upper bound timeout for the query. Either a Prometheus duration string (https://prometheus.io/docs/prometheus/latest/querying/basics/#time-durations) or floating point seconds. This non-standard encoding must be used for compatibility with the open source API. Clients may still implement timeouts at the connection level while ignoring this field.

location

string

Location of the resource information. Has to be "global" now.

QueryLabelsRequest

QueryLabelsRequest holds all parameters of the Prometheus upstream API for returning a list of label names.

Fields
name

string

The workspace on which to execute the request. It is not part of the open source API but used as a request path prefix to distinguish different virtual Prometheus instances of Google Prometheus Engine. The format is: projects/[PROJECT_ID_OR_NUMBER].

location

string

Location of the resource information. Has to be "global" now.

start

string

The start time to evaluate the query for. Either floating point UNIX seconds or RFC3339 formatted timestamp.

end

string

The end time to evaluate the query for. Either floating point UNIX seconds or RFC3339 formatted timestamp.

match

string

A list of matchers encoded in the Prometheus label matcher format to constrain the values to series that satisfy them.

QueryRangeRequest

QueryRangeRequest holds all parameters of the Prometheus upstream range query API plus GCM specific parameters.

Fields
name

string

The project on which to execute the request. Data associcated with the project's workspace stored under the The format is: projects/[PROJECT_ID_OR_NUMBER]. Open source API but used as a request path prefix to distinguish different virtual Prometheus instances of Google Prometheus Engine.

query

string

A PromQL query string. Query lanauge documentation: https://prometheus.io/docs/prometheus/latest/querying/basics/.

start

string

The start time to evaluate the query for. Either floating point UNIX seconds or RFC3339 formatted timestamp.

end

string

The end time to evaluate the query for. Either floating point UNIX seconds or RFC3339 formatted timestamp.

step

string

The resolution of query result. Either a Prometheus duration string (https://prometheus.io/docs/prometheus/latest/querying/basics/#time-durations) or floating point seconds. This non-standard encoding must be used for compatibility with the open source API. Clients may still implement timeouts at the connection level while ignoring this field.

timeout

string

An upper bound timeout for the query. Either a Prometheus duration string (https://prometheus.io/docs/prometheus/latest/querying/basics/#time-durations) or floating point seconds. This non-standard encoding must be used for compatibility with the open source API. Clients may still implement timeouts at the connection level while ignoring this field.

location

string

Location of the resource information. Has to be "global" now.

QuerySeriesRequest

QuerySeries holds all parameters of the Prometheus upstream API for querying series.

Fields
name

string

Required. The workspace on which to execute the request. It is not part of the open source API but used as a request path prefix to distinguish different virtual Prometheus instances of Google Prometheus Engine. The format is: projects/[PROJECT_ID_OR_NUMBER].

location

string

Location of the resource information. Has to be "global" for now.

start

string

The start time to evaluate the query for. Either floating point UNIX seconds or RFC3339 formatted timestamp.

end

string

The end time to evaluate the query for. Either floating point UNIX seconds or RFC3339 formatted timestamp.