zerotier / zerotier/ZeroTierOne

[Feature Request] Ability to disable metrics.prom write

Open
#2,152 11 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
C++
Stars
17.1k
Forks
2k
PR merge metrics
No merged PRs in 30d

Description

https://discuss.zerotier.com/t/ability-to-disable-on-disk-metrics-prom-file/15420

I am a Windows user and tmpfs is not really an option for me. I am willing to open a PR for this, but I would like to discuss how a toggle would be enabled. AFAIK, there is no configuration file for global behavior so there is not a straight forward way of implementing this

One elegant way in my opinion would be to check if metrics.prom exists on program start. If it does, the metric logging is enabled

Let me know what you think

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 the linked discussion about disabling the on-disk metrics.prom file, then locate the metrics.prom creation and write path in the C++ code. Review how startup behavior and configuration are handled, and confirm the chosen toggle or file-based behavior by testing that metrics writing can be disabled without affecting other operation.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
networking, observability-sre
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.