Files
pezkuwi-subxt/substrate/utils/prometheus
Max Inden 918a0c8077 *: Bump async-std to v1.6.5 (#7306)
* *: Bump async-std to v1.6.5

Prevent users from using v1.6.4 which faces issues receiving incoming
TCP connections. See https://github.com/async-rs/async-std/issues/888
for details.

* client/network/src/gossip: Use channel instead of condvar

`async_std::sync::Condvar::wait_timeout` uses
`gloo_timers::callback::Timeout` when compiled for
`wasm32-unknown-unknown`. This timeout implementation does not fulfill
the requirement of being `Send`.

Instead of using a `Condvar` use a `futures::channel::mpsc` to signal
progress from the `QueuedSender` to the background `Future`.

* client/network/Cargo.toml: Remove async-std unstable feature

* client/network/src/gossip: Forward all queued messages

* client/network/gossip: Have QueuedSender methods take &mut self

* client/network/gossip: Move queue_size_limit into QueuedSender

The `queue_size_limit` field is only accessed by `QueuedSender`, thus
there is no need to share it between the background future and the
`QueuedSender`.

* client/network/gossip: Rename background task to future

To be a bit picky the background task is not a task in the sense of an
asynchonous task, but rather a background future in the sense of
`futures::future::Future`.
2020-10-20 09:23:27 +00:00
..
2020-10-20 09:23:27 +00:00

Substrate Prometheus Exporter

Introduction

Prometheus is one of the most widely used monitoring tools for managing highly available services supported by Cloud Native Computing Foundation. By providing Prometheus metrics in Substrate, node operators can easily adopt widely used display/alert tools such as Grafana and Alertmanager. Easy access to such monitoring tools will benefit parachain developers/operators and validators to have much higher availability of their services.

Metrics will be served under /metrics on TCP port 9615 by default.

Quick Start

  1. From the root of the repository start Substrate cargo run --release.

  2. In another terminal run curl localhost:9615/metrics to retrieve the metrics.

To learn how to configure Prometheus see the Prometheus Getting Started guide.