Skip to main content
MyTonCtrl pushes metrics to a Prometheus Pushgateway so Prometheus (and Grafana, if used) can scrape them without exposing the node directly.

Prerequisites

  • Docker and Docker Compose are installed on the host that runs Prometheus.
  • MyTonCtrl installed and running on the node that emits metrics.

Deploy Prometheus and Pushgateway

  1. In an empty directory, create docker-compose.yml:
  1. Create prometheus.yml alongside it:
  1. Start the stack and confirm the container status:

Configure MyTonCtrl to push metrics

  1. Open the MyTonCtrl console:
  1. Enable Prometheus mode:
  1. Point MyTonCtrl to the Pushgateway (include a job name):
<PUSHGATEWAY_HOST> — host running the Pushgateway (use 127.0.0.1 when MyTonCtrl and Docker run on the same machine). <JOB_NAME> — unique label for this node, for example validator1.

Verify metrics

  • Pushgateway: open http://<PUSHGATEWAY_HOST>:9091 and confirm metrics appear under <JOB_NAME>.
  • Prometheus targets: open http://<PROMETHEUS_HOST>:9090/targets and check that mytonctrl_pushgateway shows UP.
  • Prometheus graph: query mytonctrl_synced or other MyTonCtrl metrics at http://<PROMETHEUS_HOST>:9090/graph.