tis-grafana icon

GrafanaOSS

Silent install package for GrafanaOSS

12.2.2-1

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

package           : tis-grafana
version           : 12.2.2-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         : debian_based
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      : 68da1276-d3fd-40ca-8c67-1e99f25ec6ad
valid_from        : 
valid_until       : 
forced_install_on : 
changelog         : 
min_os_version    : 
max_os_version    : 
icon_sha256sum    : 4f5c0594b5b2cbdf20cd771c1d289bf4d81d9c556ffdb91af0869e283c5d2587
signer            : Tranquil IT
signer_fingerprint: 8c5127a75392be9cc9afd0dbae1222a673072c308c14d88ab246e23832e8c6bb
signature_date    : 2025-11-24T14:03:12.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         : qXndIg4EtzqGioJvNP2oRi7Tmw6nD8NDlPkwFLbMv+A4LEXvXyzRrWfw+pu/JtGCamKiisTNM1Th1WD6E5EyykEAstgIcChfIAX9P0TcG6EUvIk3ITJYhXNNq/Op4xKDYERccPgtfIwUZrQClvqif9PdZKBlZO056w3tVYzI9koI59MMYa5N41Iqunc9g5Y8giyLtXFn349FKwhF5UvTGnhrbZhMKkMW3rNM8ykUw+M7RWmmqgwPvrJ1w7fAvDdLDwsRyOGz1nnhMcuof3IhdvcENs9RAwiQsrJJeSI9mO5dMosNh0MeHzOa2jVbrYCCDYWm8PdfGHBklSP1PXN2Sw==

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


def install():
    bin_name = glob.glob('grafana_*_linux_amd64.deb')[0]
    install_deb(bin_name)

def uninstall():
    uninstall_apt('grafana')

# -*- 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

38d056ab130f7bf7c481c12636a4e9959de36561d3dfcbe54c6e3571bc0c1dc3 : WAPT/certificate.crt
49bb194c2e07a5e4a28e856b76d5b359516dc98b894d68d463d5941ea8dab94f : WAPT/control
4f5c0594b5b2cbdf20cd771c1d289bf4d81d9c556ffdb91af0869e283c5d2587 : WAPT/icon.png
57cdeec271ee4b588547ec21cc20418da483208f118e5a3bf6aab0395249f44e : grafana_12.2.2_19496034263_linux_amd64.deb
f69bcfa41fad8c5d77d77a1f7fb06c104137b89029a0c738a3bef9c6aae93ce6 : luti.json
a34d4a74df8f7858b178ee19068daadc3d42d3ff6fbe7aa4f7857739ec7b3e2f : setup.py
523ab5661e6c0514d22962ba7c28ba5210e264c59c622e8d3cb7c1740c72cfff : update_package.py