mirror of
https://gitlab.xiph.org/xiph/icecast-server.git
synced 2024-11-03 04:17:17 -05:00
Vastly improved page about Icecast statistics
svn path=/icecast/trunk/icecast/; revision=19126
This commit is contained in:
parent
a517f4c1ce
commit
5c662ce634
@ -11,7 +11,6 @@
|
|||||||
<hr id='titlebar' />
|
<hr id='titlebar' />
|
||||||
<br />
|
<br />
|
||||||
<br />
|
<br />
|
||||||
<br />
|
|
||||||
<ul>
|
<ul>
|
||||||
<li><a href="#overview">Overview</a></li>
|
<li><a href="#overview">Overview</a></li>
|
||||||
<li><a href="#xslt">HTML interface, XSLT generated</a></li>
|
<li><a href="#xslt">HTML interface, XSLT generated</a></li>
|
||||||
@ -21,16 +20,18 @@
|
|||||||
|
|
||||||
<a name="overview"></a>
|
<a name="overview"></a>
|
||||||
<h2>Overview</h2>
|
<h2>Overview</h2>
|
||||||
|
<p>Icecast provides extensive run time statistics. Both in the form of active connection numbers and cumulative counters (since server startup or respectively source connection startup).</p>
|
||||||
<a name="xslt"></a>
|
<a name="xslt"></a>
|
||||||
<h2>HTML interface, XSLT generated</h2>
|
<h2>HTML interface, XSLT generated</h2>
|
||||||
|
<p>Icecast comes with a basic, XHTML web interface. It exposes a basic set of server statistics that should fulfil basic user needs. If so desired the files in web-root can be customized to contain more or less information (see section on raw XML data below). <br/>
|
||||||
|
We strongly discourage attempts to scrape data from this interface as we do not consider this an API and will change it, even completely, between versions. The preferred ways are custom XSLT, JSON and raw XML.</p>
|
||||||
<a name="xslt_advanced"></a>
|
<a name="xslt_advanced"></a>
|
||||||
<h2>Advanced machine readable data, XSLT generated</h2>
|
<h2>Advanced machine readable data, XSLT generated</h2>
|
||||||
|
<p>Icecast uses the very powerful libXSLT engine to transform its internal raw statistical data into custom tailored interfaces. Many people have written custom XSLT code that produces e.g. plain text "now playing", XSPF, VCLT, munin interface data, etc.</p>
|
||||||
|
<p>Since version 2.4.0 Icecast includes a basic JSON API (/status-json.xsl) based on a xml2json template by Doeke Zanstra (see xml2json.xslt). It exposes a basic set of server statistics that should fulfil basic user needs. The intention is to not break backwards compatibility of this interface in the future, still we recommend to design robust software that can deal with possible changes like addition or removal of variables.</p>
|
||||||
<a name="available_raw_data"></a>
|
<a name="available_raw_data"></a>
|
||||||
<h2>Available raw data</h2>
|
<h2>Available raw data</h2>
|
||||||
<p>This section contains information about the raw server statistics data available inside icecast. An example stats XML tree will be shown and each element will be described. The following example stats tree will be used (it should not be considered complete nor authoritative):</p>
|
<p>This section contains information about the raw XML server statistics data available inside icecast. An example stats XML tree will be shown and each element will be described. The following example stats tree will be used:</p>
|
||||||
<pre>
|
<pre>
|
||||||
<?xml version="1.0"?>
|
<?xml version="1.0"?>
|
||||||
<icestats>
|
<icestats>
|
||||||
@ -45,6 +46,7 @@
|
|||||||
<location>Earth</location>
|
<location>Earth</location>
|
||||||
<server_id>Icecast 2.4.0</server_id>
|
<server_id>Icecast 2.4.0</server_id>
|
||||||
<server_start>Tue, 01 Apr 2014 23:42:05 +0000</server_start>
|
<server_start>Tue, 01 Apr 2014 23:42:05 +0000</server_start>
|
||||||
|
<server_start_iso8601>2014-04-01T23:42:05+0000</server_start>
|
||||||
<source_client_connections>1</source_client_connections>
|
<source_client_connections>1</source_client_connections>
|
||||||
<source_relay_connections>0</source_relay_connections>
|
<source_relay_connections>0</source_relay_connections>
|
||||||
<source_total_connections>1</source_total_connections>
|
<source_total_connections>1</source_total_connections>
|
||||||
@ -70,6 +72,7 @@
|
|||||||
<slow_listeners>1</slow_listeners>
|
<slow_listeners>1</slow_listeners>
|
||||||
<source_ip>203.0.113.42</source_ip>
|
<source_ip>203.0.113.42</source_ip>
|
||||||
<stream_start>Wed, 02 Apr 2014 13:37:42 +0000</stream_start>
|
<stream_start>Wed, 02 Apr 2014 13:37:42 +0000</stream_start>
|
||||||
|
<stream_start_iso8601>2014-04-02T13:37:42+0000</stream_start>
|
||||||
<subtype>Vorbis</subtype>
|
<subtype>Vorbis</subtype>
|
||||||
<title>Test title</title>
|
<title>Test title</title>
|
||||||
<total_bytes_read>448632</total_bytes_read>
|
<total_bytes_read>448632</total_bytes_read>
|
||||||
@ -89,61 +92,66 @@
|
|||||||
<div class="indentedbox">
|
<div class="indentedbox">
|
||||||
As set in the server config, this should contain contact details for getting in touch with the server administrator. Usually this will be an email address, but as this can be an arbitrary string it could also be a phone number.
|
As set in the server config, this should contain contact details for getting in touch with the server administrator. Usually this will be an email address, but as this can be an arbitrary string it could also be a phone number.
|
||||||
</div>
|
</div>
|
||||||
<h4>client-connections</h4>
|
<h4>client_connections</h4>
|
||||||
<div class="indentedbox">
|
<div class="indentedbox">
|
||||||
Client connections are basically anything that is not a source connection. These include listeners (not concurrent, but cumulative), any admin function accesses, and any static content (file serving) accesses.
|
Client connections are basically anything that is not a source connection. These include listeners (not concurrent, but cumulative), any admin function accesses, and any static content (file serving) accesses. This is an accumulating counter.
|
||||||
</div>
|
</div>
|
||||||
<h4>clients</h4>
|
<h4>clients</h4>
|
||||||
<div class="indentedbox">
|
<div class="indentedbox">
|
||||||
<!--FIXME-->
|
Number of currently active client connections. <!-- FIXME: be more verbose -->
|
||||||
</div>
|
</div>
|
||||||
<h4>connections</h4>
|
<h4>connections</h4>
|
||||||
<div class="indentedbox">
|
<div class="indentedbox">
|
||||||
The total of all inbound TCP connections since start-up.
|
The total of all inbound TCP connections since start-up. This is an accumulating counter.
|
||||||
</div>
|
</div>
|
||||||
<h4>file_connections</h4>
|
<h4>file_connections</h4>
|
||||||
<div class="indentedbox">
|
<div class="indentedbox">
|
||||||
<!--FIXME-->
|
<!--FIXME-->This is an accumulating counter.
|
||||||
</div>
|
</div>
|
||||||
<h4>host</h4>
|
<h4>host</h4>
|
||||||
<div class="indentedbox">
|
<div class="indentedbox">
|
||||||
As set in the server config,<!--FIXME-->
|
As set in the server config, this should be the full DNS resolveable name or FQDN for the host on which this icecast instance is running.
|
||||||
</div>
|
</div>
|
||||||
<h4>listener_connections</h4>
|
<h4>listener_connections</h4>
|
||||||
<div class="indentedbox">
|
<div class="indentedbox">
|
||||||
<!--FIXME-->
|
Number of listener connections to mount points. This is an accumulating counter.
|
||||||
</div>
|
</div>
|
||||||
<h4>listeners</h4>
|
<h4>listeners</h4>
|
||||||
<div class="indentedbox">
|
<div class="indentedbox">
|
||||||
<!--FIXME-->
|
Number of currently active listener connections.
|
||||||
</div>
|
</div>
|
||||||
<h4>location</h4>
|
<h4>location</h4>
|
||||||
<div class="indentedbox">
|
<div class="indentedbox">
|
||||||
As set in the server config,<!--FIXME-->
|
As set in the server config, this is a free form field that should describe e.g. the physical location of this server.
|
||||||
</div>
|
</div>
|
||||||
<h4>server_id</h4>
|
<h4>server_id</h4>
|
||||||
<div class="indentedbox">
|
<div class="indentedbox">
|
||||||
Defaults to the version string of the currently running Icecast server. While not recommended it can be overriden in the server config.
|
Defaults to the version string of the currently running Icecast server. While not recommended it can be overriden in the server config.
|
||||||
</div>
|
</div>
|
||||||
|
<h4>server_start_iso8601</h4>
|
||||||
|
<div class="indentedbox">
|
||||||
|
Timestamp of server startup in ISO 8601 date format.
|
||||||
|
</div>
|
||||||
<h4>server_start</h4>
|
<h4>server_start</h4>
|
||||||
<div class="indentedbox">
|
<div class="indentedbox">
|
||||||
<!--FIXME-->
|
Timestamp of server startup in RFC 2822 date format. This field is deprecated and may be removed in a future version, please use <em>server_start_iso8601</em> instead.
|
||||||
</div>
|
</div>
|
||||||
<h4>source_client_connections</h4>
|
<h4>source_client_connections</h4>
|
||||||
<div class="indentedbox">
|
<div class="indentedbox">
|
||||||
Source client connections are the number of times (cumulative since start-up, not just currently connected) a source client has connected to icecast.
|
Source client connections are the number of times (cumulative since start-up, not just currently connected) a source client has connected to icecast. This is an accumulating counter.
|
||||||
</div>
|
</div>
|
||||||
<h4>source_relay_connections</h4>
|
<h4>source_relay_connections</h4>
|
||||||
<div class="indentedbox">
|
<div class="indentedbox">
|
||||||
<!--FIXME-->
|
Number of outbound relay connections to (master) icecast servers. This is an accumulating counter.
|
||||||
</div>
|
</div>
|
||||||
<h4>source_total_connections</h4>
|
<h4>source_total_connections</h4>
|
||||||
<div class="indentedbox">
|
<div class="indentedbox">
|
||||||
|
Both clients and relays. This is an accumulating counter.
|
||||||
<!--FIXME-->
|
<!--FIXME-->
|
||||||
</div>
|
</div>
|
||||||
<h4>sources</h4>
|
<h4>sources</h4>
|
||||||
<div class="indentedbox">
|
<div class="indentedbox">
|
||||||
The total of currently connected sources (mountpoints).
|
The total of currently connected sources.
|
||||||
</div>
|
</div>
|
||||||
<h4>stats</h4>
|
<h4>stats</h4>
|
||||||
<div class="indentedbox">
|
<div class="indentedbox">
|
||||||
@ -151,11 +159,13 @@ The total of currently connected STATS clients.
|
|||||||
</div>
|
</div>
|
||||||
<h4>stats_connections</h4>
|
<h4>stats_connections</h4>
|
||||||
<div class="indentedbox">
|
<div class="indentedbox">
|
||||||
Number of times (cumulative since start-up, not just currently connected) a stats client has connected to icecast.
|
Number of times a stats client has connected to icecast. This is an accumulating counter.
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
<h3>Source-specific Statistics</h3>
|
<h3>Source-specific Statistics</h3>
|
||||||
|
<p>Please note that the statistics are valid within the scope of the current source connection. A reconnect or disconnection will reset those.
|
||||||
|
</p>
|
||||||
<h4>artist</h4>
|
<h4>artist</h4>
|
||||||
<div class="indentedbox">
|
<div class="indentedbox">
|
||||||
Artist of the current song (metadata set by source client).
|
Artist of the current song (metadata set by source client).
|
||||||
@ -183,7 +193,7 @@ Information about the bitrate/samplerate/quality of the stream (metadata set by
|
|||||||
</div>
|
</div>
|
||||||
<h4>listener_peak</h4>
|
<h4>listener_peak</h4>
|
||||||
<div class="indentedbox">
|
<div class="indentedbox">
|
||||||
<!--FIXME-->
|
Peak concurrent number of listener connections for this mountpoint.
|
||||||
</div>
|
</div>
|
||||||
<h4>listeners</h4>
|
<h4>listeners</h4>
|
||||||
<div class="indentedbox">
|
<div class="indentedbox">
|
||||||
@ -191,11 +201,11 @@ The number of currently connected listeners.
|
|||||||
</div>
|
</div>
|
||||||
<h4>listenurl</h4>
|
<h4>listenurl</h4>
|
||||||
<div class="indentedbox">
|
<div class="indentedbox">
|
||||||
<!--FIXME-->
|
URL to this mountpoint. (This is not aware of aliases)
|
||||||
</div>
|
</div>
|
||||||
<h4>max_listeners</h4>
|
<h4>max_listeners</h4>
|
||||||
<div class="indentedbox">
|
<div class="indentedbox">
|
||||||
<!--FIXME-->
|
Maximum number of listeners permitted to concurrently connect to this mountpoint.
|
||||||
</div>
|
</div>
|
||||||
<h4>public</h4>
|
<h4>public</h4>
|
||||||
<div class="indentedbox">
|
<div class="indentedbox">
|
||||||
@ -219,7 +229,7 @@ Flag that indicates whether this mount is to be listed on a YP (set by source cl
|
|||||||
</div>
|
</div>
|
||||||
<h4>server_type</h4>
|
<h4>server_type</h4>
|
||||||
<div class="indentedbox">
|
<div class="indentedbox">
|
||||||
<!--FIXME-->
|
MIME-type for the stream currently active on this mountpoint.
|
||||||
</div>
|
</div>
|
||||||
<h4>slow_listeners</h4>
|
<h4>slow_listeners</h4>
|
||||||
<div class="indentedbox">
|
<div class="indentedbox">
|
||||||
@ -227,23 +237,27 @@ Flag that indicates whether this mount is to be listed on a YP (set by source cl
|
|||||||
</div>
|
</div>
|
||||||
<h4>source_ip</h4>
|
<h4>source_ip</h4>
|
||||||
<div class="indentedbox">
|
<div class="indentedbox">
|
||||||
<!--FIXME-->
|
IP address of the currently connected source client. In case of relays the content of <server>.
|
||||||
|
</div>
|
||||||
|
<h4>stream_start_iso8601</h4>
|
||||||
|
<div class="indentedbox">
|
||||||
|
Timestamp of when the currently active source client connected to this mount point in ISO 8601 date format.
|
||||||
</div>
|
</div>
|
||||||
<h4>stream_start</h4>
|
<h4>stream_start</h4>
|
||||||
<div class="indentedbox">
|
<div class="indentedbox">
|
||||||
<!--FIXME-->
|
Timestamp of when the currently active source client connected to this mount point in RFC 2822 date format. This field is deprecated and may be removed in a future version, please use <em>stream_start_iso8601</em> instead.
|
||||||
</div>
|
</div>
|
||||||
<h4>subtype</h4>
|
<h4>subtype</h4>
|
||||||
<div class="indentedbox">
|
<div class="indentedbox">
|
||||||
<!--FIXME-->
|
MIME-subtype, can be e.g. codecs like Opus, Vorbis, Theora.
|
||||||
</div>
|
</div>
|
||||||
<h4>total_bytes_read</h4>
|
<h4>total_bytes_read</h4>
|
||||||
<div class="indentedbox">
|
<div class="indentedbox">
|
||||||
<!--FIXME-->
|
Total number of bytes received from the source client.
|
||||||
</div>
|
</div>
|
||||||
<h4>total_bytes_sent</h4>
|
<h4>total_bytes_sent</h4>
|
||||||
<div class="indentedbox">
|
<div class="indentedbox">
|
||||||
<!--FIXME-->
|
Total number of bytes sent to all listener connections since last source connect.
|
||||||
</div>
|
</div>
|
||||||
<h4>user_agent</h4>
|
<h4>user_agent</h4>
|
||||||
<div class="indentedbox">
|
<div class="indentedbox">
|
||||||
|
Loading…
Reference in New Issue
Block a user