commit fa50a4425baa095f2b59fe101f0bfd35631febc9 Author: Adrian Schröter Date: Mon Apr 14 11:21:27 2025 +0200 Sync from SUSE:ALP:Source:Standard:1.0 golang-github-prometheus-node_exporter revision 6090a5f8ebcdf54b15d6174ad0b4a992 diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..fecc750 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/_service b/_service new file mode 100644 index 0000000..b608370 --- /dev/null +++ b/_service @@ -0,0 +1,22 @@ + + + https://github.com/prometheus/node_exporter.git + git + .git + @PARENT_TAG@ + v1.9.0 + v(.*) + golang-github-prometheus-node_exporter + + + + + + + + + + *.tar + gz + + diff --git a/golang-github-prometheus-node_exporter-1.9.0.obscpio b/golang-github-prometheus-node_exporter-1.9.0.obscpio new file mode 100644 index 0000000..4d94f9e --- /dev/null +++ b/golang-github-prometheus-node_exporter-1.9.0.obscpio @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:bfdf6d6431611d985c9e3b059deb8461ba1cacb74ef1512a4e2aff1a09dbe9c8 +size 2250764 diff --git a/golang-github-prometheus-node_exporter.changes b/golang-github-prometheus-node_exporter.changes new file mode 100644 index 0000000..97dcc11 --- /dev/null +++ b/golang-github-prometheus-node_exporter.changes @@ -0,0 +1,598 @@ +------------------------------------------------------------------- +Mon Feb 17 08:35:13 UTC 2025 - Johannes Kastl + +- refactor `_service` file and spec to use a nice tarball name +- update to 1.9.0 (jsc#PED-12485): + * [CHANGE] meminfo: Convert linux implementation to use procfs + lib #3049 + * [CHANGE] Update logging to use Go log/slog #3097 + * [FEATURE] filesystem: Add node_filesystem_mount_info metric + #2970 + * [FEATURE] btrfs: Add metrics for commit statistics #3010 + * [FEATURE] interrupts: Add collector include/exclude filtering + #3028 + * [FEATURE] interrupts: Add "exclude zeros" filtering #3028 + * [FEATURE] slabinfo: Add filters for slab name. #3041 + * [FEATURE] pressure: add IRQ PSI metrics #3048 + * [FEATURE] hwmon: Add include and exclude filter for sensors + #3072 + * [FEATURE] filesystem: Add NetBSD support #3082 + * [FEATURE] netdev: Add ifAlias label #3087 + * [FEATURE] hwmon: Add Support for GPU Clock Frequencies #3093 + * [FEATURE] Add exclude[] URL parameter #3116 + * [FEATURE] Add AIX support #3136 + * [FEATURE] filesystem: Add fs-types/mount-points include flags + #3171 + * [FEATURE] netstat: Add collector for tcp packet counters for + FreeBSD. #3177 + * [ENHANCEMENT] ethtool: Add logging for filtering flags #2979 + * [ENHANCEMENT] netstat: Add TCPRcvQDrop to default metrics #3021 + * [ENHANCEMENT] diskstats: Add block device rotational #3022 + * [ENHANCEMENT] cpu: Support CPU online status #3032 + * [ENHANCEMENT] arp: optimize interface name resolution #3133 + * [ENHANCEMENT] textfile: Allow specifiying multiple directory + globs #3135 + * [ENHANCEMENT] filesystem: Add reporting of purgeable space on + MacOS #3206 + * [ENHANCEMENT] ethtool: Skip full scan of NetClass directories + #3239 + * [BUGFIX] zfs: Prevent procfs integer underflow #2961 + * [BUGFIX] pressure: Fix collection on systems that do not expose + a full CPU stat #3054 + * [BUGFIX] cpu: Fix FreeBSD 32-bit host support and plug memory + leak #3083 + * [BUGFIX] hwmon: Add safety check to hwmon read #3134 + * [BUGFIX] zfs: Allow space in dataset name #3186 + +------------------------------------------------------------------- +Mon Jan 20 15:59:34 UTC 2025 - Witek Bedyk + +- Packaging improvements: + * Use systemd-sysusers to configure the user in a dedicated + 'system-user-prometheus' subpackage (bsc#1235516) + * Remove systemd and shadow hard requirements + * Require Go 1.22 or newer for building + * Drop BuildRequires: golang-packaging + * Drop mod=vendor + * Run `node_exporter --version` in the %check phase + +------------------------------------------------------------------- +Sun Jul 14 15:22:00 UTC 2024 - Johannes Kastl + +- update to 1.8.2: + * [BUGFIX] Fix CPU pressure metric collection #3054 + +------------------------------------------------------------------- +Tue May 21 20:07:43 UTC 2024 - Johannes Kastl + +- update to 1.8.1: + * [BUGFIX] Fix CPU seconds on Solaris #2963 + * [BUGFIX] Sign Darwin/MacOS binaries #3008 + * [BUGFIX] Fix pressure collector nil reference #3016 + +------------------------------------------------------------------- +Wed Apr 24 16:56:23 UTC 2024 - Johannes Kastl + +- update to 1.8.0: + * [CHANGE] exec_bsd: Fix labels for vm.stats.sys.v_syscall sysctl + #2895 + * [CHANGE] diskstats: Ignore zram devices on linux systems #2898 + * [CHANGE] textfile: Avoid inconsistent help-texts #2962 + * [CHANGE] os: Removed caching of modtime/filename of os-release + file #2987 + * [FEATURE] xfrm: Add new collector #2866 + * [FEATURE] watchdog: Add new collector #2880 + * [ENHANCEMENT] cpu_vulnerabilities: Add mitigation information + label #2806 + * [ENHANCEMENT] nfsd: Handle new wdeleg_getattr attribute #2810 + * [ENHANCEMENT] netstat: Add TCPOFOQueue to default netstat + metrics #2867 + * [ENHANCEMENT] filesystem: surface device errors #2923 + * [ENHANCEMENT] os: Add support end parsing #2982 + * [ENHANCEMENT] zfs: Log mib when sysctl read fails on FreeBSD + #2975 + * [ENHANCEMENT] fibre_channel: update procfs to take into account + optional attributes #2933 + * [BUGFIX] cpu: Fix debug log in cpu collector #2857 + * [BUGFIX] hwmon: Fix hwmon nil ptr #2873 + * [BUGFIX] hwmon: Fix hwmon error capture #2915 + * [BUGFIX] zfs: Revert "Add ZFS freebsd per dataset stats #2925 + * [BUGFIX] ethtool: Sanitize ethtool metric name keys #2940 + * [BUGFIX] fix: data race of NetClassCollector metrics + initialization #2995 +- drop patch fix_arp_collector.patch (see + https://github.com/prometheus/node_exporter/blob/master/go.mod#L17) +- drop patch add_device_error_label.patch + https://github.com/prometheus/node_exporter/pull/2923 + +------------------------------------------------------------------- +Fri Feb 23 16:04:14 UTC 2024 - Witek Bedyk + +- Add add_device_error_label.patch + Patch adds `device_error` label for filesystem metrics. + +------------------------------------------------------------------- +Mon Feb 12 15:01:17 UTC 2024 - Witek Bedyk + +- Add fix_arp_collector.patch + Patch updates rtnetlink library to fix errors during ARP metrics + collection. + +------------------------------------------------------------------- +Mon Nov 13 10:37:40 UTC 2023 - Johannes Kastl + +- update to 1.7.0 (jsc#PED-7893, jsc#PED-7928): + * [FEATURE] Add ZFS freebsd per dataset stats #2753 + * [FEATURE] Add cpu vulnerabilities reporting from sysfs #2721 + * [ENHANCEMENT] Parallelize stat calls in Linux filesystem + collector #1772 + * [ENHANCEMENT] Add missing linkspeeds to ethtool collector #2711 + * [ENHANCEMENT] Add CPU MHz as the value for node_cpu_info metric + #2778 + * [ENHANCEMENT] Improve qdisc collector performance #2779 + * [ENHANCEMENT] Add include and exclude filter for hwmon + collector #2699 + * [ENHANCEMENT] Optionally fetch ARP stats via rtnetlink instead + of procfs #2777 + * [BUFFIX] Fix ZFS arcstats on FreeBSD 14.0+ 2754 + * [BUGFIX] Fallback to 32-bit stats in netdev #2757 + * [BUGFIX] Close btrfs.FS handle after use #2780 + * [BUGFIX] Move RO status before error return #2807 + * [BUFFIX] Fix promhttp_metric_handler_errors_total being always + active #2808 + * [BUGFIX] Fix nfsd v4 index miss #2824 +- update to 1.6.1: + (no source code changes in this release) +- BuildRequire go1.20 + +------------------------------------------------------------------- +Sat May 27 19:37:51 UTC 2023 - Johannes Kastl + +- update to 1.6.0: + * [CHANGE] Fix cpustat when some cpus are offline #2318 + * [CHANGE] Remove metrics of offline CPUs in CPU collector #2605 + * [CHANGE] Deprecate ntp collector #2603 + * [CHANGE] Remove bcache `cache_readaheads_totals` metrics #2583 + * [CHANGE] Deprecate supervisord collector #2685 + * [FEATURE] Enable uname collector on NetBSD #2559 + * [FEATURE] NetBSD support for the meminfo collector #2570 + * [FEATURE] NetBSD support for CPU collector #2626 + * [FEATURE] Add FreeBSD collector for netisr subsystem #2668 + * [FEATURE] Add softirqs collector #2669 + * [ENHANCEMENT] Add suspended as a `node_zfs_zpool_state` #2449 + * [ENHANCEMENT] Add administrative state of Linux network + interfaces #2515 + * [ENHANCEMENT] Log current value of GOMAXPROCS #2537 + * [ENHANCEMENT] Add profiler options for perf collector #2542 + * [ENHANCEMENT] Allow root path as metrics path #2590 + * [ENHANCEMENT] Add cpu frequency governor metrics #2569 + * [ENHANCEMENT] Add new landing page #2622 + * [ENHANCEMENT] Reduce privileges needed for btrfs device stats + #2634 + * [ENHANCEMENT] Add ZFS `memory_available_bytes` #2687 + * [ENHANCEMENT] Use `SCSI_IDENT_SERIAL` as serial in diskstats + #2612 + * [ENHANCEMENT] Read missing from netlink netclass attributes + from sysfs #2669 + * [BUGFIX] perf: fixes for automatically detecting the correct + tracefs mountpoints #2553 + * [BUGFIX] Fix `thermal_zone` collector noise @2554 + * [BUGFIX] Fix a problem fetching the user wire count on FreeBSD + 2584 + * [BUGFIX] interrupts: Fix fields on linux aarch64 #2631 + * [BUGFIX] Remove metrics of offline CPUs in CPU collector #2605 + * [BUGFIX] Fix OpenBSD filesystem collector string parsing #2637 + * [BUGFIX] Fix bad reporting of `node_cpu_seconds_total` in + OpenBSD #2663 + +------------------------------------------------------------------- +Wed Mar 22 10:14:54 UTC 2023 - Johannes Kastl + +- change go_modules archive in _service to use obscpio file + +------------------------------------------------------------------- +Tue Mar 14 16:37:01 UTC 2023 - Witek Bedyk + +- Remove node_exporter-1.5.0.tar.gz +- Execute tar and recompress service modules at buildtime + +------------------------------------------------------------------- +Tue Jan 10 14:12:36 UTC 2023 - Johannes Kastl + +- modify _service file and set all services to disabled +- remove patch 0001-Update-prometheus-client-to-1.11.1.patch +- update to 1.5.0 (jsc#PED-3578): + * NOTE: This changes the Go runtime "GOMAXPROCS" to 1. This is done to limit the + concurrency of the exporter to 1 CPU thread at a time in order to avoid a + race condition problem in the Linux kernel (#2500) and parallel IO issues + on nodes with high numbers of CPUs/CPU threads (#1880). + * [CHANGE] Default GOMAXPROCS to 1 #2530 + * [FEATURE] Add multiple listeners and systemd socket listener activation #2393 + * [ENHANCEMENT] Add RTNL version of netclass collector #2492, #2528 + * [BUGFIX] Fix hwmon label sanitizer #2504 + * [BUGFIX] Use native endianness when encoding InetDiagMsg #2508 + * [BUGFIX] Fix btrfs device stats always being zero #2516 + +------------------------------------------------------------------- +Tue Jan 10 14:08:49 UTC 2023 - Johannes Kastl + +- update to 1.4.1: + * [BUGFIX] Fix diskstats exclude flags #2487 + * [BUGFIX] Security: Update go/x/crypto and go/x/net + (CVE-2022-27191, CVE-2022-27664) + * [BUGFIX] Security: Update exporter-toolkit + (CVE-2022-46146, bsc#1208064) + +------------------------------------------------------------------- +Tue Jan 10 14:06:31 UTC 2023 - Johannes Kastl + +- update to 1.4.0: + * [CHANGE] Merge metrics descriptions in textfile collector #2475 + * [FEATURE] [node-mixin] Add darwin dashboard to mixin #2351 + * [FEATURE] Add "isolated" metric on cpu collector on linux #2251 + * [FEATURE] Add cgroup summary collector #2408 + * [FEATURE] Add selinux collector #2205 + * [FEATURE] Add slab info collector #2376 + * [FEATURE] Add sysctl collector #2425 + * [FEATURE] Also track the CPU Spin time for OpenBSD systems #1971 + * [FEATURE] Add support for MacOS version #2471 + * [ENHANCEMENT] [node-mixin] Add missing selectors #2426 + * [ENHANCEMENT] [node-mixin] Change current datasource to grafana's default #2281 + * [ENHANCEMENT] [node-mixin] Change disk graph to disk table #2364 + * [ENHANCEMENT] [node-mixin] Change io time units to %util #2375 + * [ENHANCEMENT] Ad user_wired_bytes and laundry_bytes on *bsd #2266 + * [ENHANCEMENT] Add additional vm_stat memory metrics for darwin #2240 + * [ENHANCEMENT] Add device filter flags to arp collector #2254 + * [ENHANCEMENT] Add diskstats include and exclude device flags #2417 + * [ENHANCEMENT] Add node_softirqs_total metric #2221 + * [ENHANCEMENT] Add rapl zone name label option #2401 + * [ENHANCEMENT] Add slabinfo collector #1799 + * [ENHANCEMENT] Allow user to select port on NTP server to query #2270 + * [ENHANCEMENT] collector/diskstats: Add labels and metrics from udev #2404 + * [ENHANCEMENT] Enable builds against older macOS SDK #2327 + * [ENHANCEMENT] qdisk-linux: Add exclude and include flags for interface name #2432 + * [ENHANCEMENT] systemd: Expose systemd minor version #2282 + * [ENHANCEMENT] Use netlink for tcpstat collector #2322 + * [ENHANCEMENT] Use netlink to get netdev stats #2074 + * [ENHANCEMENT] Add additional perf counters for stalled frontend/backend cycles #2191 + * [ENHANCEMENT] Add btrfs device error stats #2193 + * [BUGFIX] [node-mixin] Fix fsSpaceAvailableCriticalThreshold and fsSpaceAvailableWarning #2352 + * [BUGFIX] Fix concurrency issue in ethtool collector #2289 + * [BUGFIX] Fix concurrency issue in netdev collector #2267 + * [BUGFIX] Fix diskstat reads and write metrics for disks with different sector sizes #2311 + * [BUGFIX] Fix iostat on macos broken by deprecation warning #2292 + * [BUGFIX] Fix NodeFileDescriptorLimit alerts #2340 + * [BUGFIX] Sanitize rapl zone names #2299 + * [BUGFIX] Add file descriptor close safely in test #2447 + * [BUGFIX] Fix race condition in os_release.go #2454 + * [BUGFIX] Skip ZFS IO metrics if their paths are missing #2451 + +------------------------------------------------------------------- +Tue Jan 10 14:04:43 UTC 2023 - Johannes Kastl + +- BuildRequire go1.18 OR HIGHER (previously this was fixed to 1.14) + +------------------------------------------------------------------- +Sat Jun 25 19:04:04 UTC 2022 - Michael Ströder + +- Update to 1.3.1 + * [BUGFIX] Handle nil CPU thermal power status on M1 #2218 + * [BUGFIX] bsd: Ignore filesystems flagged as MNT_IGNORE. #2227 + * [BUGFIX] Sanitize UTF-8 in dmi collector #2229 + +------------------------------------------------------------------- +Tue May 10 16:01:08 UTC 2022 - Jordi Massaguer + +- Exclude s390 arch. + +------------------------------------------------------------------- +Wed Apr 13 08:17:29 UTC 2022 - Tatjana Dehler + +- Update spec file in order to make --version work (bsc#1196652) + +------------------------------------------------------------------- +Wed Mar 9 09:35:46 UTC 2022 - Witek Bedyk + +- Update vendor tarball with prometheus/client_golang 1.11.1 + (bsc#1196338, jsc#SLE-24238, jsc#SLE-24239, jsc#SUMA-114, + CVE-2022-21698) + + Added 0001-Update-prometheus-client-to-1.11.1.patch + +------------------------------------------------------------------- +Thu Nov 18 21:06:01 UTC 2021 - Michael Ströder + +- Update to 1.3.0 + * [CHANGE] Add path label to rapl collector #2146 + * [CHANGE] Exclude filesystems under /run/credentials #2157 + * [CHANGE] Add TCPTimeouts to netstat default filter #2189 + * [FEATURE] Add lnstat collector for metrics from /proc/net/stat/ #1771 + * [FEATURE] Add darwin powersupply collector #1777 + * [FEATURE] Add support for monitoring GPUs on Linux #1998 + * [FEATURE] Add Darwin thermal collector #2032 + * [FEATURE] Add os release collector #2094 + * [FEATURE] Add netdev.address-info collector #2105 + * [FEATURE] Add clocksource metrics to time collector #2197 + * [ENHANCEMENT] Support glob textfile collector directories #1985 + * [ENHANCEMENT] ethtool: Expose node_ethtool_info metric #2080 + * [ENHANCEMENT] Use include/exclude flags for ethtool filtering #2165 + * [ENHANCEMENT] Add flag to disable guest CPU metrics #2123 + * [ENHANCEMENT] Add DMI collector #2131 + * [ENHANCEMENT] Add threads metrics to processes collector #2164 + * [ENHANCMMENT] Reduce timer GC delays in the Linux filesystem collector #2169 + * [ENHANCMMENT] Add TCPTimeouts to netstat default filter #2189 + * [ENHANCMMENT] Use SysctlTimeval for boottime collector on BSD #2208 + * [BUGFIX] ethtool: Sanitize metric names #2093 + * [BUGFIX] Fix ethtool collector for multiple interfaces #2126 + * [BUGFIX] Fix possible panic on macOS #2133 + * [BUGFIX] Collect flag_info and bug_info only for one core #2156 + * [BUGFIX] Prevent duplicate ethtool metric names #2187 + +------------------------------------------------------------------- +Fri Oct 1 11:18:31 UTC 2021 - Dominik Gedon + +- Update to 1.2.2 + * Bug fixes + Fix processes collector long int parsing #2112 + +- Update to 1.2.1 + * Removed + Remove obsolete capture permission denied error patch + capture-permission-denied-error-energy_uj.patch: Already included upstream + * Bug fixes + Fix zoneinfo parsing prometheus/procfs#386 + Fix nvme collector log noise #2091 + Fix rapl collector log noise #2092 + +- Update to 1.2.0 + * Changes + Rename filesystem collector flags to match other collectors #2012 + Make node_exporter print usage to STDOUT #203 + * Features + Add conntrack statistics metrics #1155 + Add ethtool stats collector #1832 + Add flag to ignore network speed if it is unknown #1989 + Add tapestats collector for Linux #2044 + Add nvme collector #2062 + * Enhancements + Add ErrorLog plumbing to promhttp #1887 + Add more Infiniband counters #2019 + netclass: retrieve interface names and filter before parsing #2033 + Add time zone offset metric #2060 + * Bug fixes + Handle errors from disabled PSI subsystem #1983 + Fix panic when using backwards compatible flags #2000 + Fix wrong value for OpenBSD memory buffer cache #2015 + Only initiate collectors once #2048 + Handle small backwards jumps in CPU idle #2067 + +------------------------------------------------------------------- +Thu Sep 23 09:43:19 UTC 2021 - Patrick Seidensal + +- Apply patch to capture permission denied error for "energy_uj" file (bsc#1190535) + * Adds patch capture-permission-denied-error-energy_uj.patch + from https://github.com/prometheus/node_exporter/pull/2092 + +------------------------------------------------------------------- +Tue Mar 9 14:02:29 UTC 2021 - Witek Bedyk + +- Update to 1.1.2 + * Bug fixes + + Handle errors from disabled PSI subsystem #1983 + + Sanitize strings from /sys/class/power_supply #1984 + + Silence missing netclass errors #1986 + +------------------------------------------------------------------- +Fri Feb 26 14:51:28 UTC 2021 - Witek Bedyk + +- Trim old specfile constructs + +------------------------------------------------------------------- +Thu Feb 25 12:50:00 UTC 2021 - Witek Bedyk + +- Migrate to obs_scm +- Migrate to go_modules + +- Update to 1.1.1 + * Bug fixes + + Fix ineffassign issue #1957 + + Fix some noisy log lines #1962 + +- Update to 1.1.0 + * Changes + + Improve filter flag names #1743 + + Add btrfs and powersupplyclass to list of exporters enabled by default #1897 + * Features + + Add fibre channel collector #1786 + + Expose cpu bugs and flags as info metrics. #1788 + + Add network_route collector #1811 + + Add zoneinfo collector #1922 + * Enhancements + + Add more InfiniBand counters #1694 + + Add flag to aggr ipvs metrics to avoid high cardinality metrics #1709 + + Adding backlog/current queue length to qdisc collector #1732 + + Include TCP OutRsts in netstat metrics #1733 + + Add pool size to entropy collector #1753 + + Remove CGO dependencies for OpenBSD amd64 #1774 + + bcache: add writeback_rate_debug stats #1658 + + Add check state for mdadm arrays via node_md_state metric #1810 + + Expose XFS inode statistics #1870 + + Expose zfs zpool state #1878 + + Added an ability to pass collector.supervisord.url via SUPERVISORD_URL environment variable #1947 + * Bug fixes + + filesystem_freebsd: Fix label values #1728 + + Fix various procfs parsing errors #1735 + + Handle no data from powersupplyclass #1747 + + udp_queues_linux.go: change upd to udp in two error strings #1769 + + Fix node_scrape_collector_success behaviour #1816 + + Fix NodeRAIDDegraded to not use a string rule expressions #1827 + + Fix node_md_disks state label from fail to failed #1862 + + Handle EPERM for syscall in timex collector #1938 + + bcache: fix typo in a metric name #1943 + + Fix XFS read/write stats (https://github.com/prometheus/procfs/pull/343) + +------------------------------------------------------------------- +Wed Feb 24 14:59:27 UTC 2021 - Witek Bedyk + +- Do not include sources (bsc#1151558) +- Remove rc symlink + +------------------------------------------------------------------- +Fri Aug 21 11:53:46 UTC 2020 - Joao Cavalheiro + +- Update to 1.0.1 + * Changes to build specification + + Modify spec: update golang version to 1.14 + + Remove update tarball script + + Add _service file to allow for updates via `osc service disabledrun` + * Bug fixes + + [BUGFIX] filesystem_freebsd: Fix label values #1728 + + [BUGFIX] Update prometheus/procfs to fix log noise #1735 + + [BUGFIX] Fix build tags for collectors #1745 + + [BUGFIX] Handle no data from powersupplyclass #1747, #1749 + +- Update to 1.0.0 + * Bug fixes + + [BUGFIX] Read /proc/net files with a single read syscall #1380 + + [BUGFIX] Renamed label state to name on node_systemd_service_restart_total. #1393 + + [BUGFIX] Fix netdev nil reference on Darwin #1414 + + [BUGFIX] Strip path.rootfs from mountpoint labels #1421 + + [BUGFIX] Fix seconds reported by schedstat #1426 + + [BUGFIX] Fix empty string in path.rootfs #1464 + + [BUGFIX] Fix typo in cpufreq metric names #1510 + + [BUGFIX] Read /proc/stat in one syscall #1538 + + [BUGFIX] Fix OpenBSD cache memory information #1542 + + [BUGFIX] Refactor textfile collector to avoid looping defer #1549 + + [BUGFIX] Fix network speed math #1580 + + [BUGFIX] collector/systemd: use regexp to extract systemd version #1647 + + [BUGFIX] Fix initialization in perf collector when using multiple CPUs #1665 + + [BUGFIX] Fix accidentally empty lines in meminfo_linux #1671 + * Several enhancements + + See https://github.com/prometheus/node_exporter/releases/tag/v1.0.0 + +------------------------------------------------------------------- +Thu Feb 20 20:25:26 UTC 2020 - Michael Ströder + +- update to 1.0.0-rc.0 + +Breaking changes + * The netdev collector CLI argument --collector.netdev.ignored-devices + was renamed to --collector.netdev.device-blacklist in order to conform + with the systemd collector. #1279 + * The label named state on node_systemd_service_restart_total metrics was + changed to name to better describe the metric. #1393 + * Refactoring of the mdadm collector changes several metrics + node_md_disks_active is removed + node_md_disks now has a state label for "fail", "spare", "active" disks. + node_md_is_active is replaced by node_md_state with a state set of + "active", "inactive", "recovering", "resync". + * Additional label mountaddr added to NFS device metrics to distinguish + mounts from the same URL, but different IP addresses. #1417 + * Metrics node_cpu_scaling_frequency_min_hrts and + node_cpu_scaling_frequency_max_hrts of the cpufreq collector were + renamed to node_cpu_scaling_frequency_min_hertz and + node_cpu_scaling_frequency_max_hertz. #1510 + * Collectors that are enabled, but are unable to find data to collect, + now return 0 for node_scrape_collector_success. + +------------------------------------------------------------------- +Tue Sep 24 17:32:33 UTC 2019 - Dario Maiocchi + +- Add missing sysconfig file in rpm bsc#1151557 + +------------------------------------------------------------------- +Thu Aug 15 21:50:45 UTC 2019 - Michael Ströder + +- Update to 0.18.1 + +0.18.1 / 2019-06-04 + +Changes + * [BUGFIX] Fix incorrect sysctl call in BSD meminfo collector, resulting in broken swap metrics on FreeBSD #1345 + * [BUGFIX] Fix rollover bug in mountstats collector #1364 + +0.18.0 / 2019-05-09 + +Breaking changes + * Renamed interface label to device in netclass collector for consistency with + * other network metrics #1224 + * The cpufreq metrics now separate the cpufreq and scaling data based on what the driver provides. #1248 + * The labels for the network_up metric have changed, see issue #1236 + * Bonding collector now uses mii_status instead of operstatus #1124 + * Several systemd metrics have been turned off by default to improve performance #1254 + * These include unit_tasks_current, unit_tasks_max, service_restart_total, and unit_start_time_seconds + * The systemd collector blacklist now includes automount, device, mount, and slice units by default. #1255 + +Changes + * [CHANGE] Bonding state uses mii_status #1124 + * [CHANGE] Add a limit to the number of in-flight requests #1166 + * [CHANGE] Renamed interface label to device in netclass collector #1224 + * [CHANGE] Add separate cpufreq and scaling metrics #1248 + * [CHANGE] Several systemd metrics have been turned off by default to improve performance #1254 + * [CHANGE] Expand systemd collector blacklist #1255 + * [CHANGE] Split cpufreq metrics into a separate collector #1253 + * [FEATURE] Add a flag to disable exporter metrics #1148 + * [FEATURE] Add kstat-based Solaris metrics for boottime, cpu and zfs collectors #1197 + * [FEATURE] Add uname collector for FreeBSD #1239 + * [FEATURE] Add diskstats collector for OpenBSD #1250 + * [FEATURE] Add pressure collector exposing pressure stall information for Linux #1174 + * [FEATURE] Add perf exporter for Linux #1274 + * [ENHANCEMENT] Add Infiniband counters #1120 + * [ENHANCEMENT] Add TCPSynRetrans to netstat default filter #1143 + * [ENHANCEMENT] Move network_up labels into new metric network_info #1236 + * [ENHANCEMENT] Use 64-bit counters for Darwin netstat + * [BUGFIX] Add fallback for missing /proc/1/mounts #1172 + * [BUGFIX] Fix node_textfile_mtime_seconds to work properly on symlinks #1326 + +------------------------------------------------------------------- +Fri Aug 2 06:36:43 UTC 2019 - Jan Fajerski + +- Add network-online (Wants and After) dependency to systemd unit bsc#1143913 + +------------------------------------------------------------------- +Tue Dec 11 17:07:54 UTC 2018 - Jan Fajerski + +- Update to 0.17.0 + + includes breaking changes + + supvervisord collector reports start_time_seconds rather than uptime + + The wifi collector is disabled by default due to suspected caching issues and goroutine leaks + See https://github.com/prometheus/node_exporter/releases/tag/v0.17.0 + for full changelog + +------------------------------------------------------------------- +Thu Nov 29 12:49:34 UTC 2018 - Jan Fajerski + +- Update to 0.16.0 + + includes breaking changes + + several metrics renamed + + split out cpu guest metrics + See https://github.com/prometheus/node_exporter/releases/tag/v0.16.0 + for full changelog + +------------------------------------------------------------------- +Sun Feb 18 20:45:46 UTC 2018 - marix@marix.org + +- Run tests during packaging + +------------------------------------------------------------------- +Thu Jan 25 07:07:24 UTC 2018 - kkaempf@suse.com + +- Update to 0.15.2 + See https://github.com/prometheus/node_exporter/blob/master/CHANGELOG.md + +- Provides node_exporter, prometheus(node_exporter) + +------------------------------------------------------------------- +Thu Jul 27 09:03:36 UTC 2017 - tserong@suse.com + +- Add BuildRequires: fdupes + +------------------------------------------------------------------- +Tue May 9 07:27:32 UTC 2017 - tserong@suse.com + +- Add systemd unit file +- Run as unprivileged "prometheus" user + +------------------------------------------------------------------- +Wed Mar 29 09:51:45 UTC 2017 - moio@suse.com + +- Initial version diff --git a/golang-github-prometheus-node_exporter.obsinfo b/golang-github-prometheus-node_exporter.obsinfo new file mode 100644 index 0000000..69526f3 --- /dev/null +++ b/golang-github-prometheus-node_exporter.obsinfo @@ -0,0 +1,4 @@ +name: golang-github-prometheus-node_exporter +version: 1.9.0 +mtime: 1739776131 +commit: 02afa5c53c36123611533f2defea6ccd4546a9bb diff --git a/golang-github-prometheus-node_exporter.spec b/golang-github-prometheus-node_exporter.spec new file mode 100644 index 0000000..abeb0d1 --- /dev/null +++ b/golang-github-prometheus-node_exporter.spec @@ -0,0 +1,91 @@ +# +# spec file for package golang-github-prometheus-node_exporter +# +# Copyright (c) 2025 SUSE LLC +# Copyright (c) 2017 Silvio Moioli +# +# All modifications and additions to the file contributed by third parties +# remain the property of their copyright owners, unless otherwise agreed +# upon. The license for this file, and modifications and additions to the +# file, is the same license as for the pristine package itself (unless the +# license for the pristine package is not an Open Source License, in which +# case the license is the MIT License). An "Open Source License" is a +# license that conforms to the Open Source Definition (Version 1.9) +# published by the Open Source Initiative. + +# Please submit bugfixes or comments via https://bugs.opensuse.org/ +# + + +Name: golang-github-prometheus-node_exporter +Version: 1.9.0 +Release: 0 +Summary: Prometheus exporter for machine metrics +License: Apache-2.0 +Group: System/Management +URL: https://prometheus.io/ +Source: %{name}-%{version}.tar.gz +# Generated after applying fix_arp_collector.patch +Source1: vendor.tar.gz +Source2: prometheus-node_exporter.service +Source4: prometheus-node_exporter.sysconfig +BuildRequires: fdupes +BuildRequires: golang-github-prometheus-promu >= 0.12.0 +BuildRequires: golang(API) >= 1.22 +%{?systemd_ordering} +Requires(post): %fillup_prereq +Requires(pre): user(prometheus) +Requires(pre): group(prometheus) +Provides: node_exporter +Provides: prometheus(node_exporter) +ExcludeArch: s390 +#Compat macro for new _fillupdir macro introduced in Nov 2017 +%if ! %{defined _fillupdir} + %define _fillupdir /var/adm/fillup-templates +%endif + +%description +Prometheus exporter for hardware and OS metrics exposed by *NIX kernels, +written in Go with pluggable metric collectors. + +%prep +%autosetup -a1 -p1 + +%build +%ifarch i586 s390x armv7hl armv7l armv7l:armv6l:armv5tel armv6hl +export BUILD_CGO_FLAG="--cgo" +%endif +export GOFLAGS="-buildmode=pie" +promu build -v $BUILD_CGO_FLAG + +%install +install -D -m 0755 %{_builddir}/%{name}-%{version}/node_exporter %{buildroot}/%{_bindir}/node_exporter +install -D -m 0644 %{SOURCE2} %{buildroot}%{_unitdir}/prometheus-node_exporter.service +install -D -m 0644 %{SOURCE4} %{buildroot}%{_fillupdir}/sysconfig.prometheus-node_exporter +%fdupes %{buildroot} + +%check +go test -x . +./node_exporter --version + +%pre +%service_add_pre prometheus-node_exporter.service + +%post +%service_add_post prometheus-node_exporter.service +%fillup_only -n prometheus-node_exporter + +%preun +%service_del_preun prometheus-node_exporter.service + +%postun +%service_del_postun prometheus-node_exporter.service + +%files +%doc README.md +%license LICENSE +%{_bindir}/node_exporter +%{_unitdir}/prometheus-node_exporter.service +%{_fillupdir}/sysconfig.prometheus-node_exporter + +%changelog diff --git a/prometheus-node_exporter.service b/prometheus-node_exporter.service new file mode 100644 index 0000000..90272b5 --- /dev/null +++ b/prometheus-node_exporter.service @@ -0,0 +1,17 @@ +[Unit] +Description=Prometheus exporter for machine metrics +Documentation=https://github.com/prometheus/node_exporter +Wants=network-online.target +After=network-online.target + +[Service] +Restart=always +User=prometheus +EnvironmentFile=-/etc/sysconfig/prometheus-node_exporter +ExecStart=/usr/bin/node_exporter $ARGS +ExecReload=/bin/kill -HUP $MAINPID +TimeoutStopSec=20s +SendSIGKILL=no + +[Install] +WantedBy=multi-user.target diff --git a/prometheus-node_exporter.sysconfig b/prometheus-node_exporter.sysconfig new file mode 100644 index 0000000..d6f4f5a --- /dev/null +++ b/prometheus-node_exporter.sysconfig @@ -0,0 +1,11 @@ +## Path: Network/Monitors/Prometheus/node_exporter +## Description: Prometheus node exporter startup parameters +## Type: string +## Default: '' +# +# Additional arguments for the node_exporter. +# Please call: /usr/bin/node_exporter --help +# for a full list of possible options. +# Note: Please keep the list on one line, of possible. +# +ARGS='' diff --git a/vendor.tar.gz b/vendor.tar.gz new file mode 100644 index 0000000..c3490fc --- /dev/null +++ b/vendor.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:8a9e495e7b7e5486708223ffe4a1a94d4224f65e83c9843bad0178af26219b16 +size 3693236