Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

User quota metrics to be tracked #20

Open
dolftax opened this issue Sep 10, 2017 · 1 comment
Open

User quota metrics to be tracked #20

dolftax opened this issue Sep 10, 2017 · 1 comment
Milestone

Comments

@dolftax
Copy link

dolftax commented Sep 10, 2017

  1. How long has the current user done multi-streaming this month?
  2. What are the current stats (bandwidth, framerate, packet loss, latency etc.) per stream egress in multi-streaming for current stream?
  3. How much data is the current stream consuming?
  4. Total bandwidth egress for streams, per provider per region
  5. Total duration of streams, per provider per region
@kaustavdm
Copy link
Contributor

kaustavdm commented Sep 10, 2017

RTMP Stream statistics:

Key metrics for us are duration of stream, data transfer in, data transfer out and tracked per stream id. Statistics of currently routing RTMP multistreams, tracked per stream, will include these fields:

  • streamKey: string,
  • startTime: timestamp,
  • ingestIP: string, // IP address of ingestion,
  • transferIn: int, // data transfer in
  • transferOut: int, // data transfer out
  • outputStreams:
    • destination: string
  • streamMeta:
    • resolution
    • codec

FYI, here is a sample stat produced by nginx-rtmp. This scenario has 1 stream being published (<client> with <published/> property), which is routed to one destination (<client> with <active/> property`):

<?xml version="1.0" encoding="UTF-8"?>
<rtmp>
  <nginx_version>1.12.0</nginx_version>
  <nginx_rtmp_version>1.1.4</nginx_rtmp_version>
  <compiler>gcc 6.3.1 20161221 (Red Hat 6.3.1-1) (GCC)</compiler>
  <built>Jun 23 2017 20:59:09</built>
  <pid>11728</pid>
  <uptime>597</uptime>
  <naccepted>5</naccepted>
  <bw_in>2762176</bw_in>
  <bytes_in>112118587</bytes_in>
  <bw_out>2772408</bw_out>
  <bytes_out>49198920</bytes_out>
  <server>
    <application>
      <name>live</name>
      <live>
        <stream>
          <name>1234</name>
          <time>185270</time>
          <bw_in>2910272</bw_in>
          <bytes_in>57748758</bytes_in>
          <bw_out>2910272</bw_out>
          <bytes_out>44737662</bytes_out>
          <bw_audio>3056</bw_audio>
          <bw_video>2907216</bw_video>
          <client>
            <id>16</id>
            <address>127.0.0.1</address>
            <time>144070</time>
            <flashver>LNX 9,0,124,2</flashver>
            <dropped>0</dropped>
            <avsync>-11</avsync>
            <timestamp>184400</timestamp>
            <active />
          </client>
          <client>
            <id>14</id>
            <address>127.0.0.1</address>
            <time>185394</time>
            <flashver>FMLE/3.0 (compatible; FMSc/1.0)</flashver>
            <swfurl>rtmp://localhost/live</swfurl>
            <dropped>0</dropped>
            <avsync>-11</avsync>
            <timestamp>184400</timestamp>
            <publishing />
            <active />
          </client>
          <meta>
            <video>
              <width>1280</width>
              <height>720</height>
              <frame_rate>30</frame_rate>
              <codec>H264</codec>
              <profile>High</profile>
              <compat>0</compat>
              <level>3.1</level>
            </video>
            <audio>
              <codec>AAC</codec>
              <profile>LC</profile>
              <channels>2</channels>
              <sample_rate>44100</sample_rate>
            </audio>
          </meta>
          <nclients>2</nclients>
          <publishing />
          <active />
        </stream>
        <nclients>2</nclients>
      </live>
    </application>
  </server>
</rtmp>

@dolftax dolftax added this to the v0.1.0 milestone Oct 16, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants