tis-prometheus-windows-exporter icon

windows_exporter

Paquet d’installation silencieuse pour windows_exporter

0.30.6-1

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

package           : tis-prometheus-windows-exporter
version           : 0.30.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          : 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      : 7a88732d-1e7a-4ca5-a899-e78c804ccae8
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-04-11T14:00: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         : XWXcHMJyPcVKUS8LIw/2p7+s3Jqkcsz4FxhWOL0FZn64LEDL69JMHeSM2uFmDiHjy8J3qzvxVHE4EV8ZPf0RVZnYmGCBGfxEtF5z0STP/ymKx/bRXu5I6UXnBr+Y+f4NI9VwSzA56/BOhogsLmbbavcE+SoBPyhhh0gpVXYWQGz4a4gwChD03CuNZe/TB3YOy+734pYP4qlxnLISig/4KOqUcMRU3mJ0fZ+486KJhaNSUZ0OTUi8xa99Q1jgjnuP+fvYtGHKAr8WXHigCg2UpbMFUVLfpC5J556NaA/0Chj/6gk783YaAqaAnQ/eQUbxX35XZYuyx4pSSOGcbC81cg==

# -*- 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
c9f2109e5270848f52b6d47e34a4d9eef8cf77463c32fee86b9478314b53e554 : WAPT/control
e07979df2f256448ae96465a7119d1089561f61d51c84d31f36f33299c2fbc3b : WAPT/icon.png
970e4a3df2b0767eeedf05b6e6361becd44bd3af36da7bf0259b79f2640a0c1f : luti.json
8747e3dbb626f28d7ed1cfeea1b78f3afbb0640b76b7ea0225a26156ec31b661 : setup.py
b1693e3f4e111d5884b2b9361866280a0f89a9ea84b4eff93d96e7c275a0d052 : update_package.py
6792cdcc99e72d0b16f6b16358c49f1f00b7dd669323bc74eddbabc8d761d21f : windows_exporter-0.30.6-amd64.msi