tis-grafana icon

GrafanaOSS

Silent install package for GrafanaOSS

12.3.2-8

Preprod packages are packages built on LUTI. They remain in PREPROD usually for 5 days, after which a second VirusTotal scan is performed to verify that the status has not changed.
If the package passes this last check, it is promoted to PROD and published on the store.

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

package           : tis-grafana
version           : 12.3.2-8
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          : PREPROD
locale            : 
target_os         : windows
min_wapt_version  : 
sources           : 
installed_size    : 
impacted_process  : grafana
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      : f5cb06fa-c4d1-46a4-a5a8-593516e7452e
valid_from        : 
valid_until       : 
forced_install_on : 
changelog         : 
min_os_version    : 10.0
max_os_version    : 
icon_sha256sum    : 4f5c0594b5b2cbdf20cd771c1d289bf4d81d9c556ffdb91af0869e283c5d2587
signer            : test
signer_fingerprint: b82fc8ef4a4475c0f69ac168176c2bfc58f572eb716c4eadd65e4785c155dd8e
signature_date    : 2026-02-02T11:33:57.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         : ljy6Qrd7KKzCJVqQnEeH/L9HgDQddNDhkD6rgLIA2JN9Q6c+Ui+0KjxNLW95EINAEH+xMIN3YeCxxwhsChPyRJaEr8oW2kPhmoq/fja77hlGtDO3TsISoqJ7a0pTa/esj14QCbYpApXcsTOC7hXx/M7RcO9KLu6q4cGakZ/fC79KtTavKQnaz4zeAwmy1ga6fbd6IqdDNxvv34zpzZYcXXehl1mZPExVwYiH2Pwr9Gjj0sNBV1ADB0LIIiDEzLC60wymH2u/lP4p1OqdgBRB351HWyq+1fDq1Ha/8VvFojWNMu3n9h94zSzAKmUjY16TWoHpaKcYdWNMLYA9CXb1Dg==

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


def install():
    bin_name = glob.glob("grafana*amd64.msi")[0]

    # Uninstalling the software
    for to_uninstall in installed_softwares("Grafana"):
        if Version(to_uninstall["version"]) < Version(control.get_software_version()) or force:
            print("Removing: %s (%s)" % (to_uninstall["name"], to_uninstall["version"]))
            killalltasks(ensure_list(control.impacted_process))
            run(uninstall_cmd(to_uninstall["key"]))
            wait_uninstallkey_absent(to_uninstall["key"])

    install_msi_if_needed(
        bin_name,
        name="GrafanaOSS",
        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()
    if not proxies:
        proxies = get_proxies_from_wapt_console()
    app_name = control.name

    url_base = "https://grafana.com/api/grafana/versions/stable"
    data = wgets(url_base, proxies=proxies, as_json=True)
    version = data["version"]

    update_dict = {
        'windows-x64': 'windows_amd64.msi',
        'debian_based-x64': 'linux_amd64.deb',
        'debian_based-arm64': 'linux_arm64.deb',
        'darwin-x64': 'darwin_amd64.tar.gz',
        'darwin-arm': 'darwin_arm64.tar.gz',
    }

    os_type = control.target_os + "-" + ensure_list(control.architecture)[0]
    for package in data['packages']:
        if package['url'].endswith(update_dict[os_type]):
            download_url = package['url']
            latest_bin = download_url.rsplit('/', 1)[-1]
            latest_bin_extension = latest_bin.rsplit('.', 1)[-1]

    # Downloading latest binaries
    print(f"Latest {app_name} version is: {version}")
    print(f"Download URL is: {download_url}")
    if not isfile(latest_bin):
        print(f"Downloading: {latest_bin}")
        wget(download_url, latest_bin, proxies=proxies)
    else:
        print(f"Binary is present: {latest_bin}")

    # Changing version of the package
    if Version(version) > Version(control.get_software_version()):
        print(f"Software version updated (from: {control.get_software_version()} to: {Version(version)})")
        package_updated = True
    else:
        print(f"Software version up-to-date ({Version(version)})")

    for f in glob.glob(f'*.{latest_bin_extension}'):
        if f != latest_bin:
            remove_file(f)

    control.set_software_version(version)
    control.save_control_to_wapt()

    return package_updated

01ca7fe94636e5a08fcb73849d3b5df25d51e2c82f4dd1a08f01798b25899819 : WAPT/certificate.crt
e921e289eb82d00dbee985fc725c119ad96b47bbaa9a57ddc89d4ba441aa5f5a : WAPT/control
4f5c0594b5b2cbdf20cd771c1d289bf4d81d9c556ffdb91af0869e283c5d2587 : WAPT/icon.png
1cac4af74ad136594076cb4671025d0f7e26bf7fe790b522e72189953f4ffd21 : grafana_12.3.2_21390657659_windows_amd64.msi
61199123c9874232a9fb720d588433268d91d55f84f972583116d526794ff321 : luti.json
dfe632f847ec632a9384003a77ab3dff4a28efff6db36240229a1cf8a89f6fc7 : setup.py
97c00ec056e604b430f31c4a0c7332d21126350919b2126312be19ee3d36707a : update_package.py