tis-prometheus-windows-exporter icon

windows_exporter

Paquet d’installation silencieuse pour windows_exporter

0.31.6-1
System and network
System and network

Les paquets PREPROD sont des paquets construits via LUTI. Ils restent généralement 5 jours en PREPROD, après quoi un deuxième scan VirusTotal est effectué pour vérifier que le status n'a pas changé.
Si le paquet réussit ce dernier contrôle, il est promu en PROD et publié sur le store.

  • package: tis-prometheus-windows-exporter
  • name: windows_exporter
  • version: 0.31.6-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: 11.10 Mo
  • homepage : https://github.com/prometheus-community/windows_exporter

package           : tis-prometheus-windows-exporter
version           : 0.31.6-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          : PREPROD
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      : 697eb88e-b0a2-4e05-ab37-141b97516c2c
valid_from        : 
valid_until       : 
forced_install_on : 
changelog         : 
min_os_version    : 10.0
max_os_version    : 
icon_sha256sum    : e07979df2f256448ae96465a7119d1089561f61d51c84d31f36f33299c2fbc3b
signer            : test
signer_fingerprint: b82fc8ef4a4475c0f69ac168176c2bfc58f572eb716c4eadd65e4785c155dd8e
signature_date    : 2026-04-01T14:57:48.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         : JEsKDkastTyiph+ySpn8ZmMX4lSDboXqO8lRvy+/yMmy1tg8QCzCKnVAs/J1yBLcyf0Kn1l8QOMZuZd8WwbbICEPbjpCtr8zvzXCa22RdPSVDzwo2OJdd2m2aL776tQr/BECSDOgJuHqJ8HtMi4mijFZW+AkINf4c//S4Y+ouj4xh9Lx5gTupeIwpQijs0XA+iJq1dUVe3bQEPVshi8uYjF3B1NcHMxz1OG5uXuybS8tzUoCbCMwSA1f7qRRPqMRictnTH5j66ebzuHX9Ab8dxxrFmk0Zg2nFSEtmLopEC8TP9J2Nj5XNm7fMjOlgq0CUgvvZ88+VvB4XWJAgS0vNQ==

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

01ca7fe94636e5a08fcb73849d3b5df25d51e2c82f4dd1a08f01798b25899819 : WAPT/certificate.crt
f043ced7200751968899a716874cc55f36971bd7bf67d2a7f97af081cf463c2e : WAPT/control
e07979df2f256448ae96465a7119d1089561f61d51c84d31f36f33299c2fbc3b : WAPT/icon.png
fdddd0158d23f8e5173ba1bff918d0db3c25e441aba8f8a4277b0f01477355cd : luti.json
8747e3dbb626f28d7ed1cfeea1b78f3afbb0640b76b7ea0225a26156ec31b661 : setup.py
b1693e3f4e111d5884b2b9361866280a0f89a9ea84b4eff93d96e7c275a0d052 : update_package.py
767324dc7ea8e6b8b99f610e2fb9f36d029c8f673a94b3d9f5f2c3c579be0b6d : windows_exporter-0.31.6-amd64.msi