Skip to content

Support traffic metrics #64

Description

@SuperQ

There are some interesting metrics on the traffic statistics endpoint. They appear to be sparse histogram buckets. It will take some digging, but we might be able to translate these into Prometheus buckets.

<?xml version="1.0" encoding="UTF-8"?>
<statistics version="3.8">
  <server>
    <boot-time>2020-01-12T16:30:26.247Z</boot-time>
    <config-time>2020-01-12T16:30:26.371Z</config-time>
    <current-time>2020-01-12T16:42:45.433Z</current-time>
    <version>9.11.5-P4-5~bpo9+1-Debian</version>
  </server>
  <traffic>
    <ipv4>
      <udp>
        <counters type="request-size">
          <counter name="16-31">3718</counter>
          <counter name="32-47">10699</counter>
          <counter name="48-63">12175</counter>
          <counter name="64-79">834</counter>
        </counters>
        <counters type="response-size">
          <counter name="64-79">100</counter>
          <counter name="80-95">1382</counter>
          <counter name="96-111">12759</counter>
          <counter name="112-127">3157</counter>
          <counter name="128-143">847</counter>
          <counter name="144-159">1</counter>
          <counter name="176-191">50</counter>
          <counter name="192-207">8971</counter>
          <counter name="208-223">105</counter>
          <counter name="224-239">52</counter>
          <counter name="480-495">1</counter>
          <counter name="496-511">1</counter>
        </counters>
      </udp>
      <tcp>
        <counters type="request-size"/>
        <counters type="response-size"/>
      </tcp>
    </ipv4>
    <ipv6>
      <udp>
        <counters type="request-size">
          <counter name="32-47">2</counter>
          <counter name="48-63">35</counter>
        </counters>
        <counters type="response-size">
          <counter name="64-79">2</counter>
          <counter name="96-111">9</counter>
          <counter name="112-127">4</counter>
          <counter name="128-143">21</counter>
          <counter name="144-159">1</counter>
        </counters>
      </udp>
      <tcp>
        <counters type="request-size"/>
        <counters type="response-size"/>
      </tcp>
    </ipv6>
  </traffic>
  <views/>
</statistics>

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions