commit golang-github-prometheus-node_exporter for openSUSE:Factory

2020-08-29 Thread root
Hello community,

here is the log from the commit of package 
golang-github-prometheus-node_exporter for openSUSE:Factory checked in at 
2020-08-29 20:36:03

Comparing /work/SRC/openSUSE:Factory/golang-github-prometheus-node_exporter 
(Old)
 and  
/work/SRC/openSUSE:Factory/.golang-github-prometheus-node_exporter.new.3399 
(New)


Package is "golang-github-prometheus-node_exporter"

Sat Aug 29 20:36:03 2020 rev:6 rq:829750 version:1.0.1

Changes:

--- 
/work/SRC/openSUSE:Factory/golang-github-prometheus-node_exporter/golang-github-prometheus-node_exporter.changes
2020-02-28 15:21:40.321933523 +0100
+++ 
/work/SRC/openSUSE:Factory/.golang-github-prometheus-node_exporter.new.3399/golang-github-prometheus-node_exporter.changes
  2020-08-29 20:36:14.581311105 +0200
@@ -1,0 +2,33 @@
+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
+ 
+---

Old:

  node_exporter-v1.0.0~rc.0.tar.xz
  update-tarball.sh

New:

  _service
  node_exporter-1.0.1.tar.xz



Other differences:
--
++ golang-github-prometheus-node_exporter.spec ++
--- /var/tmp/diff_new_pack.MVMuUD/_old  2020-08-29 20:36:16.173311776 +0200
+++ /var/tmp/diff_new_pack.MVMuUD/_new  2020-08-29 20:36:16.177311777 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package golang-github-prometheus-node_exporter
 #
-# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2020 SUSE LLC
 # Copyright (c) 2017 Silvio Moioli 
 #
 # All modifications and additions to the file contributed by third parties
@@ -20,19 +20,18 @@
 %{go_nostrip}
 
 Name:   golang-github-prometheus-node_exporter
-Version:1.0.0~rc.0
+Version:1.0.1
 Release:0
 Summary:Prometheus exporter for machine metrics
 License:Apache-2.0
 Group:  System/Management
-Url:https://prometheus.io/
-Source: node_exporter-v%{version}.tar.xz
+URL:https://prometheus.io/
+Source: node_exporter-%{version}.tar.xz
 Source1:prometheus-node_exporter.service
 Source2:README
-Source3:update-tarball.sh
 Source4:prometheus-node_exporter.sysconfig
 BuildRequires:  fdupes
-BuildRequires:  go1.11
+BuildRequires:  go1.14
 BuildRequires:  golang-packaging
 BuildRequires:  xz
 BuildRoot:  %{_tmppath}/%{name}-%{version}-build
@@ -51,7 +50,7 @@
 Prometheus exporter for hardware and OS metrics exposed by *NIX kernels, 
written in Go with pluggable metric collectors.
 
 %prep
-%setup -q -n node_exporter
+%setup -q -n node_exporter-%{version}
 
 %build
 make collector/fixtures/sys/.unpacked  # unpacks text fixtures required by 
gotest

++ _service ++

  
https://github.com/prometheus/node_exporter.git
git
.git
1.0.1
v1.0.1
  
  
node_exporter-*.tar
xz
  
  
node_exporter
  

++ node_exporter-v1.0.0~rc.0.tar.xz -> node_exporter-1.0.1.tar.xz ++
 284817 lines of diff (skipped)




commit golang-github-prometheus-node_exporter for openSUSE:Factory

2020-02-28 Thread root
Hello community,

here is the log from the commit of package 
golang-github-prometheus-node_exporter for openSUSE:Factory checked in at 
2020-02-28 15:21:39

Comparing /work/SRC/openSUSE:Factory/golang-github-prometheus-node_exporter 
(Old)
 and  
/work/SRC/openSUSE:Factory/.golang-github-prometheus-node_exporter.new.26092 
(New)


Package is "golang-github-prometheus-node_exporter"

Fri Feb 28 15:21:39 2020 rev:5 rq:780064 version:1.0.0~rc.0

