Movatterモバイル変換


[0]ホーム

URL:


Metrics

Fabio collects metrics per route and service instance as well as running totalsto avoid computing large amounts of metrics. The metrics can be sent toCirconus,Graphite,StatsD,DataDog(via statsd - or since v1.6.0 to native protocol with tag support) or stdout. See themetrics.*options in thefabio.propertiesfile. Prometheus is also possible, but it works the reverse of the other metrics platforms.Instead of pushing data to a metrics server, prometheus expects to poll an endpoint for changes.

Configuring Prometheus Metrics

To configure prometheus metrics, you need to do the following:

  1. You must specify that prometheus is themetrics.target
  2. You must configure a listener inproxy.addr withproto=prometheus
  3. (optional) override themetrics.prometheus.path,metrics.prometheus.subsystem,andmetrics.prometheus.buckets.

Metrics info (for non-tagged backends, such as circonus and statsd_raw)

Fabio reports the following metrics:

NameTypeDescription
{route}.rxtimerNumber of bytes received by fabio for TCP target
{route}.txtimerNumber of bytes transmitted by fabio for TCP target
{route}timerAverage response time for a route
http.status.code.{code}timerAverage response time for all HTTP(S) requests per status code
notfoundcounterNumber of failed HTTP route lookups
requeststimerAverage response time for all HTTP(S) requests
grpc.requeststimerAverage response time for all GRPC(S) requests
grpc.noroutecounterNumber of failed GRPC route lookups
grpc.conncounterNumber of established GRPC proxy connections
grpc.status.{code}timerAverage response time for all GRPC(S) requests per status code
tcp.conncounterNumber of established TCP proxy connections
tcp.connfailcounterNumber of TCP upstream connection failures
tcp.noroutecounterNumber of failed TCP upstream route lookups
tcp_sni.conncounterNumber of established TCP+SNI proxy connections
tcp_sni.connfailcounterNumber of failed TCP+SNI proxy connections
tcp_sni.noroutecounterNumber of failed TCP+SNI upstream route lookups
ws.conngaugeNumber of actively open websocket connections

Legend

timer

A timer counts events and provides an average throughput and latency number.Depending on the metrics provider the aggregation happens either in the metrics library(go-metrics: statsd, graphite) or in the system of the metrics provider (Circonus)

counter

A counter counts events and provides an monotonically increasing value.

gauge

A gauge provides a current value.

{code}

{code} is the three digit HTTP status code like200.

{route}

{route} is a shorthand for the metrics name generated for a routewith themetrics.names template defined infabio.properties


[8]ページ先頭

©2009-2025 Movatter.jp