New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
nixos/prometheus-bitcoin-exporter: init #89267
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't know much about the Python bits but left some comments on the Prometheus aspects.
''; | ||
}; | ||
|
||
refreshSeconds = mkOption { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Typically you would want a Prometheus exporter to fetch all metrics immediately whenever queried, so that way it's up to Prometheus to decide how often the scrape interval should be. Why is this exporter configured this way?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Unfortunately that's how the exporter is written, to periodically poll the daemon. We can hardcode this to some low value and pretend that the option doesn't exist but I suppose it's better to not introduce such magic.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Opened suggestion to upstream: jvstein/bitcoin-prometheus-exporter#12
a693a4d
to
48e12cc
Compare
Updated the PR to include the patch that makes listening address of the exporter configurable, since it's been merged to master. |
48e12cc
to
ccce23c
Compare
#89247 has been merged & this is ready for review, PTAL. |
ccce23c
to
adbde00
Compare
adbde00
to
651baee
Compare
Rebased to master & fixed test failure due to port number collision. |
651baee
to
c249f34
Compare
@risicle do you want to have a look at this one too? |
I don't really know anything about bitcoin. |
c249f34
to
6b028bc
Compare
Currently a draft because it depends on pythonPackages.bitcoinlib: 0.9.0 -> 0.11.0 #89247riprova
python module as a dependency.The(merged to master, included as a patch)listenAddress
module option currently does nothing, PR: Make listening address configurable jvstein/bitcoin-prometheus-exporter#11.Motivation for this change
I like to monitor things.
Things done
sandbox
innix.conf
on non-NixOS linux)nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
./result/bin/
)nix path-info -S
before and after)