Changes:

--- 
/work/SRC/openSUSE:Factory/golang-github-prometheus-node_exporter/golang-github-prometheus-node_exporter.changes
2019-09-05 12:44:32.751453126 +0200
+++ 
/work/SRC/openSUSE:Factory/.golang-github-prometheus-node_exporter.new.26092/golang-github-prometheus-node_exporter.changes
 2020-02-28 15:21:40.321933523 +0100
@@ -1,0 +2,30 @@
+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
+
+---

Old:

  node_exporter-v0.18.1.tar.xz

New:

  node_exporter-v1.0.0~rc.0.tar.xz
  prometheus-node_exporter.sysconfig



Other differences:
--
++ golang-github-prometheus-node_exporter.spec ++
--- /var/tmp/diff_new_pack.h3j39h/_old  2020-02-28 15:21:40.977934859 +0100
+++ /var/tmp/diff_new_pack.h3j39h/_new  2020-02-28 15:21:40.977934859 +0100
@@ -20,7 +20,7 @@
 %{go_nostrip}
 
 Name:   golang-github-prometheus-node_exporter
-Version:0.18.1
+Version:1.0.0~rc.0
 Release:0
 Summary:Prometheus exporter for machine metrics
 License:Apache-2.0
@@ -30,16 +30,22 @@
 Source1:prometheus-node_exporter.service
 Source2:README
 Source3:update-tarball.sh
+Source4:prometheus-node_exporter.sysconfig
 BuildRequires:  fdupes
 BuildRequires:  go1.11
 BuildRequires:  golang-packaging
 BuildRequires:  xz
 BuildRoot:  %{_tmppath}/%{name}-%{version}-build
 %{?systemd_requires}
+Requires(post): %fillup_prereq
 Requires(pre):  shadow
 %{go_provides}
 Provides:   node_exporter
 Provides:   prometheus(node_exporter)
+#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.
@@ -58,6 +64,7 @@
 install -D -m 0644 %{SOURCE1} 
%{buildroot}%{_unitdir}/prometheus-node_exporter.service
 install -Dd -m 0755 %{buildroot}%{_sbindir}
 ln -s /usr/sbin/service %{buildroot}%{_sbindir}/rcprometheus-node_exporter
+install -D -m 0644 %{SOURCE4} 
%{buildroot}%{_fillupdir}/sysconfig.prometheus-node_exporter
 %gofilelist
 %fdupes %{buildroot}
 
@@ -71,7 +78,7 @@
 
 %post
 %service_add_post prometheus-node_exporter.service
-
+%fillup_only -n prometheus-node_exporter
 %preun
 %service_del_preun prometheus-node_exporter.service
 
@@ -85,5 +92,6 @@
 %{_bindir}/node_exporter
 %{_unitdir}/prometheus-node_exporter.service
 %{_sbindir}/rcprometheus-node_exporter
+%{_fillupdir}/sysconfig.prometheus-node_exporter
 
 %changelog

++ prometheus-node_exporter.sysconfig ++
## 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 

commit golang-github-prometheus-node_exporter for openSUSE:Factory

2019-09-05 Thread root
Hello community,

here is the log from the commit of package 
golang-github-prometheus-node_exporter for openSUSE:Factory checked in at 
2019-09-05 12:44:32

Comparing /work/SRC/openSUSE:Factory/golang-github-prometheus-node_exporter 
(Old)
 and  
/work/SRC/openSUSE:Factory/.golang-github-prometheus-node_exporter.new.7948 
(New)


Package is "golang-github-prometheus-node_exporter"

Thu Sep  5 12:44:32 2019 rev:4 rq:728280 version:0.18.1

Changes:

--- 
/work/SRC/openSUSE:Factory/golang-github-prometheus-node_exporter/golang-github-prometheus-node_exporter.changes
2019-08-07 14:01:16.848852958 +0200
+++ 
/work/SRC/openSUSE:Factory/.golang-github-prometheus-node_exporter.new.7948/golang-github-prometheus-node_exporter.changes
  2019-09-05 12:44:32.751453126 +0200
@@ -1,0 +2,44 @@
+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
+
+---

Old:

  node_exporter-v0.17.0.tar.xz

New:

  node_exporter-v0.18.1.tar.xz



Other differences:
--
++ golang-github-prometheus-node_exporter.spec ++
--- /var/tmp/diff_new_pack.zr2vZV/_old  2019-09-05 12:44:33.959452889 +0200
+++ /var/tmp/diff_new_pack.zr2vZV/_new  2019-09-05 12:44:33.963452888 +0200
@@ -20,7 +20,7 @@
 %{go_nostrip}
 
 Name:   golang-github-prometheus-node_exporter
-Version:0.17.0
+Version:0.18.1
 Release:0
 Summary:Prometheus exporter for machine metrics
 License:Apache-2.0

++ node_exporter-v0.17.0.tar.xz -> node_exporter-v0.18.1.tar.xz ++
 114792 lines of diff (skipped)

++ update-tarball.sh ++
--- /var/tmp/diff_new_pack.zr2vZV/_old  2019-09-05 12:44:34.419452799 +0200
+++ /var/tmp/diff_new_pack.zr2vZV/_new  2019-09-05 12:44:34.419452799 +0200
@@ -25,7 +25,7 @@
 PKG_DIR=$(pwd)
 REPO_NAME="node_exporter"
 REPO="https://github.com/prometheus/$REPO_NAME;
-REV="v0.17.0"
+REV="v0.18.1"
 
 
 cd $WORK_DIR




commit golang-github-prometheus-node_exporter for openSUSE:Factory

2019-08-07 Thread root
Hello community,

here is the log from the commit of package 
golang-github-prometheus-node_exporter for openSUSE:Factory checked in at 
2019-08-07 14:01:14

Comparing /work/SRC/openSUSE:Factory/golang-github-prometheus-node_exporter 
(Old)
 and  
/work/SRC/openSUSE:Factory/.golang-github-prometheus-node_exporter.new.9556 
(New)


Package is "golang-github-prometheus-node_exporter"

Wed Aug  7 14:01:14 2019 rev:3 rq:721454 version:0.17.0

Changes:

--- 
/work/SRC/openSUSE:Factory/golang-github-prometheus-node_exporter/golang-github-prometheus-node_exporter.changes
2019-02-01 11:46:40.768476442 +0100
+++ 
/work/SRC/openSUSE:Factory/.golang-github-prometheus-node_exporter.new.9556/golang-github-prometheus-node_exporter.changes
  2019-08-07 14:01:16.848852958 +0200
@@ -1,0 +2,5 @@
+Fri Aug  2 06:36:43 UTC 2019 - Jan Fajerski 
+
+- Add network-online (Wants and After) dependency to systemd unit bsc#1143913
+
+---



