[arch-commits] Commit in grafana-agent/repos/community-x86_64 (8 files)
Daurnimator
daurnimator at gemini.archlinux.org
Fri Jan 14 03:07:40 UTC 2022
Date: Friday, January 14, 2022 @ 03:07:39
Author: daurnimator
Revision: 1103135
archrelease: copy trunk to community-x86_64
Added:
grafana-agent/repos/community-x86_64/PKGBUILD
(from rev 1103134, grafana-agent/trunk/PKGBUILD)
grafana-agent/repos/community-x86_64/grafana-agent.service
(from rev 1103134, grafana-agent/trunk/grafana-agent.service)
grafana-agent/repos/community-x86_64/grafana-agent.sysusers
(from rev 1103134, grafana-agent/trunk/grafana-agent.sysusers)
grafana-agent/repos/community-x86_64/grafana-agent.tmpfiles
(from rev 1103134, grafana-agent/trunk/grafana-agent.tmpfiles)
Deleted:
grafana-agent/repos/community-x86_64/PKGBUILD
grafana-agent/repos/community-x86_64/grafana-agent.service
grafana-agent/repos/community-x86_64/grafana-agent.sysusers
grafana-agent/repos/community-x86_64/grafana-agent.tmpfiles
------------------------+
PKGBUILD | 152 +++++++++++++++++++++++++----------------------
grafana-agent.service | 62 +++++++++----------
grafana-agent.sysusers | 4 -
grafana-agent.tmpfiles | 2
4 files changed, 116 insertions(+), 104 deletions(-)
Deleted: PKGBUILD
===================================================================
--- PKGBUILD 2022-01-14 03:07:06 UTC (rev 1103134)
+++ PKGBUILD 2022-01-14 03:07:39 UTC (rev 1103135)
@@ -1,70 +0,0 @@
-# Maintainer: Daurnimator <daurnimator at archlinux.org>
-
-pkgname=('grafana-agent' 'grafana-agentctl' 'grafana-agent-crow')
-pkgver=0.21.2
-pkgrel=1
-pkgdesc='Grafana Agent is a telemetry collector for sending metrics, logs, and trace data to the opinionated Grafana observability stack'
-url='https://github.com/grafana/agent'
-arch=('x86_64')
-license=('Apache')
-depends=('glibc')
-makedepends=('go')
-source=($pkgname-$pkgver.tar.gz::https://github.com/grafana/agent/archive/v$pkgver.tar.gz
- grafana-agent.sysusers grafana-agent.service grafana-agent.tmpfiles)
-sha512sums=('e43b7959b7f4dc3324aa5c76bdca53d81510076f38827bedaa9b7dfbd2c1e492062f6fd7631980917c75868defc3adcea98387a1eb3ec32c1f27d0a16bc2755d'
- '1e58f6273562fd6ddeae41bb6d223230ed301199af6bd2f85fa3d2c1e6352952c600cd4488ad769069519c42b6863be84aaa2c93c88f696e5a0bedbb93758d0e'
- '3f8debbc4732009f54c063d70c2dce4846b81b829f495d25a431fef857077c83949d777f763de8c106fb8d1cf0bd7e874680db8387b4811704b1a303932fa090'
- '3a4c4896b2454272b5a2d53ba5aa7009fa5b42a573fef521afb5d9712e53119539c4195d2b149d04d086c5fa197ccf7dc9bbdc407efb55514e3c92b994121fa8')
-
-build() {
- cd "agent-$pkgver"
-
- for path in cmd/agent cmd/agentctl cmd/grafana-agent-crow; do
- go build \
- -trimpath \
- -buildmode=pie \
- -mod=readonly \
- -modcacherw \
- -ldflags " \
- -X github.com/grafana/agent/pkg/build.Version=$pkgver
- -X github.com/grafana/agent/pkg/build.BuildDate=$(date -u +'%Y-%m-%dT%H:%M:%SZ' --date=@${SOURCE_DATE_EPOCH})
- -linkmode external
- -extldflags \"${LDFLAGS}\"" \
- "./$path"
- done
-}
-
-check() {
- cd "agent-$pkgver"
-
- go test -v ./...
-}
-
-package_grafana-agent() {
- backup=('etc/grafana-agent.yaml')
-
- cd "agent-$pkgver"
-
- install -Dm755 agent "$pkgdir/usr/bin/grafana-agent"
- install -Dm644 packaging/grafana-agent.yaml "$pkgdir/etc/grafana-agent.yaml"
-
- install -Dm644 "$srcdir/grafana-agent.sysusers" "$pkgdir/usr/lib/sysusers.d/grafana-agent.conf"
- install -Dm644 "$srcdir/grafana-agent.tmpfiles" "$pkgdir/usr/lib/tmpfiles.d/grafana-agent.conf"
- install -Dm644 "$srcdir/grafana-agent.service" "$pkgdir/usr/lib/systemd/system/grafana-agent.service"
-}
-
-package_grafana-agentctl() {
- pkgdesc="provides utilities for interacting with Grafana Agent"
-
- cd "agent-$pkgver"
-
- install -Dm755 -t "$pkgdir"/usr/bin agentctl
-}
-
-package_grafana-agent-crow() {
- pkgdesc="A correctness checker tool that validates that scraped metrics are delivered to a remote_write endpoint."
-
- cd "agent-$pkgver"
-
- install -Dm755 -t "$pkgdir"/usr/bin grafana-agent-crow
-}
Copied: grafana-agent/repos/community-x86_64/PKGBUILD (from rev 1103134, grafana-agent/trunk/PKGBUILD)
===================================================================
--- PKGBUILD (rev 0)
+++ PKGBUILD 2022-01-14 03:07:39 UTC (rev 1103135)
@@ -0,0 +1,82 @@
+# Maintainer: Daurnimator <daurnimator at archlinux.org>
+
+pkgname=('grafana-agent' 'grafana-agentctl' 'grafana-agent-crow')
+pkgver=0.22.0
+pkgrel=1
+pkgdesc='Grafana Agent is a telemetry collector for sending metrics, logs, and trace data to the opinionated Grafana observability stack'
+url='https://github.com/grafana/agent'
+arch=('x86_64')
+license=('Apache')
+depends=('glibc')
+makedepends=('go')
+options=('!lto')
+source=($pkgname-$pkgver.tar.gz::https://github.com/grafana/agent/archive/v$pkgver.tar.gz
+ grafana-agent.sysusers grafana-agent.service grafana-agent.tmpfiles)
+sha512sums=('2f34ff68fed3a6b963f6021acf1a520ac061660309925dc27d3b848d989728ae635284e0c49ee1612b912224a6cb539186c4306769224365f90da4d14ed05f5d'
+ '1e58f6273562fd6ddeae41bb6d223230ed301199af6bd2f85fa3d2c1e6352952c600cd4488ad769069519c42b6863be84aaa2c93c88f696e5a0bedbb93758d0e'
+ '3f8debbc4732009f54c063d70c2dce4846b81b829f495d25a431fef857077c83949d777f763de8c106fb8d1cf0bd7e874680db8387b4811704b1a303932fa090'
+ '3a4c4896b2454272b5a2d53ba5aa7009fa5b42a573fef521afb5d9712e53119539c4195d2b149d04d086c5fa197ccf7dc9bbdc407efb55514e3c92b994121fa8')
+
+prepare() {
+ cd "agent-$pkgver"
+
+ go mod download
+}
+
+build() {
+ cd "agent-$pkgver"
+
+ export CGO_LDFLAGS="${LDFLAGS}"
+ export CGO_CFLAGS="${CFLAGS}"
+ export CGO_CPPFLAGS="${CPPFLAGS}"
+ export CGO_CXXFLAGS="${CXXFLAGS}"
+ export GOPROXY=off
+ for path in cmd/agent cmd/agentctl cmd/grafana-agent-crow; do
+ go build \
+ -trimpath \
+ -buildmode=pie \
+ -mod=readonly \
+ -modcacherw \
+ -ldflags " \
+ -X github.com/grafana/agent/pkg/build.Version=$pkgver
+ -X github.com/grafana/agent/pkg/build.BuildDate=$(date -u +'%Y-%m-%dT%H:%M:%SZ' --date=@${SOURCE_DATE_EPOCH})
+ -linkmode external
+ -extldflags \"${LDFLAGS}\"" \
+ "./$path"
+ done
+}
+
+check() {
+ cd "agent-$pkgver"
+
+ go test -v ./...
+}
+
+package_grafana-agent() {
+ backup=('etc/grafana-agent.yaml')
+
+ cd "agent-$pkgver"
+
+ install -Dm755 agent "$pkgdir/usr/bin/grafana-agent"
+ install -Dm644 packaging/grafana-agent.yaml "$pkgdir/etc/grafana-agent.yaml"
+
+ install -Dm644 "$srcdir/grafana-agent.sysusers" "$pkgdir/usr/lib/sysusers.d/grafana-agent.conf"
+ install -Dm644 "$srcdir/grafana-agent.tmpfiles" "$pkgdir/usr/lib/tmpfiles.d/grafana-agent.conf"
+ install -Dm644 "$srcdir/grafana-agent.service" "$pkgdir/usr/lib/systemd/system/grafana-agent.service"
+}
+
+package_grafana-agentctl() {
+ pkgdesc="provides utilities for interacting with Grafana Agent"
+
+ cd "agent-$pkgver"
+
+ install -Dm755 -t "$pkgdir"/usr/bin agentctl
+}
+
+package_grafana-agent-crow() {
+ pkgdesc="A correctness checker tool that validates that scraped metrics are delivered to a remote_write endpoint."
+
+ cd "agent-$pkgver"
+
+ install -Dm755 -t "$pkgdir"/usr/bin grafana-agent-crow
+}
Deleted: grafana-agent.service
===================================================================
--- grafana-agent.service 2022-01-14 03:07:06 UTC (rev 1103134)
+++ grafana-agent.service 2022-01-14 03:07:39 UTC (rev 1103135)
@@ -1,31 +0,0 @@
-[Unit]
-Description=Grafana Agent monitoring system and forwarder
-Documentation=https://grafana.com/docs/agent/
-Wants=network-online.target
-After=network-online.target
-
-[Service]
-Restart=always
-Environment=HOSTNAME=%H
-ExecStart=/usr/bin/grafana-agent --config.file /etc/grafana-agent.yaml
-User=grafana-agent
-# If running the Agent in scraping service mode, you will want to override this value with
-# something larger to allow the Agent to gracefully leave the cluster. 4800s is recommend.
-TimeoutStopSec=20s
-SendSIGKILL=no
-
-NoNewPrivileges=true
-MemoryDenyWriteExecute=true
-RestrictRealtime=true
-
-ProtectHome=true
-ProtectSystem=strict
-ReadWritePaths=/var/lib/grafana-agent
-PrivateTmp=true
-
-ProtectKernelTunables=true
-ProtectKernelModules=true
-ProtectControlGroups=true
-
-[Install]
-WantedBy=multi-user.target
Copied: grafana-agent/repos/community-x86_64/grafana-agent.service (from rev 1103134, grafana-agent/trunk/grafana-agent.service)
===================================================================
--- grafana-agent.service (rev 0)
+++ grafana-agent.service 2022-01-14 03:07:39 UTC (rev 1103135)
@@ -0,0 +1,31 @@
+[Unit]
+Description=Grafana Agent monitoring system and forwarder
+Documentation=https://grafana.com/docs/agent/
+Wants=network-online.target
+After=network-online.target
+
+[Service]
+Restart=always
+Environment=HOSTNAME=%H
+ExecStart=/usr/bin/grafana-agent --config.file /etc/grafana-agent.yaml
+User=grafana-agent
+# If running the Agent in scraping service mode, you will want to override this value with
+# something larger to allow the Agent to gracefully leave the cluster. 4800s is recommend.
+TimeoutStopSec=20s
+SendSIGKILL=no
+
+NoNewPrivileges=true
+MemoryDenyWriteExecute=true
+RestrictRealtime=true
+
+ProtectHome=true
+ProtectSystem=strict
+ReadWritePaths=/var/lib/grafana-agent
+PrivateTmp=true
+
+ProtectKernelTunables=true
+ProtectKernelModules=true
+ProtectControlGroups=true
+
+[Install]
+WantedBy=multi-user.target
Deleted: grafana-agent.sysusers
===================================================================
--- grafana-agent.sysusers 2022-01-14 03:07:06 UTC (rev 1103134)
+++ grafana-agent.sysusers 2022-01-14 03:07:39 UTC (rev 1103135)
@@ -1,2 +0,0 @@
-u grafana-agent - "grafana-agent user" /var/lib/grafana-agent
-m grafana-agent systemd-journal
Copied: grafana-agent/repos/community-x86_64/grafana-agent.sysusers (from rev 1103134, grafana-agent/trunk/grafana-agent.sysusers)
===================================================================
--- grafana-agent.sysusers (rev 0)
+++ grafana-agent.sysusers 2022-01-14 03:07:39 UTC (rev 1103135)
@@ -0,0 +1,2 @@
+u grafana-agent - "grafana-agent user" /var/lib/grafana-agent
+m grafana-agent systemd-journal
Deleted: grafana-agent.tmpfiles
===================================================================
--- grafana-agent.tmpfiles 2022-01-14 03:07:06 UTC (rev 1103134)
+++ grafana-agent.tmpfiles 2022-01-14 03:07:39 UTC (rev 1103135)
@@ -1 +0,0 @@
-d /var/lib/grafana-agent 0750 grafana-agent grafana-agent -
Copied: grafana-agent/repos/community-x86_64/grafana-agent.tmpfiles (from rev 1103134, grafana-agent/trunk/grafana-agent.tmpfiles)
===================================================================
--- grafana-agent.tmpfiles (rev 0)
+++ grafana-agent.tmpfiles 2022-01-14 03:07:39 UTC (rev 1103135)
@@ -0,0 +1 @@
+d /var/lib/grafana-agent 0750 grafana-agent grafana-agent -
More information about the arch-commits
mailing list