Znalostní báze

Appliance administration · aktualizováno 14. září 2021 · revidováno 9. července 2026

Zapnutí metrik na Notakey Authentication serveru

Zpřístupněte metriky ve formátu Prometheus ze zařízení pomocí pluginu stats-agent, volitelně za VRRP adresou.

Nejnovější verze našeho Authentication serveru poskytují řadu provozních metrik, které umožňují sledovat využití služby a vytvářet upozornění na anomálie. Metriky jsou ve formátu Prometheus a jsou dostupné přímo z uzlu Notakey Appliance.

Statistiky agreguje plugin stats-agent, který je nutné nastavit na jednom nebo více uzlech. Metriky lze volitelně zpřístupnit i na VRRP adrese.

# minimal plugin configuration

ntk cfg set :plugins.\"stats-agent\" '{
   "ports": [
      "9394:9394"
    ],
    "tag": "statsagent"
  }' --json-input

Spusťte ntk plugins update, čímž aktualizujete image všech kontejnerů pluginů, a poté spusťte ntk plugins restart.

Po nastavení agenta je potřeba zapnout statistiky na Authentication serveru:

ntk cfg set :nas.custom_params "ENABLE_STATS=1,STATS_HOST=stats-agent"
ntk as restart

Metriky z Authentication serveru budou nyní dostupné na adrese http://<internal-ip>:9394/metrics.

Několik metrik, které lze sledovat:

ntk_as_auth_requests_created: Number of created auth requests per service
ntk_as_auth_requests_failed: Number of failed creations of auth requests
ntk_as_auth_requests_signed: Number of signing events for auth requests per service
ntk_as_api_auth_success_total: Number of successful API client authentication requests
ntk_as_api_auth_failures_total: Number of failed API client authentication requests
ntk_as_api_token_auth_fail_total: Token auth validation requests that failed
ntk_as_api_tokens_emitted_total: Number of issued authentication tokens
ntk_as_seats_issued_total: Total number of issued licensed seats
ntk_as_seats_total: Total number of available licensed seats
ntk_as_seat_destroy_count: Number of license seat removal events
ntk_as_seat_create_count: Number of license seat create events
ntk_as_http_duration_seconds_count: Request count of HTTP reqs, per endpoint
ntk_as_http_duration_seconds_sum: Time spent in HTTP reqs in seconds, per endpoint

Chcete-li, aby plugin stats-agent používal VRRP IP adresu, použijte následující příkazy:

# VRRP service must be configured on every node running stats-agent

# 172.17.0.1 is the default internal bridge IP address, available on every node
ntk cfg set vrrp.track.generic.url 'http://172.17.0.1:9394/metrics'

# Adjust IP address and select different priorities for each node
ntk cfg set vrrp.services.stats  '{
      "prio": "100",
      "vrid": "54",
      "interface": "eth0",
      "address": "10.0.1.97",
      "preempt": "off",
      "track": [
        "generic"
      ]
    }' --json-input

# Any VRRP config changes require restart
ntk vrrp restart

Po nastavení VRRP nasměrujte ověřovací server tak, aby statistiky publikoval na VRRP IP adresu — nastavte STATS_HOST=10.0.1.97 a restartujte službu (ntk as restart).

← Zpět na podporu

První přihlášení bez hesla už tento týden

30minutový rozhovor s inženýrem, žádná prodejní prezentace. Společně naplánujeme, jak ve vašem prostředí s VPN, SSO nebo Windows spustit funkční pilotní projekt.