Skip to content
This repository has been archived by the owner on Mar 25, 2022. It is now read-only.

Prometheus exporter for IPFS API #129

Closed
ghost opened this issue Dec 7, 2015 · 5 comments
Closed

Prometheus exporter for IPFS API #129

ghost opened this issue Dec 7, 2015 · 5 comments

Comments

@ghost
Copy link

ghost commented Dec 7, 2015

We're about to rip prometheus out of go-ipfs, and need something to poll the API for this info.

Examples:

  • ipfs swarm peers | wc -l
  • :5001/debug/pprof
@jbenet
Copy link
Member

jbenet commented Dec 8, 2015

too big?

@ghost
Copy link
Author

ghost commented Feb 1, 2016

While factoring out go-libp2p it became clear that the current integration isn't waterproof, i.e. go-libp2p would be depending on the prometheus client code. I didn't wanna justify this kind of bloat right at the birth of libp2p, and @whyrusleeping was happy enough to rip it out.

@jbenet
Copy link
Member

jbenet commented Feb 2, 2016

Between no metrics and bloat we should be choosing bloat right now. gx should make it not a problem to depend on this. gx should only be downloading source code, so it should be pretty light. (and yes Go binaries are bloated in general)

@jbenet
Copy link
Member

jbenet commented Feb 2, 2016

We should be adding more metrics, not removing them. I'm happy with whatever, but we shouldn't have a long interruption in metrics-- which is likely to happen if we don't make this an atomic swap (i.e. have something to replace it before removing it)

@ghost ghost mentioned this issue Mar 22, 2016
59 tasks
@ghost
Copy link
Author

ghost commented May 4, 2016

We have the proper IpfsCollector in go-ipfs now, which so far collects p2p_peers_total -- more possible metrics are:

  • transport dimension for p2p_peers_total, e.g. transport=/ip6/udp/utp
  • ipfs_gateway_request_inflight -- active gateway requests
  • ipfs_api_request_inflight -- active API requests
  • ipfs_repo_size -- disk space used by fs-repo
  • ipfs_bitswap_wants -- number of wants
  • ipfs_bitswap_bytes_rx -- incoming bytes counter
  • ipfs_bitswap_bytes_tx -- outgoing bytes counter

@ghost ghost closed this as completed May 9, 2016
This issue was closed.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant