mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
* API: support metrics for prometheus. * Metrics: optimize metrics statistics info. * Refine: remove redundant code. * Refine: fix metrics srs_streams param. * Metrics: add major param. * Metrics: refine params and metric comments. * For #2899: API: Support exporter for Prometheus. v5.0.67 Co-authored-by: winlin <winlin@vip.126.com>
This commit is contained in:
parent
e31f3b0e64
commit
981cab40d3
17 changed files with 236 additions and 10 deletions
|
@ -458,7 +458,8 @@ SrsRtcPlayStream::~SrsRtcPlayStream()
|
|||
|
||||
// update the statistic when client coveried.
|
||||
SrsStatistic* stat = SrsStatistic::instance();
|
||||
stat->on_disconnect(cid_.c_str());
|
||||
// TODO: FIXME: Should finger out the err.
|
||||
stat->on_disconnect(cid_.c_str(), srs_success);
|
||||
}
|
||||
|
||||
srs_error_t SrsRtcPlayStream::initialize(SrsRequest* req, std::map<uint32_t, SrsRtcTrackDescription*> sub_relations)
|
||||
|
@ -1108,7 +1109,8 @@ SrsRtcPublishStream::~SrsRtcPublishStream()
|
|||
|
||||
// update the statistic when client coveried.
|
||||
SrsStatistic* stat = SrsStatistic::instance();
|
||||
stat->on_disconnect(cid_.c_str());
|
||||
// TODO: FIXME: Should finger out the err.
|
||||
stat->on_disconnect(cid_.c_str(), srs_success);
|
||||
}
|
||||
|
||||
srs_error_t SrsRtcPublishStream::initialize(SrsRequest* r, SrsRtcSourceDescription* stream_desc)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue