Skip to content
This repository was archived by the owner on Sep 15, 2021. It is now read-only.
This repository was archived by the owner on Sep 15, 2021. It is now read-only.

Error when reporting quantiles #18

@michael-barker

Description

@michael-barker

What did you do?

Reporting quantiles to Prometheus using a Spring Boot application with Actuator and the Micrometer Prometheus Registry.

What did you expect to see?

I can view the quatiles in Graphana. I would expect to be able to view the quantiles in Stackdriver.

What did you see instead? Under which circumstances?

I get the following error from stackdriver-prometheus.

Unrecoverable error sending samples to remote storage" err="rpc error: code = InvalidArgument desc = One or more TimeSeries could not be written: Metric kind for metric external.googleapis.com/prometheus/http_server_requests_seconds must be CUMULATIVE, but is GAUGE.: timeSeries[54,57,60]

These are the relevant metrics scraped by Prometheus.

http_server_requests_seconds{exception="None",method="GET",status="200",uri="/actuator/prometheus",quantile="0.99",} 0.0262144
http_server_requests_seconds_count{exception="None",method="GET",status="200",uri="/actuator/prometheus",} 2.0
http_server_requests_seconds_sum{exception="None",method="GET",status="200",uri="/actuator/prometheus",} 0.534899535
http_server_requests_seconds{exception="None",method="GET",status="200",uri="/",quantile="0.99",} 0.595591168
http_server_requests_seconds_count{exception="None",method="GET",status="200",uri="/",} 85.0
http_server_requests_seconds_sum{exception="None",method="GET",status="200",uri="/",} 25.994628965
http_server_requests_seconds{exception="RuntimeException",method="GET",status="500",uri="/",quantile="0.99",} 0.411041792
http_server_requests_seconds_count{exception="RuntimeException",method="GET",status="500",uri="/",} 66.0
http_server_requests_seconds_sum{exception="RuntimeException",method="GET",status="500",uri="/",} 20.575536392

http_server_requests_seconds_count, http_server_requests_seconds_sum, and http_server_requests_seconds_max all show up in Stackdriver but I don't see http_server_requests_seconds.

Environment

  • System information:

JVM application built with the default Jib base image.

  • Prometheus version:

Default.

  • Alertmanager version:

Default.

  • Prometheus configuration file:

No modifications from the default other than setting project ID, cluster name, and cluster location.

  • Alertmanager configuration file:

Unmodified.

  • Logs:
Unrecoverable error sending samples to remote storage" err="rpc error: code = InvalidArgument desc = One or more TimeSeries could not be written: Metric kind for metric external.googleapis.com/prometheus/http_server_requests_seconds must be CUMULATIVE, but is GAUGE.: timeSeries[54,57,60]

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions