-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(deps): bump grafana-agent version to v0.43.4
- Loading branch information
Github Actions
committed
Nov 27, 2024
1 parent
3ef0c2f
commit 38790a1
Showing
2 changed files
with
71 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
server: | ||
log_level: info | ||
|
||
metrics: | ||
global: | ||
scrape_interval: 1m | ||
configs: | ||
- name: test | ||
host_filter: false | ||
scrape_configs: | ||
- job_name: local_scrape | ||
static_configs: | ||
- targets: ['127.0.0.1:12345'] | ||
labels: | ||
cluster: 'localhost' | ||
remote_write: | ||
- url: http://localhost:9009/api/prom/push |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
name: grafana-agent | ||
summary: Grafana Agent in a ROCK. | ||
description: "Grafana Agent is a single binary collector for metrics and logging, useful for per-node metrics or proxying from edge endpoints." | ||
version: "0.43.4" | ||
base: [email protected] | ||
build-base: [email protected] | ||
license: Apache-2.0 | ||
platforms: | ||
amd64: | ||
arm64: | ||
services: | ||
agent: | ||
command: /usr/bin/grafana-agent --config.file=/etc/agent/agent.yaml --metrics.wal-directory=/etc/agent/data | ||
override: replace | ||
startup: enabled | ||
parts: | ||
grafana-agent: | ||
plugin: go | ||
source: https://github.com/grafana/agent | ||
source-type: git | ||
source-tag: "v0.43.4" | ||
build-snaps: | ||
- go/1.22/stable | ||
build-environment: | ||
- USE_CONTAINER: 0 | ||
- RELEASE_BUILD: 1 | ||
stage-packages: | ||
- ca-certificates | ||
override-build: | | ||
make agent | ||
install -D -m755 build/grafana-agent ${CRAFT_PART_INSTALL}/opt/agent/bin/grafana-agent | ||
ln -sv /bin/grafana-agent ${CRAFT_PART_INSTALL}/opt/agent/bin/agent | ||
organize: | ||
opt/agent/bin/grafana-agent: usr/bin/grafana-agent | ||
opt/agent/bin/agent: usr/bin/agent | ||
default-config: | ||
plugin: dump | ||
source: . | ||
organize: | ||
agent.yaml: etc/agent/agent.yaml | ||
stage: | ||
- etc/agent/agent.yaml | ||
ca-certs: | ||
plugin: nil | ||
overlay-packages: [ca-certificates] | ||
deb-security-manifest: | ||
plugin: nil | ||
after: | ||
- grafana-agent | ||
- ca-certs | ||
override-prime: | | ||
set -x | ||
mkdir -p $CRAFT_PRIME/usr/share/rocks/ | ||
(echo "# os-release" && cat /etc/os-release && echo "# dpkg-query" && dpkg-query --admindir=$CRAFT_PRIME/var/lib/dpkg/ -f '${db:Status-Abbrev},${binary:Package},${Version},${source:Package},${Source:Version}\n' -W) > $CRAFT_PRIME/usr/share/rocks/dpkg.query |