tis-grafana icon

GrafanaOSS

Paquet d’installation silencieuse pour GrafanaOSS

12.1.1.0-1

  • package: tis-grafana
  • name: GrafanaOSS
  • version: 12.1.1.0-1
  • maintainer: WAPT Team,Tranquil IT,Amel FRADJ
  • licence: GNU AFFERO GENERAL PUBLIC LICENSE
  • target_os: windows
  • architecture: x64
  • signature_date:
  • size: 331.19 Mo
  • homepage : https://grafana.com/grafana/

package           : tis-grafana
version           : 12.1.1.0-1
architecture      : x64
section           : base
priority          : optional
name              : GrafanaOSS
categories        : 
maintainer        : WAPT Team,Tranquil IT,Amel FRADJ
description       : Grafana is a feature-rich, open source metrics dashboard and graph editor for Graphite, Elasticsearch, OpenTSDB, Prometheus and InfluxDB
depends           : 
conflicts         : 
maturity          : PROD
locale            : 
target_os         : windows
min_wapt_version  : 
sources           : 
installed_size    : 
impacted_process  : 
description_fr    : Grafana est un tableau de bord de métriques open source et riche en fonctionnalités et un éditeur de graphiques pour Graphite, Elasticsearch, OpenTSDB, Prometheus et InfluxDB
description_pl    : Grafana to bogaty w funkcje pulpit nawigacyjny i edytor wykresów typu open source dla Graphite, Elasticsearch, OpenTSDB, Prometheus i InfluxDB
description_de    : Grafana ist ein funktionsreiches Open-Source-Dashboard für Metriken und ein Grafikeditor für Graphite, Elasticsearch, OpenTSDB, Prometheus und InfluxDB
description_es    : Grafana es un panel de métricas de código abierto con numerosas funciones y un editor de gráficos para Graphite, Elasticsearch, OpenTSDB, Prometheus e InfluxDB
description_pt    : Grafana é um painel de métricas de código aberto rico em recursos e editor de gráficos para Graphite, Elasticsearch, OpenTSDB, Prometheus e InfluxDB
description_it    : Grafana è un cruscotto di metriche open source ricco di funzionalità e un editor di grafici per Graphite, Elasticsearch, OpenTSDB, Prometheus e InfluxDB
description_nl    : Grafana is een veelzijdig open source metriek dashboard en grafiekeditor voor Graphite, Elasticsearch, OpenTSDB, Prometheus en InfluxDB
description_ru    : Grafana - это многофункциональная панель метрик с открытым исходным кодом и редактор графов для Graphite, Elasticsearch, OpenTSDB, Prometheus и InfluxDB
audit_schedule    : 
editor            : 
keywords          : 
licence           : GNU AFFERO GENERAL PUBLIC LICENSE
homepage          : https://grafana.com/grafana/
package_uuid      : c8912ed5-d22e-4fa0-9df6-c9682e8d33a5
valid_from        : 
valid_until       : 
forced_install_on : 
changelog         : 
min_os_version    : 10.0
max_os_version    : 
icon_sha256sum    : 4f5c0594b5b2cbdf20cd771c1d289bf4d81d9c556ffdb91af0869e283c5d2587
signer            : Tranquil IT
signer_fingerprint: 8c5127a75392be9cc9afd0dbae1222a673072c308c14d88ab246e23832e8c6bb
signature_date    : 2025-08-23T09:04:37.000000
signed_attributes : package,version,architecture,section,priority,name,categories,maintainer,description,depends,conflicts,maturity,locale,target_os,min_wapt_version,sources,installed_size,impacted_process,description_fr,description_pl,description_de,description_es,description_pt,description_it,description_nl,description_ru,audit_schedule,editor,keywords,licence,homepage,package_uuid,valid_from,valid_until,forced_install_on,changelog,min_os_version,max_os_version,icon_sha256sum,signer,signer_fingerprint,signature_date,signed_attributes
signature         : mIa9JOiZ9FC4NVStBSxyVGPD4za2wNDq5dzLSM0LtM7PzEM0thjeasVis7vcA6xTW4TXr5x6tHXiK+fZDfnjO+BrTz9neRxcwhwIzVTNH+mJ0Aak1pL7InLSnGp1zo6vzUrKKKtjhy93BSWmyhOI3B3fPNSvzSmoUP2Vvy+ov7+uVyMqNV/XATpVqK3ZrYJgasyW0nSEf3O50UlrEuvtoXg/ByTFVVsVXtmt8hyzANLBsKBRX17Gsv4JFj348MtlAFCTU80yMj5FeKd3LiA4A9/l+n1D3kOyRsF7Dj7Nhpn33WU51LVNcLNQ6HvOhx5reTfoaYVSMRTMrpRl6SXaAg==

