Synadia Platform

Metrics

Controls NATS server metrics collection from Control Plane.

Setting a scrape interval too low will result in near constant scraping of the NATS cluster metrics and can lead to performance issues: many of the statistics require some level of locking within the NATS server to collect.

We recommend leaving the interval at the default 15 seconds, especially on busy clusters

Scraper is the Control Plane internal NATS metrics scraper. We recommend using this scraper type as it is more efficient than NATS Surveyor and allows sharing cached statistics across multiple Control Plane functions.

Metrics Configuration

KeyTypeRequiredDefaultDescription
default_scrape_interval_secondsintNo15How frequently to scrape NATS systems (global default)
system_optionsmap of ID : System OptionsNoemptySystem specific metrics settings

System Options

KeyTypeRequiredDefaultDescription
scrape_intervalintNo15How frequently to scrape NATS systems
scraper_typeenumNoscraperscraper, surveyor
extended_metricsboolNofalseEnable extended metrics reporting: JSZ stream and consumer statistics

Example (YAML):

metrics:
  system_options:
    33QrKYunJQlHdbEypBSgjkziE3k:
      scrape_interval: 10
      scraper_type: scraper
      extended_metrics: true
Previous
Logging