NixOS / NixOS/rfc39

Recommendations for integrating with Prometheus?

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

Nobody has claimed this yet.

Dominant language
Nix
Stars
3
Forks
8
Avg merge
4d 17h
Merged PRs (30d)
1

Description

IIUC, if you want to get metrics from rfc39 into prometheus, you configure rfc39 to run with a generous metrics_delay, and configure prometheus to scrape the endpoint that exists while rfc39 is running.

IMO, this is a bit funky:

I've done some research, and this doesn't seem to be how Prometheus recommends scraping batch jobs. Prometheus recommends either using Prometheus Pushgateway or Node Exporter's textfile collector.

Is it possible to use one of those approaces with rfc39? I see there's a --dump-metrics option, is that meant to be used with the textfile collector?

Contributor guide

No contributing guide indexed for this repository

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 with src/cli.rs and src/main.rs, especially --dump-metrics, metrics_delay, and the current endpoint behavior. Compare the Prometheus Pushgateway and node_exporter textfile collector approaches mentioned in the issue, then clarify which integration is wanted; done would require an agreed design and documented acceptance criteria.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.