tis-prometheus-windows-exporter icon

windows_exporter

Paquet d’installation silencieuse pour windows_exporter

0.30.7-1

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

package           : tis-prometheus-windows-exporter
version           : 0.30.7-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      : dbf96fc5-bc41-4485-93e4-95dfbee575e0
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-05-22T15: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         : EFE3NgNB7OrFb0aO9D+F67ZdCox2emdzdxT/19T96dbe/pu/jK7d+mhKPuzXXD6MnFLopWIVWKxE+dI5N7disysBYteJdxe26sWCEdxdEmKcWHJLmr+NcCGJ7BnvoYgTcL7csVgF7iBMBa/j7ZxoPlhogNua62ubV8vOlWANgFrVWTt/Y1hLVY7LKgYZ2BIXcnIoV33CJ43MfXObLy8Di9AK2eTzBFefua0CAWcLkcXU1HwaNOydmmXIsqezyxJGeq2ADK5RAZVPc3knybsCOE+WkScF0A6PyrZqY8u7HLWVtalCdRSRmmPLm2oEQi6GOPwzu8cWAWW4Ud+GGDkjpg==

# -*- 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
5d39e001875d4b9ab4abe43b2c96ca693a740bfb50a38551575f663f4f4a02e7 : WAPT/control
e07979df2f256448ae96465a7119d1089561f61d51c84d31f36f33299c2fbc3b : WAPT/icon.png
f0f349f5477e95a2eb676f2f1ffd8f1d8e47a765ede49ba173f5a0cabdca26f9 : luti.json
8747e3dbb626f28d7ed1cfeea1b78f3afbb0640b76b7ea0225a26156ec31b661 : setup.py
b1693e3f4e111d5884b2b9361866280a0f89a9ea84b4eff93d96e7c275a0d052 : update_package.py
b7adcf630ff8a035921ffc100138c4aa0d8632f789e7a16f91e2912a96784bad : windows_exporter-0.30.7-amd64.msi