tis-grafana icon

GrafanaOSS

Silent install package for GrafanaOSS

12.0.3.0-1

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

package           : tis-grafana
version           : 12.0.3.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      : 0ee64af3-6b43-454a-acee-c91c83cc869d
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-07-28T19:00:22.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         : kt6qSvttPZlRS6FgbUOmJtUdg0sa9Vwb9DBDYDie4L2tLS5Nl/grLjlL31Zb6D30m9H/VNOxhhwqVsaVSgvjF6EPdvGF0skAq8Y4qdRpqdtm6E7nttzww742NtT+dlKse/GMzZevrG7/COoN2f0KJ37Gu+m8E9Tj/9o4WaJ+DE5m/BsRE+NCaGfOl116yp6reVcmOaBsJQnGyMRvWZTqkBH2/4BMWCJjWkygMzZPboOFtbCZszHcKw1+eR9IzHEdb1GFRbCbfY7FldbFwrinPjk49sdpXXJKiFwguCShdHIRBJ58WleBVZ+3b96pZ05Jk1Szayf2oOzf2ObKPy2bNQ==

# -*- 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].split('.windows')[0]
                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
db25750bbcc14bead0ba4a802376b6d098ac4b4afda4a92d52f7b13f6373a00f : WAPT/control
4f5c0594b5b2cbdf20cd771c1d289bf4d81d9c556ffdb91af0869e283c5d2587 : WAPT/icon.png
e7fa06d6123fcc81fc190c1c77371cfa6a916a48a138b591474aedf1945c7367 : grafana-12.0.3.windows-amd64.msi
65c7c2c75c6a643f9e64a20505befdaf25b7be5c0570c75188ebb5d193f816a7 : luti.json
ad5179950b58355ff1133f421dcd9de9dcd8ff798149ce4bb427395c26633a5c : setup.py
58e82474595370b0f04e5ad6ac91ad73e7e5480ce0492dca4264e010b88f2c65 : update_package.py