oasisprotocol / oasisprotocol/oasis-core

Expose labels/tags in instrumentation

Open
#714 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

c:instrumentation c:ops c:testing
Dominant language
Go
Stars
369
Forks
151
Avg merge
1d 3h
Merged PRs (30d)
6

Description

prometheus has the concept of adding various metadata / tags/ labels to reported metrics, that it can natively segment / aggregate on.

For some of our classes of metrics, it'll be easier to have a single metric with differentiated metadata, rather than a new time series for each sub-set. We should expose a hook for adding these labels.

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 locating the existing instrumentation and Prometheus metric emission paths in the repository. Determine which metric classes need label support and define what the label hook should expose; done means those metrics can accept differentiated labels without requiring separate time series for each subset.

Written by the indexing model from the issue text.

Assessment

Tech stack
go, prometheus
Domain
observability
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.