# -*- coding: utf-8 -*-
from setuphelpers import *

r"""
Usable WAPT package functions: install(), uninstall(), session_setup(), audit(), update_package()

"""
# Declaring global variables - Warnings: 1) WAPT context is only available in package functions; 2) Global variables are not persistent between calls


def install():
    bin_name = glob.glob("grafana*.msi")[0]
    for u in installed_softwares('grafana'):
        if Version(u['version']) < Version(control.get_software_version()):
            run(uninstall_cmd(u['key']))
    install_msi_if_needed(
        bin_name,
        min_version=control.get_software_version(),
        timeout=600,
    )


# -*- coding: utf-8 -*-
from setuphelpers import *
from setupdevhelpers import *
import glob




def update_package():
    # Declaring local variables
    package_updated = False
    
    proxies = get_proxies_from_wapt_console()
    if not proxies:
        proxies = get_proxies()

  
    url_base = "https://grafana.com/grafana/download?edition=oss&platform=windows"
    response = requests.get(url_base,allow_redirects=True, proxies=proxies)
    # Extract the correct div using bs_find_all
    divs = bs_find_all(response.text, "div","class","download-package", proxies=proxies)
    msi_file = None
    for div in divs:
        if msi_file:
            break
        links = div.find_all('a', href=True)
        for link in links:
            if link['href'].endswith('.msi'):
                href = link['href']
                msi_file = href
                download_url = msi_file
                latest_bin = msi_file.split('/')[-1]
                version = latest_bin.split("_")[1]
                break


    # Downloading latest binaries
    print("Download URL is: %s" % download_url)
    if not isfile(latest_bin):
        print("Downloading: %s" % latest_bin)
        wget(download_url, latest_bin, proxies=proxies)
        package_updated = True
    else:
        print("Binary is present: %s" % latest_bin)


    # Deleting outdated binaries
    for f in glob.glob('*.zip'):
        if f != latest_bin:
            remove_file(f)

         
    version = get_version_from_binary(latest_bin)
    # Mettre à jour le package
    control.set_software_version(version)
    control.save_control_to_wapt()    
        

38d056ab130f7bf7c481c12636a4e9959de36561d3dfcbe54c6e3571bc0c1dc3 : WAPT/certificate.crt
83b45f23603b9bfbd157b355cee87105c1fdd5cd6107d1b57dd525054671c74d : WAPT/control
4f5c0594b5b2cbdf20cd771c1d289bf4d81d9c556ffdb91af0869e283c5d2587 : WAPT/icon.png
6d4041daad9af7e1319264060fa7b832e2b568fa09c12a8bb868a82417e87fac : grafana_12.1.1_16903967602_windows_amd64.msi
d581f96d69604b7b33fc5dcce19826ce236d8d7ab97c98cd6627cb4fc991f5ae : luti.json
c0ff9b0d36a7475b51ed1f390d920a500f670fc0065ea9edc12a48eb316ce7ae : setup.py
e526a2789f55bca0f807ebefcfd6e76eecad7aeb4d77781296b49fe4477128e8 : update_package.py