Compare commits

...

1 Commits

Author SHA1 Message Date
13ec99f927
Add dashboard view for system storage 2023-07-03 22:49:38 +02:00
2 changed files with 11 additions and 0 deletions

View File

@ -27,6 +27,7 @@
<h2 id="sommaire">Sommaire</h2> <h2 id="sommaire">Sommaire</h2>
<ul> <ul>
<li> <a href="#sys" title="https://www.gnous.fr/stats.php#sys">Système</a></li>
<li> <a href="#mm" title="https://www.gnous.fr/stats.php#mm">Mattermost</a></li> <li> <a href="#mm" title="https://www.gnous.fr/stats.php#mm">Mattermost</a></li>
<ul> <ul>
<li> <a href="#mmsyn" title="https://www.gnous.fr/stats.php#mmsyn">Synthèse</a></li> <li> <a href="#mmsyn" title="https://www.gnous.fr/stats.php#mmsyn">Synthèse</a></li>
@ -46,6 +47,10 @@
</ul> </ul>
<h2 id=sys>Système</h2>
<h3 id=sysstorage>Espace disque</h3>
<a href="/ressources/stats/sys_storage.png" target="_blank" title="Système - Espace disque"><img src="ressources/stats/sys_storage.png"></a><br>
<h2 id=mm>Mattermost</h2> <h2 id=mm>Mattermost</h2>
<h3 id=mmsyn>Synthèse</h3> <h3 id=mmsyn>Synthèse</h3>
<a href="/ressources/stats/mmsyn.png" target="_blank" title="Mattermost - Synthèse"><img src="ressources/stats/mmsyn.png"></a><br> <a href="/ressources/stats/mmsyn.png" target="_blank" title="Mattermost - Synthèse"><img src="ressources/stats/mmsyn.png"></a><br>

View File

@ -21,6 +21,12 @@ try:
request.headers['Authorization'] = 'Basic '+os.environ["ES_TOKEN"] request.headers['Authorization'] = 'Basic '+os.environ["ES_TOKEN"]
browser.request_interceptor = interceptor browser.request_interceptor = interceptor
browser.set_window_size(3000, 940)
browser.get("https://mon.gnous.fr/app/dashboards#/view/b4a96730-3a7c-11ed-bf1e-a57b2b18165f?embed=true&_g=(filters%3A!()%2CrefreshInterval%3A(pause%3A!t%2Cvalue%3A0)%2Ctime%3A(from%3Anow-24h%2Fh%2Cto%3Anow))&hide-filter-bar=true")
sleep(60)
browser.get_screenshot_as_file("html/ressources/stats/sys_storage.png")
browser.set_window_size(3000, 285) browser.set_window_size(3000, 285)
browser.get("https://mon.gnous.fr/app/dashboards#/view/813e0b00-8544-11ec-876e-0f6254f8a3d0?embed=true&_g=(filters%3A!()%2CrefreshInterval%3A(pause%3A!t%2Cvalue%3A0)%2Ctime%3A(from%3Anow-15m%2Cto%3Anow))&hide-filter-bar=true") browser.get("https://mon.gnous.fr/app/dashboards#/view/813e0b00-8544-11ec-876e-0f6254f8a3d0?embed=true&_g=(filters%3A!()%2CrefreshInterval%3A(pause%3A!t%2Cvalue%3A0)%2Ctime%3A(from%3Anow-15m%2Cto%3Anow))&hide-filter-bar=true")