Other differences:
--
++ prometheus-node_exporter.service ++
--- /var/tmp/diff_new_pack.JOTCwS/_old  2019-08-07 14:01:17.800852948 +0200
+++ /var/tmp/diff_new_pack.JOTCwS/_new  2019-08-07 14:01:17.800852948 +0200
@@ -1,6 +1,8 @@
 [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




commit golang-github-prometheus-node_exporter for openSUSE:Factory

2019-02-01 Thread root
Hello community,

here is the log from the commit of package 
golang-github-prometheus-node_exporter for openSUSE:Factory checked in at 
2019-02-01 11:46:40

Comparing /work/SRC/openSUSE:Factory/golang-github-prometheus-node_exporter 
(Old)
 and  
/work/SRC/openSUSE:Factory/.golang-github-prometheus-node_exporter.new.28833 
(New)


Package is "golang-github-prometheus-node_exporter"

Fri Feb  1 11:46:40 2019 rev:2 rq:670151 version:0.17.0

Changes:

--- 
/work/SRC/openSUSE:Factory/golang-github-prometheus-node_exporter/golang-github-prometheus-node_exporter.changes
2018-03-13 10:23:30.530909073 +0100
+++ 
/work/SRC/openSUSE:Factory/.golang-github-prometheus-node_exporter.new.28833/golang-github-prometheus-node_exporter.changes
 2019-02-01 11:46:40.768476442 +0100
@@ -1,0 +2,20 @@
+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
+
+---

Old:

  _service
  node_exporter-0.15.2.tar.xz

New:

  README
  node_exporter-v0.17.0.tar.xz
  update-tarball.sh



Other differences:
--
++ golang-github-prometheus-node_exporter.spec ++
--- /var/tmp/diff_new_pack.HrLmk7/_old  2019-02-01 11:46:41.252475945 +0100
+++ /var/tmp/diff_new_pack.HrLmk7/_new  2019-02-01 11:46:41.256475940 +0100
@@ -1,6 +1,7 @@
 #
 # spec file for package golang-github-prometheus-node_exporter
 #
+# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
 # Copyright (c) 2017 Silvio Moioli 
 #
 # All modifications and additions to the file contributed by third parties
@@ -12,21 +13,25 @@
 # license that conforms to the Open Source Definition (Version 1.9)
 # published by the Open Source Initiative.
 
-# Please submit bugfixes or comments via http://bugs.opensuse.org/
+# Please submit bugfixes or comments via https://bugs.opensuse.org/
 #
 
+
 %{go_nostrip}
 
 Name:   golang-github-prometheus-node_exporter
-Version:0.15.2
+Version:0.17.0
 Release:0
-License:Apache-2.0
 Summary:Prometheus exporter for machine metrics
-Url:https://prometheus.io/
+License:Apache-2.0
 Group:  System/Management
-Source: node_exporter-%{version}.tar.xz
+Url:https://prometheus.io/
+Source: node_exporter-v%{version}.tar.xz
 Source1:prometheus-node_exporter.service
+Source2:README
+Source3:update-tarball.sh
 BuildRequires:  fdupes
+BuildRequires:  go1.11
 BuildRequires:  golang-packaging
 BuildRequires:  xz
 BuildRoot:  %{_tmppath}/%{name}-%{version}-build
@@ -40,12 +45,12 @@
 Prometheus exporter for hardware and OS metrics exposed by *NIX kernels, 
written in Go with pluggable metric collectors.
 
 %prep
-%setup -q -n node_exporter-%{version}
+%setup -q -n node_exporter
 
 %build
 make collector/fixtures/sys/.unpacked  # unpacks text fixtures required by 
gotest
 %goprep github.com/prometheus/node_exporter
-%gobuild
+%gobuild -mod=vendor ""
 
 %install
 %goinstall
@@ -57,7 +62,7 @@
 %fdupes %{buildroot}
 
 %check
-%gotest github.com/prometheus/node_exporter...
+%gotest github.com/prometheus/node_exporter -mod=vendor
 
 %pre
 %service_add_pre prometheus-node_exporter.service
@@ -75,7 +80,8 @@
 
 %files -f file.lst
 %defattr(-,root,root,-)
-%doc README.md LICENSE
+%doc README.md
+%license LICENSE
 %{_bindir}/node_exporter
 %{_unitdir}/prometheus-node_exporter.service
 %{_sbindir}/rcprometheus-node_exporter

++ README ++
To update the package:

- run update-tarball.sh to create a new tarball
- update the changes file
- osc commit

The update-tarball.sh script requires a go installation, the go dependency tool
dep and git to run.
++ update-tarball.sh ++
#!/bin/bash

set -x

if ! command -V go;
then
echo "ERROR: could not find go binary"
exit 1
fi

if ! command -V git;
then
echo "ERROR: could not find git binary"
exit 1
fi

WORK_DIR=$(mktemp -d -t)
function clean_up {
echo "cleaning up..."
rm -rf $WORK_DIR
}

trap clean_up EXIT SIGINT SIGTERM

PKG_DIR=$(pwd)
REPO_NAME="node_exporter"
REPO="https://github.com/prometheus/$REPO_NAME;
REV="v0.17.0"


cd