tis-grafana icon

GrafanaOSS

Paquet d’installation silencieuse pour GrafanaOSS

12.2.0.0-1

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

package           : tis-grafana
version           : 12.2.0.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      : f4360651-e9cc-42e6-bdbc-2e45f86a89be
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-09-29T01:01:52.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         : yQBFiRBHCUpikdNYz+KMnNUfssXylvxl6PzCGo5QH6hOIm/KK0jQmGXV+G1eiPVf+UBSIXVLWDgg2/lD2sO4ZL4hQrus0ak6ztb+Ol8C5G790UMB2Ku7EM34u5EzQfn1sHqM3YrPMSWtPxnyRdV0yb5tVyPBu8Ver4ol6gZ5oTfaO5B5umicAZsgYK7PMjgF4LdTgQe4Z/ki28+wv46NFsbNSqqWqzuSJ3xvu1mNx/VKVVNMj6qChpDVuTafCxADMcBDyJjvDfO1R10IBgThMTFJtuW/9GeGM04a6FIDuj48DnQ1a01uCr5o+ZeOMtvTHORIsDk44HDKcQFP1i1h/Q==

# -*- 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
9a429bd02e1068f3fd2b168b8b8328f555b28384b9695c7f78c0300cdc8b658e : WAPT/control
4f5c0594b5b2cbdf20cd771c1d289bf4d81d9c556ffdb91af0869e283c5d2587 : WAPT/icon.png
b5b9daeec3aa14a38c1385cc813ee1be2fef6cdadf3e6808ff12f387a69b538b : grafana_12.2.0_17949786146_windows_amd64.msi
39260975f8540c38812ab7c2fc4f6ab85ab2c40b8b8c2d7fa5bbe65bdb136574 : luti.json
c0ff9b0d36a7475b51ed1f390d920a500f670fc0065ea9edc12a48eb316ce7ae : setup.py
e526a2789f55bca0f807ebefcfd6e76eecad7aeb4d77781296b49fe4477128e8 : update_package.py