prometheus / prometheus/exporter-toolkit

feature: Collector package

Open
#92 0 comments 3 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Go
Stars
311
Forks
109
Avg merge
3d 59m
Merged PRs (30d)
6

Description

Add a collector package that makes it easy to build collector "plugins". This allows users to create exporters by assembling packages from other exporters.

For example, the node_exporter has this feautre:

func registerCollector(collector string, isDefaultEnabled bool, factory func(logger log.Logger) (Collector, error)) 

Some collectors will need custom configuration passed in, or connection information for downstream services (MySQL, PostgreSQL, BIND, etc).

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

The issue names no files, tests, or entry points; start by examining the referenced node_exporter registerCollector pattern and how this repository currently builds exporters. Done means the collector package supports composing exporter collectors while accounting for custom configuration and downstream connection information such as MySQL, PostgreSQL, and BIND.

Written by the indexing model from the issue text.

Assessment

Tech stack
go
Domain
observability
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.