apache / apache/beam

Gauge Metric type

Open
#18,175 0 comments 0 reactions 0 assignees View on GitHub
beam-model core java new feature P3 python
Dominant language
Java
Stars
8.7k
Forks
4.7k
Avg merge
1d 20h
Merged PRs (30d)
196

Description

Add support for Gauge metric type to the SDK.
This will serve to get the last value reported.

Interface should be along the lines of:
```

void set(long value);

```

Compare to http://metrics.dropwizard.io/3.1.0/apidocs/com/codahale/metrics/Gauge.html

Imported from Jira [BEAM-1616](https://issues.apache.org/jira/browse/BEAM-1616). Original Jira may contain additional context.
Reported by: aviemzur.

Contributor guide

Open the contributing guide

Research direction

Start by locating the Java SDK metric API and its existing metric types, then compare the proposed interface with the linked Dropwizard Gauge documentation. Add support for setting a long value whose latest value can be retrieved, and verify the behavior with the SDK's metric tests if present.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
observability
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.