From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from srv1.stroeder.com (srv1.stroeder.com [213.240.180.113]) by mail.toke.dk (Postfix) with ESMTPS id 8420182B785 for ; Tue, 13 Apr 2021 14:58:49 +0200 (CEST) Authentication-Results: mail.toke.dk; dkim=pass (1536-bit key) header.d=stroeder.com header.i=@stroeder.com header.b=Ne31U3It DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=stroeder.com; s=stroeder-com-20201114; t=1618318727; bh=QMNfK8u9FBK7NBBF0nrCUIJYVBPwUCG3xtKdzO/WjRg=; h=To:References:From:Subject:Date:In-Reply-To:From; b=Ne31U3ItItpXPEPX+WgsdSsPLxEJEXgP3X74r6AtB+oHZHKnU6uc/wmE/nLwMUp+m x1vpbSDKZfacGuhlDPPp6i+JKjqiGsHlvBaXObGD0Reh93Lvgy1wJj/d9FnubWPZ0u mwLuIuvx7MkxO90lcUaAMnicloYhmaMOhwM9Hv8AnoOPklBu7LgVy/tfrFdcFTKyb/ zs38YO+Epd06pN50cK64uJaNgHRLRH1jacT28hFPw6aopqEvnWsvVoVyud7 To: galene@lists.galene.org References: <6AF7B2D8-D370-432F-BCB8-C714C1DED4CC@rouillier.fr> <2bf5e895-c758-62d4-68a1-1c747268bb26@crans.org> <09B3386F-42F0-4A30-A1F9-B65CCC106A4E@rouillier.fr> <2540d5d9-6ac8-d6f6-f468-565e98853d43@crans.org> <21640176-922A-4715-A0E3-DE5BEFECD720@rouillier.fr> <87v98uz0fv.wl-jch@irif.fr> <833a546d-dbe2-00c4-273e-16bc6664a9f8@umontpellier.fr> <87h7kbrb70.wl-jch@irif.fr> <85037a41-4903-4342-195b-5f5160f45823@umontpellier.fr> <87eeffr2cp.wl-jch@irif.fr> <6dc12b35-3a3f-7472-5672-bcf94d0f4e95@crans.org> <2a066161-4589-97b5-2062-733b5b9304d4@umontpellier.fr> <87fszuscyi.wl-jch@irif.fr> <3e2b9b92-0a1a-9946-9112-8ed4be9df183@umontpellier.fr> <87tuoaqt8x.wl-jch@irif.fr> From: =?UTF-8?Q?Michael_Str=c3=b6der?= Message-ID: Date: Tue, 13 Apr 2021 14:58:45 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.9.0 MIME-Version: 1.0 In-Reply-To: <87tuoaqt8x.wl-jch@irif.fr> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 8bit Message-ID-Hash: UOVFFWDHIR5II6LID62T2E6GHS7GQODY X-Message-ID-Hash: UOVFFWDHIR5II6LID62T2E6GHS7GQODY X-MailFrom: michael@stroeder.com X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header X-Mailman-Version: 3.3.4 Precedence: list Subject: [Galene] Re: Statistics [was: Installation Script] List-Id: =?utf-8?q?Gal=C3=A8ne_videoconferencing_server_discussion_list?= Archived-At: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: On 4/13/21 2:11 PM, Juliusz Chroboczek wrote: >> the html page might be difficult to parse (need web scraping ?) to get >> those data for a longer period. > > Solution 1: add a /stats.json in addition to /stats > > Solution 2: create /stats.json, and replace /stats with a piece of > JavaScript that fetches /stats.json and formats it. > > Preferences? Other ideas? /stats?fmt=metrics Prometheus/grafana combo is quite popular today. https://prometheus.io/docs/guides/go-application/ https://github.com/prometheus/client_golang Problem is to get the metrics labeling right because currently the streams are grouped by random IDs in /stats. And many random labels will result in separate many time-series... Ciao, Michael.