MyIO Metrics Proxy

This service proxies Prometheus metrics from MyIO centrals on the Yggdrasil network.

Usage

Scrape metrics from a target central by providing its IPv6 address:

http://proxy-server/metrics?target=<ipv6-address>

Example

http://localhost:8080/metrics?target=200:56fc:23ca:3468:ac57:a1a0:8353:4838

Prometheus Configuration

scrape_configs:
  - job_name: 'myio-centrals'
    scrape_interval: 30s
    metrics_path: /metrics
    static_configs:
      - targets:
        - '200:56fc:23ca:3468:ac57:a1a0:8353:4838'
        - '203:984:24ef:b578:69a6:7136:b9f2:b5c2'
    relabel_configs:
      - source_labels: [__address__]
        target_label: __param_target
      - source_labels: [__param_target]
        target_label: instance
      - target_label: __address__
        replacement: metrics-proxy:8080

Endpoints