From 02d851cbf767a5511db60803fa3dec481154d5ad Mon Sep 17 00:00:00 2001 From: yseto Date: Mon, 7 Aug 2023 15:12:24 +0900 Subject: [PATCH 1/7] remove old rpm packaging on Makefile --- Makefile | 40 +++------------------------------------- 1 file changed, 3 insertions(+), 37 deletions(-) diff --git a/Makefile b/Makefile index eacf93038..6e48e909b 100644 --- a/Makefile +++ b/Makefile @@ -103,20 +103,7 @@ crossbuild-package-stage: make crossbuild-package MACKEREL_AGENT_NAME=mackerel-agent-stage MACKEREL_API_BASE=http://0.0.0.0 .PHONY: rpm -rpm: rpm-v1 rpm-v2 - -.PHONY: rpm-v1 -rpm-v1: crossbuild-package - MACKEREL_AGENT_NAME=$(MACKEREL_AGENT_NAME) _tools/packaging/prepare-rpm-build.sh - docker run --rm -v "$(PWD)":/workspace -v "$(PWD)/rpmbuild":/rpmbuild mackerel/docker-mackerel-rpm-builder:c7 \ - --define "_sourcedir /workspace/packaging/rpm-build/src" --define "_builddir /workspace/build-linux-386" \ - --define "_version ${VERSION}" --define "buildarch noarch" --target noarch \ - -bb packaging/rpm-build/$(MACKEREL_AGENT_NAME).spec - MACKEREL_AGENT_NAME=$(MACKEREL_AGENT_NAME) _tools/packaging/prepare-rpm-build.sh - docker run --rm -v "$(PWD)":/workspace -v "$(PWD)/rpmbuild":/rpmbuild mackerel/docker-mackerel-rpm-builder:c7 \ - --define "_sourcedir /workspace/packaging/rpm-build/src" --define "_builddir /workspace/build-linux-amd64" \ - --define "_version ${VERSION}" --define "buildarch x86_64" --target x86_64 \ - -bb packaging/rpm-build/$(MACKEREL_AGENT_NAME).spec +rpm: rpm-v2 .PHONY: rpm-v2 rpm-v2: rpm-v2-x86 rpm-v2-arm @@ -159,20 +146,7 @@ deb: crossbuild-package cd packaging/deb-build && debuild --no-tgz-check -rfakeroot -uc -us -aarmhf .PHONY: rpm-kcps -rpm-kcps: rpm-kcps-v1 rpm-kcps-v2 - -.PHONY: rpm-kcps-v1 -rpm-kcps-v1: crossbuild-package-kcps - MACKEREL_AGENT_NAME=mackerel-agent-kcps _tools/packaging/prepare-rpm-build.sh - docker run --rm -v "$(PWD)":/workspace -v "$(PWD)/rpmbuild":/rpmbuild mackerel/docker-mackerel-rpm-builder:c7 \ - --define "_sourcedir /workspace/packaging/rpm-build/src" --define "_builddir /workspace/build-linux-386" \ - --define "_version ${VERSION}" --define "buildarch noarch" --target noarch \ - -bb packaging/rpm-build/mackerel-agent-kcps.spec - MACKEREL_AGENT_NAME=mackerel-agent-kcps _tools/packaging/prepare-rpm-build.sh - docker run --rm -v "$(PWD)":/workspace -v "$(PWD)/rpmbuild":/rpmbuild mackerel/docker-mackerel-rpm-builder:c7 \ - --define "_sourcedir /workspace/packaging/rpm-build/src" --define "_builddir /workspace/build-linux-amd64" \ - --define "_version ${VERSION}" --define "buildarch x86_64" --target x86_64 \ - -bb packaging/rpm-build/mackerel-agent-kcps.spec +rpm-kcps: rpm-kcps-v2 .PHONY: rpm-kcps-v2 rpm-kcps-v2: crossbuild-package-kcps @@ -188,15 +162,7 @@ deb-kcps: crossbuild-package-kcps cd packaging/deb-build && debuild --no-tgz-check -rfakeroot -uc -us .PHONY: rpm-stage -rpm-stage: rpm-stage-v1 rpm-stage-v2 - -.PHONY: rpm-stage-v1 -rpm-stage-v1: crossbuild-package-stage - MACKEREL_AGENT_NAME=mackerel-agent-stage _tools/packaging/prepare-rpm-build.sh - docker run --rm -v "$(PWD)":/workspace -v "$(PWD)/rpmbuild":/rpmbuild mackerel/docker-mackerel-rpm-builder:c7 \ - --define "_sourcedir /workspace/packaging/rpm-build/src" --define "_builddir /workspace/build-linux-386" \ - --define "_version ${VERSION}" --define "buildarch noarch" --target noarch \ - -bb packaging/rpm-build/mackerel-agent-stage.spec +rpm-stage: rpm-stage-v2 .PHONY: rpm-stage-v2 rpm-stage-v2: crossbuild-package-stage From 44a72c9a89447a4f3c181c851f096b044cbd0ff8 Mon Sep 17 00:00:00 2001 From: yseto Date: Mon, 7 Aug 2023 15:14:09 +0900 Subject: [PATCH 2/7] fix set path for rpmspec --- _tools/packaging/prepare-rpm-build.sh | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/_tools/packaging/prepare-rpm-build.sh b/_tools/packaging/prepare-rpm-build.sh index de559feee..d00ad2094 100755 --- a/_tools/packaging/prepare-rpm-build.sh +++ b/_tools/packaging/prepare-rpm-build.sh @@ -6,11 +6,7 @@ pwd=`dirname $0` . "$pwd/common.sh" MACKEREL_AGENT_NAME=${MACKEREL_AGENT_NAME:-mackerel-agent} -spec_filename="mackerel-agent.spec" -if [ "$BUILD_SYSTEMD" != "" ]; then - spec_filename="mackerel-agent-systemd.spec" -fi - +spec_filename="mackerel-agent-systemd.spec" orig_dir="packaging/rpm" build_dir="packaging/rpm-build" From ebb75f2ad943897274acd5739fe3e4e1d658f129 Mon Sep 17 00:00:00 2001 From: yseto Date: Mon, 7 Aug 2023 15:15:44 +0900 Subject: [PATCH 3/7] remove old rpmspec --- packaging/rpm/mackerel-agent.spec | 968 ------------------------------ 1 file changed, 968 deletions(-) delete mode 100644 packaging/rpm/mackerel-agent.spec diff --git a/packaging/rpm/mackerel-agent.spec b/packaging/rpm/mackerel-agent.spec deleted file mode 100644 index cd1cf696d..000000000 --- a/packaging/rpm/mackerel-agent.spec +++ /dev/null @@ -1,968 +0,0 @@ -# sudo yum -y install rpmdevtools go && rpmdev-setuptree -# rpmbuild -ba ~/rpmbuild/SPECS/mackerel-agent.spec - -%define _binaries_in_noarch_packages_terminate_build 0 - -Name: mackerel-agent -Version: %{_version} -Release: 1 -License: ASL 2.0 -Summary: mackerel.io agent -URL: https://mackerel.io -Group: Hatena Co., Ltd. -Source0: %{name}.initd -Source1: %{name}.sysconfig -Source2: %{name}.logrotate -Source3: %{name}.conf -Packager: Hatena Co., Ltd. -BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root -Requires(post): /sbin/chkconfig -Requires(preun): /sbin/chkconfig, /sbin/service -Requires(postun): /sbin/service - -%description -mackerel.io agent - -%prep - -%build - -%install -%{__rm} -rf %{buildroot} -%{__install} -Dp -m0755 %{_builddir}/%{name} %{buildroot}%{_bindir}/%{name} -%{__install} -d -m0755 %{buildroot}/%{_localstatedir}/log/ -%{__install} -Dp -m0755 %{_sourcedir}/%{name}.initd %{buildroot}/%{_initrddir}/%{name} -%{__install} -Dp -m0644 %{_sourcedir}/%{name}.sysconfig %{buildroot}/%{_sysconfdir}/sysconfig/%{name} -%{__install} -Dp -m0644 %{_sourcedir}/%{name}.logrotate %{buildroot}/%{_sysconfdir}/logrotate.d/%{name} -%{__install} -Dp -m0644 %{_sourcedir}/%{name}.conf %{buildroot}/%{_sysconfdir}/%{name}/%{name}.conf -%{__install} -Dp -m0755 %{_sourcedir}/%{name}.deprecated %{buildroot}/usr/local/bin/%{name} - -%clean -%{__rm} -rf %{buildroot} - -%pre - -%post -/sbin/chkconfig --add %{name} - -%preun -if [ $1 = 0 ]; then - service %{name} stop > /dev/null 2>&1 - chkconfig --del %{name} -fi - -%files -%defattr(-,root,root) -%{_initrddir}/%{name} -%{_bindir}/%{name} -%config(noreplace) %{_sysconfdir}/sysconfig/%{name} -%config(noreplace) %{_sysconfdir}/%{name}/%{name}.conf -%{_sysconfdir}/logrotate.d/%{name} -/usr/local/bin/%{name} - -%changelog -* Thu Jul 13 2023 - 0.77.1 -- Bump github.com/shirou/gopsutil/v3 from 3.23.3 to 3.23.6 (by dependabot[bot]) -- Bump github.com/mackerelio/mkr from 0.49.2 to 0.51.0 in /wix (by dependabot[bot]) -- Bump github.com/mackerelio/mackerel-client-go from 0.24.0 to 0.26.0 (by dependabot[bot]) - -* Wed Jun 14 2023 - 0.77.0 -- fixed to log the key when metric parsing fails (by tukaelu) -- Bump github.com/BurntSushi/toml from 1.2.1 to 1.3.0 (by dependabot[bot]) - -* Wed May 31 2023 - 0.76.0 -- added check-file-age on windows (by yseto) -- update Actions Runner Image of windows. (by yseto) -- add feature to ignore disk labels by regexp in 'disk' of system metrics (by kmuto) - -* Wed Apr 12 2023 - 0.75.2 -- Bump golang.org/x/sys from 0.5.0 to 0.7.0 in /wix (by dependabot[bot]) -- Bump golang.org/x/text from 0.7.0 to 0.9.0 (by dependabot[bot]) -- Bump github.com/shirou/gopsutil/v3 from 3.23.1 to 3.23.3 (by dependabot[bot]) -- Bump github.com/mackerelio/mackerel-agent-plugins from 0.75.0 to 0.78.0 in /wix (by dependabot[bot]) -- Bump github.com/mackerelio/go-osstat from 0.2.3 to 0.2.4 (by dependabot[bot]) -- Bump github.com/fatih/color from 1.14.1 to 1.15.0 (by dependabot[bot]) -- Bump github.com/mackerelio/mkr from 0.49.0 to 0.49.2 in /wix (by dependabot[bot]) -- Bump github.com/mackerelio/go-check-plugins from 0.43.0 to 0.44.0 in /wix (by dependabot[bot]) - -* Wed Feb 15 2023 - 0.75.1 -- Bump golang.org/x/sys from 0.4.0 to 0.5.0 in /wix (by dependabot[bot]) -- Bump golang.org/x/text from 0.6.0 to 0.7.0 (by dependabot[bot]) -- fix msi package installscope. (by yseto) -- Bump github.com/mackerelio/mkr from 0.48.0 to 0.49.0 in /wix (by dependabot[bot]) -- Bump github.com/mackerelio/go-check-plugins from 0.42.4 to 0.43.0 in /wix (by dependabot[bot]) -- Bump github.com/shirou/gopsutil/v3 from 3.22.12 to 3.23.1 (by dependabot[bot]) - -* Wed Feb 1 2023 - 0.75.0 -- Bump peter-evans/repository-dispatch from 1 to 2 (by dependabot[bot]) -- Bump golang.org/x/sys from 0.3.0 to 0.4.0 in /wix (by dependabot[bot]) -- Bump github.com/fatih/color from 1.13.0 to 1.14.1 (by dependabot[bot]) -- Enables Dependabot version updates for GitHub Actions (by Arthur1) -- Upgrade reusable actions 2 (by Arthur1) -- Upgrade reusable actions (by Arthur1) -- Remove build command for apt v1 (by Arthur1) -- Bump github.com/mackerelio/mackerel-agent-plugins from 0.72.1 to 0.75.0 in /wix (by dependabot[bot]) -- Bump github.com/mackerelio/mkr from 0.47.1 to 0.48.0 in /wix (by dependabot[bot]) -- Bump github.com/mackerelio/go-check-plugins from 0.42.1 to 0.42.4 in /wix (by dependabot[bot]) -- Get osname, version, and release by WMI (by Arthur1) -- Bump github.com/mackerelio/mackerel-client-go from 0.22.0 to 0.24.0 (by dependabot[bot]) -- Bump golang.org/x/text from 0.3.7 to 0.6.0 (by dependabot[bot]) -- Bump github.com/BurntSushi/toml from 1.2.0 to 1.2.1 (by dependabot[bot]) - -* Wed Jan 18 2023 - 0.74.1 -- Replace WMI library (by Arthur1) -- Update some libraries (by yseto) -- Remove deb builder (by yseto) - -* Tue Dec 20 2022 - 0.74.0 -- [ci]fix timeout (by yseto) -- use ubuntu-20.04 (by yseto) -- refactor(config/validate): use `candidates` instead of `parentConfKeys` (by wafuwafu13) -- improve purge stage of Debian package to remove id file and keep custom files (by kmuto) -- fix(configtest): don't detect child key if parent key has already detected (by wafuwafu13) - -* Wed Nov 9 2022 - 0.73.3 -- Fix config test (by ryuichi1208) - -* Fri Nov 4 2022 - 0.73.2 -- Replace linter (by yseto) -- Bump github.com/mackerelio/mackerel-client-go from 0.21.2 to 0.22.0 (by dependabot[bot]) -- Improve `mackerel-agent configtest`: Add suggestion to unexpected keys (by wafuwafu13) -- Bump github.com/Songmu/gocredits from 0.2.0 to 0.3.0 (by dependabot[bot]) -- Bump github.com/mackerelio/mkr from 0.47.0 to 0.47.1 in /wix (by dependabot[bot]) -- go.mod 1.17 -> 1.18 (by yseto) -- Improve `mackerel-agent configtest`: detect unexpected key (by wafuwafu13) -- fix deprecated function. (by yseto) -- Bump github.com/mackerelio/go-osstat from 0.2.2 to 0.2.3 (by dependabot[bot]) -- Bump github.com/Songmu/goxz from 0.8.2 to 0.9.1 (by dependabot[bot]) -- Bump github.com/BurntSushi/toml from 1.1.0 to 1.2.0 (by dependabot[bot]) - -* Wed Sep 14 2022 - 0.73.1 -- Bump github.com/mackerelio/mkr from 0.46.9 to 0.47.0 in /wix (by dependabot[bot]) -- config_test: Add the case of LoadConfigWithInvalidToml (by wafuwafu13) -- In the test, if the Fatal if the result is nil. (by yseto) -- remove unused codes (by yseto) -- replace io/ioutil (by yseto) -- Bump github.com/mackerelio/mackerel-client-go from 0.21.1 to 0.21.2 (by dependabot[bot]) -- get interface information via netlink on linux. (by yseto) - -* Wed Jul 27 2022 - 0.73.0 -- Bump github.com/mackerelio/mkr from 0.46.8 to 0.46.9 in /wix (by dependabot[bot]) -- Bump github.com/mackerelio/mackerel-agent-plugins from 0.71.0 to 0.72.1 in /wix (by dependabot[bot]) -- Loosen the conditions of delaying report of check monitering. (by sugy) - -* Wed Jul 20 2022 - 0.72.15 -- Bump github.com/mackerelio/mkr from 0.46.7 to 0.46.8 in /wix (by dependabot[bot]) -- Bump github.com/mackerelio/go-check-plugins from 0.42.0 to 0.42.1 in /wix (by dependabot[bot]) -- Bump github.com/mackerelio/mackerel-client-go from 0.21.0 to 0.21.1 (by dependabot[bot]) - -* Wed Jun 22 2022 - 0.72.14 -- add s, ms, bps to metric units (by Arthur1) -- Bump github.com/mackerelio/mkr from 0.46.6 to 0.46.7 in /wix (by dependabot[bot]) - -* Wed Jun 8 2022 - 0.72.13 -- Bump github.com/mackerelio/mkr from 0.46.5 to 0.46.6 in /wix (by dependabot[bot]) -- Bump github.com/Songmu/prompter from 0.5.0 to 0.5.1 (by dependabot[bot]) - -* Thu May 26 2022 - 0.72.12 -- Bump github.com/Songmu/goxz from 0.8.1 to 0.8.2 (by dependabot[bot]) -- Bump github.com/mackerelio/mackerel-agent-plugins from 0.70.6 to 0.71.0 in /wix (by dependabot[bot]) - -* Thu Apr 14 2022 - 0.72.11 -- Bump github.com/mackerelio/mackerel-agent-plugins from 0.70.4 to 0.70.6 in /wix (by dependabot[bot]) -- Bump github.com/mackerelio/go-check-plugins from 0.41.7 to 0.42.0 in /wix (by dependabot[bot]) -- Bump github.com/mackerelio/mkr from 0.46.4 to 0.46.5 in /wix (by dependabot[bot]) -- Bump github.com/BurntSushi/toml from 1.0.0 to 1.1.0 (by dependabot[bot]) - -* Wed Mar 30 2022 - 0.72.10 -- Bump github.com/mackerelio/go-osstat from 0.2.1 to 0.2.2 (by dependabot[bot]) -- Bump github.com/mackerelio/go-check-plugins from 0.41.6 to 0.41.7 in /wix (by dependabot[bot]) -- Bump github.com/mackerelio/mackerel-agent-plugins from 0.70.3 to 0.70.4 in /wix (by dependabot[bot]) -- Bump github.com/mackerelio/mkr from 0.46.3 to 0.46.4 in /wix (by dependabot[bot]) - -* Tue Mar 15 2022 - 0.72.9 -- Bump github.com/mackerelio/go-check-plugins from 0.41.5 to 0.41.6 in /wix (by dependabot[bot]) -- Bump github.com/mackerelio/mkr from 0.46.2 to 0.46.3 in /wix (by dependabot[bot]) -- Bump github.com/mackerelio/mackerel-agent-plugins from 0.70.2 to 0.70.3 in /wix (by dependabot[bot]) - -* Wed Feb 16 2022 - 0.72.8 -- upgrade Go 1.16 -> 1.17 (by lufia) -- Bump github.com/mackerelio/mkr from 0.46.1 to 0.46.2 in /wix (by dependabot[bot]) -- Bump github.com/mackerelio/go-check-plugins from 0.41.4 to 0.41.5 in /wix (by dependabot[bot]) - -* Wed Feb 2 2022 - 0.72.7 -- Bump github.com/mackerelio/mkr from 0.46.0 to 0.46.1 in /wix (by dependabot[bot]) -- Bump github.com/mackerelio/mackerel-agent-plugins from 0.69.1 to 0.70.2 in /wix (by dependabot[bot]) -- Bump github.com/mackerelio/go-check-plugins from 0.41.1 to 0.41.4 in /wix (by dependabot[bot]) -- Bump github.com/BurntSushi/toml from 0.3.1 to 1.0.0 (by dependabot[bot]) -- Bump github.com/Songmu/goxz from 0.7.0 to 0.8.1 (by dependabot[bot]) -- Bump github.com/mackerelio/mackerel-client-go from 0.19.0 to 0.21.0 (by dependabot[bot]) - -* Wed Jan 12 2022 - 0.72.6 -- Bump github.com/mackerelio/mkr from v0.45.3 to 0.46.0 (by susisu) - -* Wed Dec 1 2021 - 0.72.5 -- Bump github.com/mackerelio/mackerel-client-go from 0.17.0 to 0.19.0 (by dependabot[bot]) - -* Thu Nov 18 2021 - 0.72.4 -- spec: reuse http.Client (by lufia) -- Bump github.com/mackerelio/go-osstat from 0.2.0 to 0.2.1 (by dependabot[bot]) -- Bump github.com/mattn/goveralls from 0.0.9 to 0.0.11 (by dependabot[bot]) -- make wix/ a submodule (by susisu) -- Add arm64/darwin build to GitHub release (by astj) -- read a response body even if status is not good (by lufia) - -* Wed Oct 20 2021 - 0.72.3 -- Bump github.com/mackerelio/mackerel-agent-plugins from v0.65.0 to v0.69.1 (by susisu) -- Bump github.com/mackerelio/go-check-plugins from v0.39.5 to v0.41.1 (by ne-sachirou) - -* Mon Sep 6 2021 - 0.72.2 -- Update Code Signing Certificates (by Krout0n) -- Bump github.com/mackerelio/go-check-plugins from 0.39.3 to 0.39.5 (by dependabot[bot]) -- Bump github.com/mackerelio/mackerel-agent-plugins from 0.64.2 to 0.65.0 (by dependabot[bot]) -- Bump github.com/mackerelio/mkr from 0.45.1 to 0.45.2 (by dependabot[bot]) - -* Wed Jun 23 2021 - 0.72.1 -- Bump github.com/mackerelio/go-check-plugins from 0.39.2 to 0.39.3 (by dependabot[bot]) -- Bump github.com/mattn/goveralls from 0.0.8 to 0.0.9 (by dependabot[bot]) -- Bump github.com/mackerelio/mackerel-agent-plugins from 0.64.0 to 0.64.2 (by dependabot[bot]) -- Bump github.com/mackerelio/mkr from 0.45.0 to 0.45.1 (by dependabot[bot]) - -* Thu Jun 17 2021 - 0.72.0 -- fix http_proxy option in v0.71.2 (by yseto) - -* Wed May 26 2021 - 0.71.2 -- Bump github.com/mackerelio/go-osstat from 0.1.0 to 0.2.0 (by dependabot[bot]) -- Bump golang.org/x/text from 0.3.5 to 0.3.6 (by dependabot[bot]) -- Bump github.com/Songmu/goxz from 0.6.0 to 0.7.0 (by dependabot[bot]) -- upgrade Go 1.14 to 1.16 (by lufia) -- [ci] avoid additional Go installation (by lufia) -- Bump github.com/Songmu/prompter from 0.4.0 to 0.5.0 (by dependabot[bot]) -- Bump github.com/mackerelio/mackerel-client-go from 0.15.0 to 0.16.0 (by dependabot[bot]) -- Bump github.com/mattn/goveralls from 0.0.7 to 0.0.8 (by dependabot[bot]) -- Bump github.com/mackerelio/mackerel-client-go from 0.13.0 to 0.15.0 (by dependabot[bot]) -- Bump github.com/mackerelio/golib from 1.1.0 to 1.2.0 (by dependabot[bot]) -- [ci] fix option at repository-dispatch (by yseto) -- [ci] added repository_dispatch to homebrew-mackerel-agent (by yseto) -- [ci] replace token (by yseto) -- [ci] replace mackerel-github-release (by yseto) -- Changed the test method from TestDiskGenerator to TestParseDiskStats because the test results are flaky. (by yseto) - -* Thu Jan 21 2021 - 0.71.1 -- remove .circleci/config.yml (by yseto) -- [ci] bump Windows i386 Golang to 1.14.14 (by astj) -- Build Windows package on GitHub Actions (by yseto) -- Bump github.com/mackerelio/golib from 1.0.0 to 1.1.0 (by dependabot[bot]) -- Bump github.com/mackerelio/mackerel-client-go from 0.12.0 to 0.13.0 (by dependabot[bot]) -- Bump golang.org/x/text from 0.3.4 to 0.3.5 (by dependabot[bot]) - -* Mon Dec 14 2020 - 0.71.0 -- Bump github.com/mackerelio/mackerel-client-go from 0.11.0 to 0.12.0 (by dependabot[bot]) -- Network interface exclusion feature (by yseto) -- Bump golang.org/x/text from 0.3.3 to 0.3.4 (by dependabot-preview[bot]) - -* Wed Nov 25 2020 - 0.70.3 -- Build with Go 1.14 in CI (was 1.15 by mistake) (by astj) - -* Thu Nov 19 2020 - 0.70.2 -- Fix artifact filename pattern again to include mackerel-agent_{os}_{arch}.tar.gz to GitHub Release artifacts (by astj) - -* Thu Nov 19 2020 - 0.70.1 -- include mackerel-agent_{os}_{arch}.tar.gz to GitHub Release artifacts (by astj) - -* Thu Nov 19 2020 - 0.70.0 -- replace Travis CI workflow with GitHub Actions (by astj) -- Retry once immediately on posting metrics and check reports when error is caused by net/http (network error) (by astj) - -* Wed Oct 28 2020 - 0.69.3 -- Bump github.com/shirou/gopsutil from 2.20.8+incompatible to 2.20.9+incompatible (by dependabot-preview[bot]) - -* Thu Oct 01 2020 - 0.69.2 -- Bump github.com/mackerelio/mackerel-client-go from 0.10.1 to 0.11.0 (by dependabot-preview[bot]) - -* Tue Sep 15 2020 - 0.69.1 -- kcps, stage: add --target option to build rpm (by lufia) - -* Tue Sep 15 2020 - 0.69.0 -- revert changing filename unexpectedly (by lufia) -- Bump github.com/shirou/gopsutil from 2.20.6+incompatible to 2.20.8+incompatible (by dependabot-preview[bot]) -- Bump github.com/mattn/goveralls from 0.0.6 to 0.0.7 (by dependabot-preview[bot]) -- Bump github.com/Songmu/prompter from 0.3.0 to 0.4.0 (by dependabot-preview[bot]) -- revert mkdir with shell expansion (by lufia) -- add arm64 RPM packages, and change deb architecture to be correct (by lufia) -- update go: 1.12 -> 1.14 (by lufia) - -* Wed Jul 29 2020 - 0.68.2 -- Bump github.com/shirou/gopsutil from 2.20.4+incompatible to 2.20.6+incompatible (by dependabot-preview[bot]) - -* Mon Jul 20 2020 - 0.68.1 -- Bump github.com/mackerelio/mackerel-client-go from 0.10.0 to 0.10.1 (by dependabot-preview[bot]) -- Bump golang.org/x/text from 0.3.2 to 0.3.3 (by dependabot-preview[bot]) -- Bump github.com/mackerelio/mackerel-client-go from 0.9.1 to 0.10.0 (by dependabot-preview[bot]) - -* Thu May 14 2020 - 0.68.0 -- Bump github.com/shirou/gopsutil from 2.20.3+incompatible to 2.20.4+incompatible (by dependabot-preview[bot]) -- Improve FreeBSD rc script (by metalefty) -- Bump github.com/shirou/gopsutil from 2.20.2+incompatible to 2.20.3+incompatible (by dependabot-preview[bot]) -- [Windows]support x64 installation (by lufia) - -* Fri Apr 03 2020 - 0.67.1 -- Bump github.com/shirou/gopsutil from 2.20.1+incompatible to 2.20.2+incompatible (by dependabot-preview[bot]) -- fix too late closing the response body (by shogo82148) -- Bump github.com/mackerelio/mackerel-client-go from 0.9.0 to 0.9.1 (by dependabot-preview[bot]) - -* Wed Feb 05 2020 - 0.67.0 -- Bump github.com/shirou/gopsutil from 2.19.12+incompatible to 2.20.1+incompatible (by dependabot-preview[bot]) -- Bump github.com/mackerelio/mackerel-client-go from 0.8.0 to 0.9.0 (by dependabot-preview[bot]) -- Allow formatted duration in config (by itchyny) -- rename: github.com/motemen/gobump -> github.com/x-motemen/gobump (by lufia) -- Support IMDSv2 for AWS EC2 (by shogo82148) -- `%q` verb of fmt is invalid for map[string]float64 types (by shogo82148) - -* Wed Jan 22 2020 - 0.66.0 -- Bump github.com/pkg/errors from 0.8.1 to 0.9.1 (by dependabot-preview[bot]) -- Bump github.com/shirou/gopsutil from 2.19.11+incompatible to 2.19.12+incompatible (by dependabot-preview[bot]) -- Bump github.com/Songmu/prompter from 0.2.0 to 0.3.0 (by dependabot-preview[bot]) -- Implement GCEGenerator.SuggestCustomIdentifier (by tanatana) -- fix how to get self executable path for autoshutdown option (by lufia) - -* Thu Dec 05 2019 - 0.65.0 -- add -private-autoshutdown option (by lufia) -- Fix Windows Edition name (by mattn) -- Bump github.com/shirou/gopsutil from 2.19.10+incompatible to 2.19.11+incompatible (by dependabot-preview[bot]) -- update go-osstat and golang.org/x (by lufia) -- refactor: improve interface and testing for spec/cloud (by astj) -- refactor: Inject CloudMetaGenerators to Suggester in order to test them in safer way (by astj) - -* Thu Nov 21 2019 - 0.64.1 -- Install development tools in module-aware mode (by lufia) -- Bump github.com/shirou/gopsutil from 2.18.12+incompatible to 2.19.10+incompatible (by dependabot-preview[bot]) -- Add armhf Debian package to release (by hnw) - -* Thu Oct 24 2019 - 0.64.0 -- Build with Go 1.12.12 -- stop building 32bit Darwin artifacts (by astj) -- Fix wix/mackerel-agent.sample.conf (by ryosms) -- Pass the check monitoring result message to "action" by env (by a-know) -- Bump github.com/mackerelio/mackerel-client-go from 0.6.0 to 0.8.0 (by dependabot-preview[bot]) -- add .dependabot/config.yml (by lufia) - -* Wed Sep 11 2019 - 0.63.0 -- avoid to use unnamed NICs for registering hosts on Windows (by lufia) -- Fixed to create configuration directory directory when executing init command if not exist directory (by homedm) - -* Thu Aug 29 2019 - 0.62.1 -- Update dependencies (by astj) - -* Tue Jul 30 2019 - 0.62.0 -- Allow working directory configuration in env of metadata plugins (by itchyny) -- Remove tempdir in tests (by astj) -- Remove memory.active and inactive metrics (by itchyny) -- Check command name on pid check for pid confliction after OS restart (by itchyny) -- change the owner of files created in docker (by hayajo) -- Fix to fit #557 into our workflow. (by hayajo) - -* Tue Jul 23 2019 - 0.61.1 -- Set rpm dist to ".el7.centos", not ".el7" in rpm-v2 (by astj) - -* Mon Jul 22 2019 - 0.61.0 -- Generate and include CREDITS file in the release artifacts (by itchyny) -- Migrate docker repository (by hayajo) -- [check-plugin] Support custom_identifier (by astj) -- Stop unnecessary builds (by lufia) -- Care newer busybox (by astj) -- migrate to mackerel.Client (by lufia) - -* Tue Jun 11 2019 - 0.60.0 -- migrate CreatingMetricsValue to mackerel.HostMetricValue (by lufia) -- migrate to use mkr.GraphDefsParam instead of CreateGraphDefsPayload (by lufia) -- migrate to use mkr.CheckReports instead of monitoringChecksPayload (by lufia) -- update appveyor.yml to build 64bit binaries (by lufia) -- migrate to use mkr.XxxHostParam instead of mackerel.HostSpec (by lufia) -- support Go Modules (by lufia) - -* Wed May 08 2019 - 0.59.3 -- Add rc script for FreeBSD (by owatan) -- migrate to use mkr.Interface instead of mackerel.NetInterface (by lufia) -- migrate to use mkr.Host instead of mackerel.Host (by lufia) - -* Wed Mar 27 2019 - 0.59.2 -- trim trailing newlines from command string on windows (by Songmu) -- Improve Makefile (by itchyny) - -* Wed Feb 13 2019 - 0.59.1 -- fix counter naming problem on Windows (by lufia) - -* Thu Jan 10 2019 - 0.59.0 -- Fix decoding error message of executables on Windows (by mattn) -- Fix detecting EC2 instance on Windows (by mattn) -- add check-disk plugin for Windows (by susisu) - -* Tue Nov 27 2018 - 0.58.2 -- [windows] Bump mkr to latest (by astj) - -* Mon Nov 26 2018 - 0.58.1 -- Fix disk metrics for Linux kernel 4.19 (by itchyny) - -* Mon Nov 12 2018 - 0.58.0 -- To work in BusyBox (by Songmu) -- [incompatible] CollectDfValues only from local file systems on linux (by Songmu) - -* Fri Sep 14 2018 - 0.57.0 -- update Code Signing Certificate. (by hayajo) -- Build with Go 1.11 (by astj) -- [darwin] Fix iostat output parsing in CPU usage generator (by itchyny) -- [darwin] fix filesystem metrics for APFS vm partition volume (by itchyny) -- add loadavg1 and loadavg15 (by itchyny) - -* Thu Aug 30 2018 - 0.56.1 -- Do HTTP retry on determining cloud platform and suggesting customIdentifier (by astj) -- [windows] Add timeout to WMI query for disk metrics (by astj) - -* Wed Jul 25 2018 - 0.56.0 -- Fix starting order of Windows Service (by mattn) -- Auto retire with shutdown on Windows (by mattn) -- Use RunWithEnv instead of os.Setenv to avoid environment variable races (by itchyny) -- Improve debug messages for check monitoring actions (by itchyny) -- add mssql-plugin in windows msi (by daiksy) -- Replace GCE metadata endpoint with absolute FQDN (by i2tsuki) - -* Wed Jun 20 2018 - 0.55.0 -- improve PATH handling (by astj) -- Build with Go 1.10 (by astj) - -* Wed Mar 28 2018 - 0.54.1 -- Support UUID in little-endian format on EC2 detection (by hayajo) -- change the message level from WARNING to INFO when customIdentifier is not registered (by hayajo) - -* Tue Mar 20 2018 - 0.54.0 -- fix isEC2 (by Songmu) -- care `MemAvailable` in collecting metrics around memory on linux (by Songmu) - -* Thu Mar 15 2018 - 0.53.0 -- Stop collecting memory.available for now (by Songmu) -- omit `/Volumes/` from collected `df` values on darwin (by Songmu) -- Enhance diagnostic mode (by Songmu) -- Fix EC2 check for KVM based EC2 instance (e.g. c5 instance) (by hayajo) - -* Thu Mar 01 2018 - 0.52.1 -- context support in cmdutil (by Songmu) -- Improve error handling when executing commands (by Songmu) -- extend timeout for retrieving cloud metadata (by hayajo) - -* Thu Feb 08 2018 - 0.52.0 -- Refine metrics collector (by mechairoi) -- Add `memo` option to check plugin config (by mechairoi) - -* Tue Jan 23 2018 - 0.51.0 -- Fix metric values of pagefile total and pagefile free on Windows (by itchyny) -- update rpm-v2 task for building Amazon Linux 2 package (by hayajo) -- Care plugins that handle timeout signal(SIGTERM) (by Songmu) - -* Mon Jan 15 2018 - 0.50.1 -- Add mkr to dependencies to include it into windows msi (by shibayu36) - -* Mon Jan 15 2018 - 0.50.0 -- use supervisor mode in sysvinit script for crash recovery (by Songmu) -- include mkr into windows msi (by Songmu) -- pass returned value from command.RunOnce so that `mackerel-agent onceā€¦ (by astj) - -* Wed Jan 10 2018 - 0.49.0 -- cut out `cmdutil` package from `util` and interface adjustment (by Songmu) -- Ignore connection configurations in mackerel-agent.conf (by itchyny) -- fix error check in TestStart of start_test.go (by Ken2mer) -- [fix] `action` command in `checks` is able to have an individual timeout settings (by Songmu) -- Add an option of timeout duration for executing command (by taku-k) -- Adjust appveyor.yml (by Songmu) -- introduce goxz (by Songmu) -- using os.Executable() for getting executable path on windows environment (by Songmu) -- include commands_gen.go in repo for go-gettability (by Songmu) -- Ignore veth in network I/O metrics on Linux. (Docker creats a lot) (by hayajo) -- Ignore device-mapper in disk I/O metrics on Linux. (Docker creats a lot) (by hayajo) -- Ignore devicemapper (by hayajo) -- Ignore empty hostid file (by astj) -- add check-uptime.exe on msi (by Songmu) -- fix the retry of check reports (by hayajo) - -* Wed Dec 20 2017 - 0.48.2 -- Fix network interface spec collector on Windows (by itchyny) - -* Wed Dec 13 2017 - 0.48.1 -- fix a bug when action of check-plugin was not specified (by hayajo) - -* Tue Dec 12 2017 - 0.48.0 -- Set environment variables for plugins (by hayajo) -- Add an option to declare cloud platform explicitly (by astj) - -* Tue Nov 28 2017 - 0.47.3 -- Fix interface metrics of large counter values on Linux (by itchyny) -- Refine license notice (by itchyny) -- Improve plugin command parsing error message (by itchyny) -- Log stderr and err of check action (by mechairoi) -- Commonize interface generators for Linux, Darwin and add support for BSD systems (by itchyny) - -* Thu Nov 09 2017 - 0.47.2 -- Use go 1.9.2 (by astj) -- Commonize loadavg5 generators for Linux, Darwin and BSD systems (by itchyny) -- Change log level in device generator if /sys/block does not exist (by itchyny) - -* Thu Oct 26 2017 - 0.47.1 -- Use go-osstat library on linux (by itchyny) - -* Thu Oct 19 2017 - 0.47.0 -- Trigger action command after check plugin running. (by mechairoi) -- Ensure returned value of retrieveAzureVMMetadata is not null (by astj) -- Use go-osstat library on darwin (by itchyny) -- Subtract cpu.guest from cpu.user on Linux (by itchyny) -- Improve kernel spec generator performance for Linux (by itchyny) -- Improve implementation for memory spec on Linux (by itchyny) -- Do not send too many reports in one API request. (by astj) - -* Wed Oct 04 2017 - 0.46.0 -- Use new API BaseURL (by astj) -- Filter plugin metrics value by include_pattern and exclude_pattern option (by astj) - -* Wed Sep 27 2017 - 0.45.0 -- build with Go 1.9 (by astj) - -* Wed Aug 30 2017 - 0.44.2 -- Change the log level for failure of posting metric values (by itchyny) -- Show CPU/SoC model name on Linux/MIPS (by hnw) - -* Wed Aug 23 2017 - 0.44.1 -- Fail to start when custom identifiers are mismatched (by mechairoi) -- Fix the Azure VM check (by stefafafan) -- Adjust the Azure Virtual Machine metadata keys (by stefafafan) - -* Wed Jul 26 2017 - 0.44.0 -- Adjust isEC2 check (by stefafafan) -- Support Azure VM Metadata (by stefafafan) -- FreeBSD: don't collect nullfs disk stat (by kyontan) -- Improve the EC2 Instance check (by stefafafan) - -* Wed Jun 14 2017 - 0.43.2 -- Revert "Enable HTTP/2" (by Songmu) -- [refactoring] remove version package and adjust internal dependencies (by Songmu) - -* Wed May 17 2017 - 0.43.1-1 -- rename command.Context to command.App (by Songmu) -- Add `prevent_alert_auto_close` option for check plugins (by mechairoi) -- Remove supported OS section from README. (by astj) - -* Tue May 09 2017 - 0.43.0-1 -- Use DiskReadsPerSec/DiskWritesPerSec instead of DiskReadBytesPersec/DiskWriteBytesPersec (on Windows) (by mattn) -- Enable HTTP/2 (by astj) - -* Thu Apr 27 2017 - 0.42.3-1 -- Output error logs of mackerel-agent as warning log of windows event log (by Songmu) - -* Wed Apr 19 2017 - 0.42.2-1 -- Adjust config package (by Songmu) -- use CRLF in mackerel-agent.conf on windows (by Songmu) - -* Tue Apr 11 2017 - 0.42.1-1 -- LC_ALL=C on initialization (by Songmu) - -* Thu Apr 06 2017 - 0.42.0-1 -- Logs that are not via the mackerel-agent's logger are also output to the eventlog (by Songmu) -- Change package License to Apache 2.0 (by astj) -- Release systemd deb packages to github releases (by astj) -- Change systemd deb package architecture to amd64 (by astj) - -* Mon Mar 27 2017 - 0.41.3-1 -- build with Go 1.8 (by astj) -- [EXPERIMENTAL] Add systemd support for deb packages (by astj) -- Timeout for command execution on Windows (by mattn) -- It need to read output from command continuously. (by mattn) -- remove util/util_windows.go and commonalize util.RunCommand (by Songmu) - -* Wed Mar 22 2017 - 0.41.2-1 -- Don't raise error when creating pidfile if the contents of pidfile is same as own pid (by Songmu) -- Exclude _tools from package (by itchyny) -- Add workaround for docker0 interface in docker-enabled Travis (by astj) - -* Thu Mar 09 2017 - 0.41.1-1 -- add check-tcp on pluginlist.txt (by daiksy) - -* Tue Mar 07 2017 - 0.41.0-1 -- [EXPERIMENTAL] systemd support for CentOS 7 (by astj) -- add `supervise` subcommand (supervisor mode) (by Songmu) -- Build RPM packages with Docker (by astj) -- run test with -race in CI (by haya14busa) -- Use hw.physmem64 instead of hw.physmem in NetBSD (by miwarin, astj) -- Build RPM files on CentOS5 on Docker (by astj) -- Keep environment variables when Agent runs commands with sudo (by astj) -- Release systemd RPMs to github releases (by astj) -- Fix disk metrics on Windows (by mattn) - -* Wed Feb 22 2017 - 0.40.0-1 -- support metadata plugins in configuration (by itchyny) -- Add metadata plugin feature (by itchyny) -- Use Named Result Parameters as document (by haya14busa) -- Set large number of file descriptors for the safety sake in init scripts (by Songmu) -- Improve darwin cpu spec (by astj) -- Fix format verb: use '%v' (by haya14busa) - -* Wed Feb 08 2017 - 0.39.4-1 -- prepare windows eventlog (by daiksy) -- Refactor plugin configurations (by itchyny) -- Execute less `go build`s on deploy (by astj) -- treat xmlns (by mattn) -- Fix xmlns (by mattn) - -* Wed Jan 25 2017 - 0.39.3-1 -- Fix segfault when loading a bad config file (by hanazuki) -- fix windows eventlog level when "verbose=true" (by daiksy) - -* Mon Jan 16 2017 - 0.39.2-1 -- Test wix/pluginlist.txt on AppVeyor ci (by astj) -- Revert "remove windows plugins on pluginslist" (by daiksy) - -* Thu Jan 12 2017 - 0.39.1-1 -- support filesystems.Ignore on windows (by Songmu) -- remove windows plugins on pluginslist (by daiksy) - -* Wed Jan 11 2017 - 0.39.0-1 -- implement `pluginGenerators` for windows (by daiksy) -- add check-windows-eventlog on pluginlist (by daiksy) -- Remove duplicated generator in Windows (by astj) -- add mackerel-plugin-windows-server-sessions on pluginlist (by daiksy) - -* Wed Dec 21 2016 - 0.38.0-1 -- fix typo (by ts-3156) -- Add Copyright (by yuuki) -- Separate interfaceGenerator from specGenerators (by motemen) -- Timout http reuquest in 30 sec (requries go 1.3) (by hakobe) -- specify command arguments in mackerel-agent.conf (by Songmu) -- several improvements for Windows (by daiksy) -- Avoid time.Tick and use time.NewTicker instead (by haya14busa) - -* Tue Nov 29 2016 - 0.37.1-1 -- fix pluginlist (by daiksy) -- Suppress ec2 metadata warnings (by itchyny) -- Uncapitalize error messages (by itchyny) - -* Thu Oct 27 2016 - 0.37.0-1 -- improve Windows support (by daiksy) - -* Tue Oct 18 2016 - 0.36.0-1 -- don't use HTTP_PROXY when requesting cloud instance metadata APIs (by Songmu) -- Add an option to output filesystem-related metrics with key by mountpoint (by astj) - -* Thu Sep 29 2016 - 0.35.1-1 -- support MACKEREL_PLUGIN_WORKDIR in init scripts (by Songmu) -- Add platform metadata for Darwin (by astj) -- Disable http2 for now (by Songmu) - -* Wed Sep 07 2016 - 0.35.0-1 -- built with Go 1.7 (by Songmu) -- remove `func (vs *Values) Merge(other Values)` (by Songmu) -- [incompatible] consider df (used + available) as size of filesystem (by Songmu) -- Remove DigitalOcean related comment/definition from spec/cloud.go (by astj) -- Fix golint is not working on ci, and add some comment to pass golint (by astj) -- Add linux distribution information to kernel spec (by ak1t0) -- http_proxy configuration (by Songmu) -- set PATH and LANG only in unix environment (by Songmu) -- Ignore docker mapper storage in spec as well (by itchyny) - -* Thu Aug 18 2016 - 0.34.0-1 -- Reduce retry count on finding a host by the custom identifier (by itchyny) -- suppress checker flooding when resuming from sleep mode (by Songmu) -- truncate checker message up to 1024 characters (by Songmu) -- commonalize spec.FilesystemGenerator around unix OSs (by Songmu) -- define type DfStat, remove dfColumnSpecs and refactor (by Songmu) - -* Mon Aug 08 2016 - 0.33.0-1 -- Fill the customIdentifier in EC2 (by itchyny) - -* Thu Jul 14 2016 - 0.32.2-1 -- fix GOMAXPROCS to 1 for avoiding rare panics (by Songmu) - -* Thu Jul 07 2016 - 0.32.1-1 -- Add user for executing a plugin (by y-kuno) - -* Thu Jun 30 2016 - 0.32.0-1 -- Added plugin check interval option (by karupanerura) - -* Thu Jun 23 2016 - 0.31.2-1 -- Refactor around metrics/linux/memory (by Songmu) -- Don't stop mackerel-agent process on upgrading by debian package (by karupanerura) -- add `silent` configuration key for suppressing log output (by Songmu) -- change log level ERROR to WARNING in spec/spec.go (by Songmu) -- remove /usr/local/bin from sample.conf (by Songmu) - -* Wed May 25 2016 - 0.31.0-1 -- Post the custom metrics to the hosts specified by custom identifiers (by itchyny) -- refactor FilesystemGenerator (by Songmu) -- Refactor metrics/linux/interface.go (by Songmu) -- remove regexp from spec/linux/cpu (by Songmu) -- Fix missing printf args (by shogo82148) - -* Tue May 10 2016 - 0.30.4-1 -- Recover from panic while processing generators (by stanaka) -- check length of cols just to be safe in metrics/linux/disk.go (by Songmu) - -* Mon May 02 2016 - 0.30.3-1 -- Remove usr local bin again (by Songmu) -- Fix typo (by yukiyan) -- Fix comments (by stefafafan) -- Remove go get cmd/vet (by itchyny) -- retry retirement when api request failed (by Songmu) -- output plugin stderr to log (by Songmu) - -* Fri Apr 08 2016 - 0.30.5-1 -- Feature some3 (by stanaka) - -* Fri Apr 08 2016 - 0.30.4-1 -- update (by stanaka) -- update (by stanaka) -- Feature some2 (by stanaka) -- update (by stanaka) - -* Fri Apr 08 2016 - 0.30.3-1 -- update README.md (by stanaka) -- update (by stanaka) - -* Fri Mar 25 2016 - 0.30.2-1 -- Revert "Merge pull request #211 from mackerelio/usr-bin" (by Songmu) - -* Fri Mar 25 2016 - 0.30.1-1 -- deprecate /usr/local/bin (by Songmu) -- use GOARCH=amd64 for now (by Songmu) - -* Thu Mar 17 2016 - 0.30.0-1 -- remove uptime metrics generator (by Songmu) -- Remove deprecated-sensu feature (by Songmu) -- Send all IP addresses of each interface (linux only) (by mechairoi) -- add `init` subcommand (by Songmu) -- Refactor net interface (multi ip support and bugfix) (by Songmu) -- Stop to fetch flags of cpu in spec/linux/cpu (by Songmu) - -* Mon Mar 07 2016 - 0.29.2-1 -- Don't overwrite mackerel-agent.conf when updating deb package (Fix deb packaging) (by Songmu) - -* Fri Mar 04 2016 - 0.29.1-1 -- maintenance release - -* Wed Mar 02 2016 - 0.29.0-1 -- remove deprecated command line options (-version and -once) (by Songmu) -- Report checker execution timeout as Unknown status (by hanazuki) - -* Thu Feb 18 2016 - 0.28.1-1 -- fix the exit status on stopping the agent in the init script of debian (by itchyny) - -* Thu Feb 04 2016 - 0.28.0-1 -- add a configuration to ignore filesystems (by stanaka) -- fix the code of extending the process's environment (by itchyny) -- s{code.google.com/p/winsvc}{golang.org/x/sys/windows/svc} (by Songmu) -- Max check attempts option for check plugin (by mechairoi) - -* Fri Jan 08 2016 - 0.27.1-1 -- [bugfix] fix timeout interval when calling `df` (by Songmu) - -* Wed Jan 06 2016 - 0.27.0-1 -- use timeout when calling `df` (by Songmu) -- Notification Interval for check monitoring (by itchyny) - -* Thu Dec 10 2015 - 0.26.2-1 -- output success message to stderr when configtest succeed (by Songmu) - -* Wed Dec 09 2015 - 0.26.1-1 -- fix deprecate message (by Songmu) - -* Tue Dec 08 2015 - 0.26.0-1 -- Make HostID storage replacable (by motemen) -- Publicize command.Context's fields (by motemen) -- Configtest (by fujiwara) -- Refactor config loading and check if Apikey exists in configtest (by Songmu) -- fix exit status of debian init script. (by fujiwara) -- Deprecate version and once option (by Songmu) - -* Wed Nov 25 2015 - 0.25.1-1 -- Go 1.5.1 (by Songmu) -- logging STDERR of checker command (by Songmu) - -* Thu Nov 12 2015 - 0.25.0-1 -- Retrieve interfaces on Darwin (by itchyny) -- add NetBSD support. (by miwarin) - -* Thu Nov 05 2015 - 0.24.1-1 -- We are Mackerel (by itchyny) - -* Mon Oct 26 2015 - 0.24.0-1 -- define config.agentName and set proper config path (by Songmu) -- /proc/cpuinfo parser for old ARM Linux kernels (by hanazuki) -- os.MkdirAll() before creating pidfile (by Songmu) - -* Wed Sep 30 2015 - 0.23.1-1 -- Code signing for windows installer (by mechairoi) - -* Mon Sep 14 2015 - 0.23.0-1 -- send check monitor report to server when check script failed even if the monitor result is not changed (by Songmu) -- Correct sample nginx comment. (by kamatama41) - -* Wed Sep 02 2015 - 0.22.0-1 -- add `reload` to init scripts (by Songmu) - -* Wed Sep 02 2015 - 0.21.0-1 -- Exclude mkr binary from deb/rpm package (by Sixeight) - -* Thu Aug 13 2015 - 0.20.1-1 -- use C struct for accessing Windows APIs (by stanaka) -- Fix bug that checks is not removed when no checks. (by Sixeight) - -* Wed Jul 29 2015 - 0.20.0-1 -- support subcommand (by Songmu) -- remove trailing newline chars when loading hostID (by Songmu) -- add sub-command `retire` and support $AUTO_RETIREMENT in initd (by Songmu) -- add postinst to register mackerel-agent to start-up (deb package) (by stanaka) -- bump bundled mkr version to 0.3.1 (by Songmu) - -* Wed Jul 22 2015 - 0.19.0-1 -- Support gce meta (by Songmu) -- Valid pidfile handling (fix on darwin) (by Songmu) -- -once only takes one second (by Songmu) -- fix shutdown priority in rpm/src/mackerel-agent.initd (by Songmu) - -* Thu Jul 16 2015 - 0.18.1-1 -- s/ami_id/ami-id/ in spec/cloud.go (by Songmu) -- remove `UpdateHost()` process from `prepareHost()` for simplicity (by Songmu) -- filter invalid roleFullNames with warning logs (by Songmu) -- allow using spaces as delimiter for custom metric values (by Songmu) - -* Wed Jul 08 2015 - 0.18.0-1 -- Retry in prepare (by Songmu) -- [WORKAROUND] downgrade golang version for windows (by Sixeight) - -* Wed Jun 17 2015 - 0.17.1-1 -- Update to go 1.4.2 for windows build (by mechairoi) - -* Wed Jun 10 2015 - 0.17.0-1 -- Set `displayName` via agent (by Sixeight) -- refactoring around api access (by Songmu) -- Configurable host status on start/stop agent (by Songmu) -- Add an agent memory usage metrics generator for diagnostic use (by hakobe) -- Add mkr to deb/rpm package (by Sixeight) - -* Tue May 12 2015 - 0.16.1-1 -- Code sharing around dfValues (by Songmu) -- [FreeBSD] Fix 'panic: runtime error: index out of range'. (by iwadon) -- separete out metrics/darwin/swap.go from memory.go (by Songmu) - -* Fri May 08 2015 - 0.16.0-1 -- suppress logging (by stanaka) -- "Check" functionality (by motemen) -- update for windows (by daiksy) -- collect memory metrics of osx (by Songmu) -- Send plugin.check._name_s list on `updateHost` (by mechairoi) - -* Thu Apr 02 2015 - 0.15.0-1 -- building packages (by Songmu) -- Only skip device mapper created by docker (Resolve #70) (by mechairoi) -- Run once and output results to stdout (by stanaka) -- introduce Songmu/timeout for interrupting long time plugin execution (by Songmu) -- add config.apibase (by Songmu) -- output GOOS GOARCH runtime.Version() when -version option is specified (by Songmu) -* Mon Mar 23 2015 Songmu 0.14.3-1 -- [enhancement] add collector for ec2 metadata (stanaka) -* Tue Jan 20 2015 Songmu 0.14.1-1 -- [fix] skip device mapper metrics -- [fix] filter invalid float values -- [enhancement] testing -- [enhancement] collect more metrics about darwin and freebsd -* Thu Dec 25 2014 Songmu 0.14.0-1 -- [improve] wait for termination until postQueue is empty up to 30 seconds. -- [improve] wait up to 30 seconds before initial posting -- [feature] work on Windows darwin FreeBSD (unofficial support) -* Tue Nov 18 2014 y_uuki 0.13.0-1 -- [feature] Support `-version` flag -- [improve] Do bulk posting metrics when retrying metrics sending -- [feature] Support darwin -* Wed Oct 1 2014 skozawa 0.12.3-1 -- [fix] Fixed index out of rage for diskstats -- [improve] Update hostname on updating host specs -* Tue Sep 16 2014 y_uuki 0.12.2-3 -- [fix] Add validation if pidfile is invalid -* Mon Sep 8 2014 skozawa 0.12.2-2 -- [fix] Add a process name to killproc -* Fri Sep 5 2014 skozawa 0.12.2-1 -- [fix] change retry and dequeue delay time -* Thu Aug 21 2014 motemen 0.12.1-1 -- Extended retry queue -* Tue Aug 19 2014 motemen 0.12.0-1 -- [breaking] Changed custom metric plugins' meta information format to JSON instead of TOML -- [feature] Added filesystem metrics -* Wed Aug 6 2014 motemen 0.11.1-1 -- [fix] Fixed non-critical log message when plugin meta loading -* Wed Aug 6 2014 motemen 0.11.0-1 -- [feature] Including config files with 'include' key -* Tue Aug 5 2014 motemen 0.10.1-1 -- [fix] Fixed issue that environment variable was not set -* Tue Aug 5 2014 motemen 0.10.0-1 -- [feature] Added support for custom metric schemata -* Wed Jul 9 2014 skozawa 0.9.0-2 -- [fix] Removed unused metrics #20 -- [feature] Add configurations for posting metrics #19 -- [fix] Prevent exiting without cleaning pidfile #18 -* Tue Jun 24 2014 hakobe 0.8.0-1 -- [improve] Using go 1.3 -- [feature] Periodically update host specs #15 -- [fix] Http request now have timeout #17 -* Fri Jun 6 2014 motemen 0.7.0-1 -- [fix] Replace invalid characters (e.g. '.') in disk and interface names with underscores -- [fix] Removed deprecated metrics -* Fri May 23 2014 hakobe 0.6.1-1 -- [breaking change] Automatically add 'custom.' prefix to the name of custom metrics -- [change] Change the key to configure custom metrics from "sensu.checks." to "plugin.metrics." in the config file -- [improve] More friendly and consistent error messages -- [fix] Change the permission of /var/lib/mackerel-agent directory to 755 -- [fix] Change the permission of /etc/init.d/mackerel-agent to 755 -* Wed May 14 2014 motemen 0.5.1-3 -- [fix] Fixed init script not to use APIKEY if empty -* Tue May 13 2014 motemen 0.5.1-2 -- Updated version string -* Tue May 13 2014 motemen 0.5.1-1 -- [improve] Warn and exit on startup if no API key given -- [fix] Support parsing large disk sizes -- [fix] Trap SIGHUP not to die -- [fix] Continue running even if failed to collect host specs -- [fix] Use binaries under /sbin/ and /bin/ to generate specs/metrics -* Thu May 8 2014 hakobe 0.5.0-1 -- [improve] Verbose option now prints debug information -- [misc] Changed license from Test-use only to Commercial -* Wed May 7 2014 hakobe 0.4.3-1 -- [fix] Changed sleep time for buffered requests -* Wed Apr 30 2014 hakobe 0.4.2-1 -- [fix] Fixed a memory leak when metrics collection unexpectedly blocked -* Mon Apr 28 2014 mechairoi 0.4.1-1 -- [fix] Fixed a crash when increasing or decreasing disks or interfaces -* Fri Apr 25 2014 skozawa 0.4.0-1 -- [improve] Change interval for disk, cpu and interface metrics -* Wed Apr 23 2014 hakobe 0.3.0-2 -- [fix] Exclude log files from package -- [fix] Remove an unncecessary setting sample -* Tue Apr 22 2014 mechairoi 0.3.0-1 -- [improve] Update interfaces information each start -- [improve] Set nice 'User-Agent' header -- [improve] Add 'memory.used' metrics -- [improve] Execute sensu command through 'sh -c' -- [fix] Fix interval of collecting metrics -- [fix] Fix crashes when collecting disk usage -* Thu Apr 17 2014 skozawa 0.2.0-2 -- Fix config file comments -* Wed Apr 16 2014 motemen 0.2.0-1 -- [feature] Add support for sensu plugins -- [feature] Buffer metric values in case of request error -* Wed Apr 9 2014 motemen 0.1.1-2 -- Add mackerel-agent.conf -- Use 32-bit binary -* Wed Apr 9 2014 mechairoi 0.1.1-1 -- New features -* Fri Apr 4 2014 hakobe932 0.1.0-1 -- New features -* Tue Mar 31 2014 y_uuki 0.0.2-2 -- Add logrotate. -* Tue Mar 25 2014 y_uuki 0.0.2-1 -- New features. -* Fri Mar 7 2014 y_uuki 0.0.1-1 -- Initial spec. From a237b24dfc3e26849f3d1af9abb8fc97e1024d4e Mon Sep 17 00:00:00 2001 From: yseto Date: Mon, 7 Aug 2023 15:25:29 +0900 Subject: [PATCH 4/7] for debug --- .github/workflows/go.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index 34e96d0de..b3ebcdda2 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -59,7 +59,7 @@ jobs: name: Build (Linux) runs-on: ubuntu-latest needs: test-linux - if: github.ref == 'refs/heads/master' || startsWith(github.ref, 'refs/tags/v') +# if: github.ref == 'refs/heads/master' || startsWith(github.ref, 'refs/tags/v') env: DEBIAN_FRONTEND: noninteractive steps: From 6171c1528a1551b664e7b4c1c956e086c25527ab Mon Sep 17 00:00:00 2001 From: yseto Date: Mon, 7 Aug 2023 16:22:59 +0900 Subject: [PATCH 5/7] remove BUILD_SYSTEMD env --- Makefile | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/Makefile b/Makefile index 6e48e909b..5fab0b1db 100644 --- a/Makefile +++ b/Makefile @@ -110,12 +110,12 @@ rpm-v2: rpm-v2-x86 rpm-v2-arm .PHONY: rpm-v2-x86 rpm-v2-x86: crossbuild-package - BUILD_SYSTEMD=1 MACKEREL_AGENT_NAME=$(MACKEREL_AGENT_NAME) _tools/packaging/prepare-rpm-build.sh + MACKEREL_AGENT_NAME=$(MACKEREL_AGENT_NAME) _tools/packaging/prepare-rpm-build.sh docker run --rm -v "$(PWD)":/workspace -v "$(PWD)/rpmbuild":/rpmbuild mackerel/docker-mackerel-rpm-builder:c7 \ --define "_sourcedir /workspace/packaging/rpm-build/src" --define "_builddir /workspace/build-linux-amd64" \ --define "_version ${VERSION}" --define "buildarch x86_64" --target x86_64 --define "dist .el7.centos" \ -bb packaging/rpm-build/$(MACKEREL_AGENT_NAME).spec - BUILD_SYSTEMD=1 MACKEREL_AGENT_NAME=$(MACKEREL_AGENT_NAME) _tools/packaging/prepare-rpm-build.sh + MACKEREL_AGENT_NAME=$(MACKEREL_AGENT_NAME) _tools/packaging/prepare-rpm-build.sh docker run --rm -v "$(PWD)":/workspace -v "$(PWD)/rpmbuild":/rpmbuild mackerel/docker-mackerel-rpm-builder:c7 \ --define "_sourcedir /workspace/packaging/rpm-build/src" --define "_builddir /workspace/build-linux-amd64" \ --define "_version ${VERSION}" --define "buildarch x86_64" --target x86_64 --define "dist .amzn2" \ @@ -123,12 +123,12 @@ rpm-v2-x86: crossbuild-package .PHONY: rpm-v2-arm rpm-v2-arm: crossbuild-package - BUILD_SYSTEMD=1 MACKEREL_AGENT_NAME=$(MACKEREL_AGENT_NAME) _tools/packaging/prepare-rpm-build.sh + MACKEREL_AGENT_NAME=$(MACKEREL_AGENT_NAME) _tools/packaging/prepare-rpm-build.sh docker run --rm -v "$(PWD)":/workspace -v "$(PWD)/rpmbuild":/rpmbuild mackerel/docker-mackerel-rpm-builder:c7 \ --define "_sourcedir /workspace/packaging/rpm-build/src" --define "_builddir /workspace/build-linux-arm64" \ --define "_version ${VERSION}" --define "buildarch aarch64" --target aarch64 --define "dist .el7.centos" \ -bb packaging/rpm-build/$(MACKEREL_AGENT_NAME).spec - BUILD_SYSTEMD=1 MACKEREL_AGENT_NAME=$(MACKEREL_AGENT_NAME) _tools/packaging/prepare-rpm-build.sh + MACKEREL_AGENT_NAME=$(MACKEREL_AGENT_NAME) _tools/packaging/prepare-rpm-build.sh docker run --rm -v "$(PWD)":/workspace -v "$(PWD)/rpmbuild":/rpmbuild mackerel/docker-mackerel-rpm-builder:c7 \ --define "_sourcedir /workspace/packaging/rpm-build/src" --define "_builddir /workspace/build-linux-arm64" \ --define "_version ${VERSION}" --define "buildarch aarch64" --target aarch64 --define "dist .amzn2" \ @@ -136,13 +136,13 @@ rpm-v2-arm: crossbuild-package .PHONY: deb deb: crossbuild-package - BUILD_DIRECTORY=build-linux-amd64 BUILD_SYSTEMD=1 MACKEREL_AGENT_NAME=$(MACKEREL_AGENT_NAME) _tools/packaging/prepare-deb-build.sh + BUILD_DIRECTORY=build-linux-amd64 MACKEREL_AGENT_NAME=$(MACKEREL_AGENT_NAME) _tools/packaging/prepare-deb-build.sh cd packaging/deb-build && debuild --no-tgz-check -rfakeroot -uc -us - BUILD_DIRECTORY=build-linux-arm64 BUILD_SYSTEMD=1 MACKEREL_AGENT_NAME=$(MACKEREL_AGENT_NAME) _tools/packaging/prepare-deb-build.sh + BUILD_DIRECTORY=build-linux-arm64 MACKEREL_AGENT_NAME=$(MACKEREL_AGENT_NAME) _tools/packaging/prepare-deb-build.sh cd packaging/deb-build && debuild --no-tgz-check -rfakeroot -uc -us -aarm64 - BUILD_DIRECTORY=build-linux-mips BUILD_SYSTEMD=1 MACKEREL_AGENT_NAME=$(MACKEREL_AGENT_NAME) _tools/packaging/prepare-deb-build.sh + BUILD_DIRECTORY=build-linux-mips MACKEREL_AGENT_NAME=$(MACKEREL_AGENT_NAME) _tools/packaging/prepare-deb-build.sh cd packaging/deb-build && debuild --no-tgz-check -rfakeroot -uc -us -amips - BUILD_DIRECTORY=build-linux-armhf BUILD_SYSTEMD=1 MACKEREL_AGENT_NAME=$(MACKEREL_AGENT_NAME) _tools/packaging/prepare-deb-build.sh + BUILD_DIRECTORY=build-linux-armhf MACKEREL_AGENT_NAME=$(MACKEREL_AGENT_NAME) _tools/packaging/prepare-deb-build.sh cd packaging/deb-build && debuild --no-tgz-check -rfakeroot -uc -us -aarmhf .PHONY: rpm-kcps @@ -150,7 +150,7 @@ rpm-kcps: rpm-kcps-v2 .PHONY: rpm-kcps-v2 rpm-kcps-v2: crossbuild-package-kcps - BUILD_SYSTEMD=1 MACKEREL_AGENT_NAME=mackerel-agent-kcps _tools/packaging/prepare-rpm-build.sh + MACKEREL_AGENT_NAME=mackerel-agent-kcps _tools/packaging/prepare-rpm-build.sh docker run --rm -v "$(PWD)":/workspace -v "$(PWD)/rpmbuild":/rpmbuild mackerel/docker-mackerel-rpm-builder:c7 \ --define "_sourcedir /workspace/packaging/rpm-build/src" --define "_builddir /workspace/build-linux-amd64" \ --define "_version ${VERSION}" --define "buildarch x86_64" --target x86_64 --define "dist .el7.centos" \ @@ -158,7 +158,7 @@ rpm-kcps-v2: crossbuild-package-kcps .PHONY: deb-kcps deb-kcps: crossbuild-package-kcps - MACKEREL_AGENT_NAME=mackerel-agent-kcps BUILD_SYSTEMD=1 BUILD_DIRECTORY=build-linux-amd64 _tools/packaging/prepare-deb-build.sh + MACKEREL_AGENT_NAME=mackerel-agent-kcps BUILD_DIRECTORY=build-linux-amd64 _tools/packaging/prepare-deb-build.sh cd packaging/deb-build && debuild --no-tgz-check -rfakeroot -uc -us .PHONY: rpm-stage @@ -166,7 +166,7 @@ rpm-stage: rpm-stage-v2 .PHONY: rpm-stage-v2 rpm-stage-v2: crossbuild-package-stage - BUILD_SYSTEMD=1 MACKEREL_AGENT_NAME=mackerel-agent-stage _tools/packaging/prepare-rpm-build.sh + MACKEREL_AGENT_NAME=mackerel-agent-stage _tools/packaging/prepare-rpm-build.sh docker run --rm -v "$(PWD)":/workspace -v "$(PWD)/rpmbuild":/rpmbuild mackerel/docker-mackerel-rpm-builder:c7 \ --define "_sourcedir /workspace/packaging/rpm-build/src" --define "_builddir /workspace/build-linux-amd64" \ --define "_version ${VERSION}" --define "buildarch x86_64" --target x86_64 --define "dist .el7.centos" \ @@ -174,7 +174,7 @@ rpm-stage-v2: crossbuild-package-stage .PHONY: deb-stage deb-stage: crossbuild-package-stage - MACKEREL_AGENT_NAME=mackerel-agent-stage BUILD_SYSTEMD=1 BUILD_DIRECTORY=build-linux-amd64 _tools/packaging/prepare-deb-build.sh + MACKEREL_AGENT_NAME=mackerel-agent-stage BUILD_DIRECTORY=build-linux-amd64 _tools/packaging/prepare-deb-build.sh cd packaging/deb-build && debuild --no-tgz-check -rfakeroot -uc -us tgz_dir = "build/tgz/$(MACKEREL_AGENT_NAME)" From 79e7d6c651bf97b89db834523c51d959c16f3431 Mon Sep 17 00:00:00 2001 From: yseto Date: Mon, 7 Aug 2023 16:23:33 +0900 Subject: [PATCH 6/7] remove BUILD_SYSTEMD env from prepare-deb-build.sh --- _tools/packaging/prepare-deb-build.sh | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/_tools/packaging/prepare-deb-build.sh b/_tools/packaging/prepare-deb-build.sh index f148ed0dc..811598f25 100755 --- a/_tools/packaging/prepare-deb-build.sh +++ b/_tools/packaging/prepare-deb-build.sh @@ -8,13 +8,9 @@ pwd=`dirname $0` MACKEREL_AGENT_NAME=${MACKEREL_AGENT_NAME:-mackerel-agent} BUILD_DIRECTORY=${BUILD_DIRECTORY:-build} -orig_dir="packaging/deb" +orig_dir="packaging/deb-systemd" build_dir="packaging/deb-build" -if [ "$BUILD_SYSTEMD" != "" ]; then - orig_dir="packaging/deb-systemd" -fi - MACKEREL_AGENT_VERSION=$(grep -o -e "[0-9]\+.[0-9]\+.[0-9]\+-[0-9]" "$orig_dir/debian/changelog" | head -1 | sed 's/-.*$//') rm -rf "$build_dir" From a517642721af3978c6e146df016739be1495c362 Mon Sep 17 00:00:00 2001 From: yseto Date: Wed, 16 Aug 2023 11:28:21 +0900 Subject: [PATCH 7/7] Revert "for debug" This reverts commit a237b24dfc3e26849f3d1af9abb8fc97e1024d4e. --- .github/workflows/go.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index b3ebcdda2..34e96d0de 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -59,7 +59,7 @@ jobs: name: Build (Linux) runs-on: ubuntu-latest needs: test-linux -# if: github.ref == 'refs/heads/master' || startsWith(github.ref, 'refs/tags/v') + if: github.ref == 'refs/heads/master' || startsWith(github.ref, 'refs/tags/v') env: DEBIAN_FRONTEND: noninteractive steps: