Skip to content

Commit

Permalink
chore(deps): bump grafana-agent version to v0.37.4 (#30)
Browse files Browse the repository at this point in the history
Co-authored-by: Github Actions <github-actions@github.com>
  • Loading branch information
github-actions[bot] and Github Actions authored Nov 14, 2023
1 parent 014e71e commit f08993c
Show file tree
Hide file tree
Showing 2 changed files with 58 additions and 0 deletions.
17 changes: 17 additions & 0 deletions 0.37.4/agent.yaml
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
41 changes: 41 additions & 0 deletions 0.37.4/rockcraft.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
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.37.4"
base: ubuntu:22.04
build-base: ubuntu:22.04
license: Apache-2.0
platforms:
amd64:
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.37.4"
build-snaps:
- go/1.21.0/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

0 comments on commit f08993c

Please sign in to comment.