Documentation
Other
Prometheus

Prometheus

Unown# services can export metrics in the Prometheus (opens in a new tab) format. Scrape them with Prometheus or VictoriaMetrics and visualise them in Grafana (opens in a new tab).

Golbat

Enable the endpoint in your Golbat config:

[prometheus]
enabled = true
token = ""          # optional; when set, scrapers must send "Authorization: Bearer <token>"
#live_stats = true  # also export current gym, raid and invasion counts from the database

Metrics are served at http://<golbat>:<port>/metrics. A scrape config:

prometheus.yml
scrape_configs:
  - job_name: golbat
    static_configs:
      - targets: ['127.0.0.1:9001']
    # authorization:
    #   credentials: your_token

All Golbat metrics start with golbat_. Useful families:

MetricsShows
golbat_raw_requests, golbat_raw_packets_shed_total, golbat_raw_processing_waitingIncoming data, and data dropped under overload
golbat_decode_*Processed game messages by type and result
golbat_pokemon_count_*, golbat_verified_pokemon_ttlPokémon seen, IV/shiny/hundo counts and despawn time coverage per area
golbat_raid_count, golbat_incident_count, golbat_max_battle_count, golbat_fort_changeRaids, invasions, max battles and fort changes
golbat_gyms, golbat_raids, golbat_incidents, golbat_lures, golbat_questsCurrent totals (with live_stats)
golbat_db_query_duration_seconds, golbat_slow_db_queries_total, golbat_write_behind_*Database performance and the write queue
golbat_api_scan_durationAPI scan latency

Golbat also exports standard Go runtime metrics and HTTP and gRPC request metrics.

A ready-made Grafana dashboard is available in the Golbat repository: golbat-vm-dashboard.json (opens in a new tab).