prometheus-community / prometheus-community/stackdriver_exporter

[Feature Request] Add support for native histogram

Open
#216 3 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Go
Stars
295
Forks
117
Avg merge
9d 14h
Merged PRs (30d)
7

Description

Hi,

we currently try to implement a SLO on the GCP metric 'loadbalancing.googleapis.com/https/backend_latencies'. This currently gets handled by the exporter in what is now called a conventional histogram in prometheus. This does not allow the usage of new histogram functions like https://prometheus.io/docs/prometheus/latest/querying/functions/#histogram_fraction. We would like to be able to use it so we can select latencies under 500ms with histogram_fraction(0, 500, rate(stackdriver_https_lb_rule_loadbalancing_googleapis_com_https_backend_latencies_bucket[5m])) and above with this histogram_fraction(500, +Inf, rate(stackdriver_https_lb_rule_loadbalancing_googleapis_com_https_backend_latencies_bucket[5m]))

If wanted i could also provide a PR with that feature.

Thanks

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by tracing how the GCP metric loadbalancing.googleapis.com/https/backend_latencies is converted into Prometheus histogram series. Compare the current conventional histogram output with Prometheus native histogram requirements, then verify that histogram_fraction queries for ranges below and above 500ms work as requested.

Written by the indexing model from the issue text.

Assessment

Tech stack
go, google-cloud, prometheus
Domain
cloud, observability-sre
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.