[arch-commits] Commit in grafana-agent/repos/community-x86_64 (8 files)

Daurnimator daurnimator at gemini.archlinux.org
Mon Nov 8 13:36:29 UTC 2021


    Date: Monday, November 8, 2021 @ 13:36:29
  Author: daurnimator
Revision: 1038781

archrelease: copy trunk to community-x86_64

Added:
  grafana-agent/repos/community-x86_64/PKGBUILD
    (from rev 1038780, grafana-agent/trunk/PKGBUILD)
  grafana-agent/repos/community-x86_64/grafana-agent.service
    (from rev 1038780, grafana-agent/trunk/grafana-agent.service)
  grafana-agent/repos/community-x86_64/grafana-agent.sysusers
    (from rev 1038780, grafana-agent/trunk/grafana-agent.sysusers)
  grafana-agent/repos/community-x86_64/grafana-agent.tmpfiles
    (from rev 1038780, 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               |  140 +++++++++++++++++++++++------------------------
 grafana-agent.service  |   62 ++++++++++----------
 grafana-agent.sysusers |    4 -
 grafana-agent.tmpfiles |    2 
 4 files changed, 104 insertions(+), 104 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2021-11-08 13:35:59 UTC (rev 1038780)
+++ PKGBUILD	2021-11-08 13:36:29 UTC (rev 1038781)
@@ -1,70 +0,0 @@
-# Maintainer: Daurnimator <daurnimator at archlinux.org>
-
-pkgname=('grafana-agent' 'grafana-agentctl' 'grafana-agent-crow')
-pkgver=0.19.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')
-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=('a2434d944405bd7d71be62fbef2099e59069989730231f236ed4cb76060c57a1eaee44f4a9816a00555010a581d8353a86c2a655ab5590620817c32909376d5a'
-            '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 1038780, grafana-agent/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2021-11-08 13:36:29 UTC (rev 1038781)
@@ -0,0 +1,70 @@
+# Maintainer: Daurnimator <daurnimator at archlinux.org>
+
+pkgname=('grafana-agent' 'grafana-agentctl' 'grafana-agent-crow')
+pkgver=0.20.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')
+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=('d71ff67ceb5f571164e33b7606f810f46306b50645403fa5a0f89312cf392a0f3ab3da7428f98ac83df50503b76d5cacdbc94fbe5b2f51dfc7bcf76549c4ddac'
+            '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
+}

Deleted: grafana-agent.service
===================================================================
--- grafana-agent.service	2021-11-08 13:35:59 UTC (rev 1038780)
+++ grafana-agent.service	2021-11-08 13:36:29 UTC (rev 1038781)
@@ -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 1038780, grafana-agent/trunk/grafana-agent.service)
===================================================================
--- grafana-agent.service	                        (rev 0)
+++ grafana-agent.service	2021-11-08 13:36:29 UTC (rev 1038781)
@@ -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	2021-11-08 13:35:59 UTC (rev 1038780)
+++ grafana-agent.sysusers	2021-11-08 13:36:29 UTC (rev 1038781)
@@ -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 1038780, grafana-agent/trunk/grafana-agent.sysusers)
===================================================================
--- grafana-agent.sysusers	                        (rev 0)
+++ grafana-agent.sysusers	2021-11-08 13:36:29 UTC (rev 1038781)
@@ -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	2021-11-08 13:35:59 UTC (rev 1038780)
+++ grafana-agent.tmpfiles	2021-11-08 13:36:29 UTC (rev 1038781)
@@ -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 1038780, grafana-agent/trunk/grafana-agent.tmpfiles)
===================================================================
--- grafana-agent.tmpfiles	                        (rev 0)
+++ grafana-agent.tmpfiles	2021-11-08 13:36:29 UTC (rev 1038781)
@@ -0,0 +1 @@
+d /var/lib/grafana-agent 0750 grafana-agent grafana-agent -



More information about the arch-commits mailing list