Skip to content

telemetry ​

telemetry counts datagrams and bytes with the global OpenTelemetry meter provider configured in the top level telemetry section, then continues the chain.

yaml
server:
  udp:
    middlewares:
      metrics:
        telemetry:
          name: dns
    routers:
      dns:
        entrypoints: [dns]
        middlewares: [metrics, resolver]
FieldDefaultDescription
namemiddleware nameValue of the name attribute.
MetricTypeDescription
turna.udp.packetscounterReceived datagrams.
turna.udp.receivedcounter (By)Received bytes.

Place it first in the router so dropped datagrams are counted too.