tis-prometheus-windows-exporter icon

windows_exporter

Paquet d’installation silencieuse pour windows_exporter

0.30.5-1

  • package: tis-prometheus-windows-exporter
  • name: windows_exporter
  • version: 0.30.5-1
  • categories: System and network
  • maintainer: WAPT Team,Tranquil IT,Amel FRADJ,
  • licence: opensource_free,wapt_private ,MIT license
  • target_os: windows
  • architecture: x64
  • signature_date:
  • size: 12.17 Mo
  • homepage : https://github.com/prometheus-community/windows_exporter

package           : tis-prometheus-windows-exporter
version           : 0.30.5-1
architecture      : x64
section           : base
priority          : optional
name              : windows_exporter
categories        : System and network
maintainer        : WAPT Team,Tranquil IT,Amel FRADJ,
description       : Prometheus exporter for Windows machines
depends           : 
conflicts         : 
maturity          : PROD
locale            : 
target_os         : windows
min_wapt_version  : 2.3
sources           : 
installed_size    : 
impacted_process  : 
description_fr    : Exportateur Prometheus pour machines Windows
description_pl    : Eksporter Prometheus dla komputerów z systemem Windows
description_de    : Prometheus-Exporter für Windows-Rechner
description_es    : Exportador Prometheus para máquinas Windows
description_pt    : Exportador do Prometheus para máquinas Windows
description_it    : Esportatore Prometheus per macchine Windows
description_nl    : Prometheus exporter voor Windows-machines
description_ru    : Экспортер Prometheus для машин Windows
audit_schedule    : 
editor            : 
keywords          : 
licence           : opensource_free,wapt_private ,MIT license
homepage          : https://github.com/prometheus-community/windows_exporter
package_uuid      : d7ba955c-79f3-494e-8f3c-f19dc560b273
valid_from        : 
valid_until       : 
forced_install_on : 
changelog         : 
min_os_version    : 10.0
max_os_version    : 
icon_sha256sum    : e07979df2f256448ae96465a7119d1089561f61d51c84d31f36f33299c2fbc3b
signer            : Tranquil IT
signer_fingerprint: 8c5127a75392be9cc9afd0dbae1222a673072c308c14d88ab246e23832e8c6bb
signature_date    : 2025-03-20T10:00:14.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         : jBuUlo5+jWg0rB/BlWAyJL47h3ldgpLmSCJWfSPSuHHnlStUwjXp5rMQAL27YUeIaOzd4INUr7Uzqcnh7SV8mA2ioyMVM3b7sN2cgqbaUXAOT2Q7/tObxD0dNxfNgtkqRWJx627vDF39j8Vbun+eiiW1tcsSdNGjM24LqYSAdQtwZWnnnCJuTbcwqiOb2IdO5mG2BxyiMt/ggJgpFLRB3mN2jMnTHB9uR1Ht8A7UeSHoEmbUdAnKUHTHJstgfiV9G4PL6a3qB+Awsnxbz/PxJ7mkY3h/ZfTq2ssMVeN5Mq1k8OEwUG2AT/l/DG8bBHhyFfLQvH9+CwPYUup2QgfCaQ==

# -*- 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():
    # Declaring local variables
    bin_name = glob.glob("windows_exporter-*-amd64.msi")[0]
    # Uninstalling older versions of the software
    for to_uninstall in installed_softwares(name="windows_exporter"):
        if Version(to_uninstall["version"]) < Version(control.get_software_version()):
            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"])
            if isdir(to_uninstall["install_location"]):
                remove_tree(to_uninstall["install_location"])

    # Installing the software

    install_msi_if_needed(bin_name)

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

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


def update_package():
    result = False
    proxies = get_proxies()

    if not proxies:
        proxies = get_proxies_from_wapt_console()
    
    git_repo = "prometheus-community/windows_exporter"
    url_api = "https://api.github.com/repos/%s/releases/latest" % git_repo   
    # Getting latest version information from official sources
    print("API used is: %s" % url_api)
    json_load = json.loads(wgets(url_api, proxies=proxies))

    for download in json_load["assets"]:
        if download["browser_download_url"].endswith('-amd64.msi') :
            url_dl = download["browser_download_url"]
            version = json_load["tag_name"].replace("v","")
            filename = download["name"]
            break

    if not isfile(filename):
        package_updated = True
        wget(url_dl,filename,proxies=proxies)

    #nettoyer les fichiers temporaires
    for f in glob.glob('*.msi'):
        if f != filename:
            remove_file(f)

    version =get_version_from_binary(filename)
    control.set_software_version(version)
    control.save_control_to_wapt()

38d056ab130f7bf7c481c12636a4e9959de36561d3dfcbe54c6e3571bc0c1dc3 : WAPT/certificate.crt
7ed460972804e923f4e58edc3a9e2e9237c928c923613b395c9c5c459aba68d4 : WAPT/control
e07979df2f256448ae96465a7119d1089561f61d51c84d31f36f33299c2fbc3b : WAPT/icon.png
1f90aeb74d3a04d5f84ec4e4bc5958ff583a1285e81f36e632374a0143f64918 : luti.json
8747e3dbb626f28d7ed1cfeea1b78f3afbb0640b76b7ea0225a26156ec31b661 : setup.py
b1693e3f4e111d5884b2b9361866280a0f89a9ea84b4eff93d96e7c275a0d052 : update_package.py
59483778da38cb5d74da4b8b75cf4e3f8b3ec1f833819ab37b290d7b8a6925f7 : windows_exporter-0.30.5-amd64.msi