Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
260 commits
Select commit Hold shift + click to select a range
0a90837
add consul_exporter integration (#273)
rfratto Dec 4, 2020
01df1d6
Supprt TLS insecure skip verify for tempo (#276)
bombsimon Dec 7, 2020
68e13a5
Override Promtail User-Agent header (#270)
rfratto Dec 7, 2020
c7db27c
Config file environment expansion (#281)
dcseifert Dec 9, 2020
78942a9
document env var substitution
rfratto Dec 9, 2020
6dc5cf4
explicitly add command to Agent manifests (#283)
rfratto Dec 10, 2020
68dc220
prepare for 0.9.0 release (#284)
rfratto Dec 10, 2020
bc94fc0
install agentctl with deb/rpms (#290)
rfratto Dec 15, 2020
5d9efdb
Add grafanacloud-specific install script (#291)
rfratto Dec 16, 2020
c9396a2
Create ADOPTERS.md (#293)
rfratto Dec 16, 2020
668a2e5
Update ADOPTERS.md (#294)
rfratto Dec 17, 2020
540bff4
Correct the config file path (#299)
cityofships Dec 29, 2020
3fb3187
fix some typos (#300)
yeya24 Dec 29, 2020
5a22fea
add logo to README.md and docs (#306)
rfratto Jan 4, 2021
749904e
prepare for 0.9.1 release (#307)
rfratto Jan 4, 2021
9e37baf
Dynamic integration registration system (#278)
rfratto Jan 5, 2021
169ad36
Fixing issue 206 - Listen Address Mapping (#308)
mattdurham Jan 6, 2021
623ad44
update redis_exporter to v1.15.0 (#311)
rfratto Jan 6, 2021
bba5a44
update memcached exporter to v0.8.0 (#310)
rfratto Jan 6, 2021
534b242
update process exporter to v0.7.5 (#309)
rfratto Jan 7, 2021
a565f2e
don't mount /var/log as readonly (#314)
rfratto Jan 8, 2021
6cf3d9e
Clean up abandoned WAL directories (#304)
56quarters Jan 8, 2021
dd2bf2a
Update libsystemd version in Docker containers (#258)
rfratto Jan 8, 2021
3fd9f55
consolidate FreeBSD warnings (#318)
rfratto Jan 8, 2021
29d93d0
document experimental prometheus target_limit (#321)
rfratto Jan 11, 2021
4a09b67
add sigv4 as a custom authentication method for remote_write data (#322)
rfratto Jan 13, 2021
c1409a2
prepare 0.10.0 release (#328)
rfratto Jan 13, 2021
f1df866
Resolve K8s API server IP using DNS (#330)
hjet Jan 14, 2021
2d8de23
support ARMv6 linux builds (#332)
rfratto Jan 15, 2021
2f459bb
add sigv4 install script, fix bug (#334)
rfratto Jan 19, 2021
e99a0d2
allow specifying installation namespace in script (#335)
rfratto Jan 20, 2021
11993da
Configuration file validation subcommand for agentctl (#336)
56quarters Jan 20, 2021
48c0762
prepare for v0.11.0 release (#341)
rfratto Jan 20, 2021
b11eba9
Hoenn/agentctl register integrations (#342)
hoenn Jan 20, 2021
6084a0c
And Traces! (#346)
joe-elliott Jan 21, 2021
fc77062
Elasticsearch exporter integration (#347)
colega Jan 22, 2021
a5a2c77
Support other architectures for debs/rpms (#344)
rfratto Jan 22, 2021
501fc0a
document depcheck.yml file better (#349)
rfratto Jan 22, 2021
027bf0b
include discovered labels in /agent/api/v1/targets (#354)
rfratto Jan 25, 2021
4680bab
link to discussions in README (#356)
rfratto Jan 26, 2021
2d42f42
Add note on rules for scraping pods (#358)
eamonryan Jan 26, 2021
27ce4c6
update cortex, loki (#355)
rfratto Jan 27, 2021
96376c6
Lint scripts with ShellCheck. (#361)
jeschkies Jan 27, 2021
175095d
remove use of consul_exporter fork (#362)
rfratto Jan 27, 2021
41e563b
pkg/loki: support multiple instances of promtail (BREAKING CHANGE) (#…
rfratto Jan 29, 2021
b8a4194
pkg/tempo: support multiple instances of tempo (BREAKING CHANGE) (#365)
rfratto Jan 29, 2021
c5362a5
Allow failed agents in ring (#373)
rfratto Feb 2, 2021
d32d289
update loki (#377)
rfratto Feb 3, 2021
1949335
Fix CI flakiness on merge jobs (#380)
rfratto Feb 3, 2021
e4101d3
scraping service: shard only on instance config name instead of conte…
rfratto Feb 4, 2021
2a562d2
Only keep certain K8s API server metrics by default (#384)
hjet Feb 4, 2021
ea2fe44
fix architecture path for system packages in grafanacloud-install scr…
rfratto Feb 4, 2021
0870ece
Update Go and use consistent version across distributions (#383)
rfratto Feb 4, 2021
c8e7551
update to go 1.15.8 (#386)
rfratto Feb 5, 2021
2806c75
update loki to include grafana/loki#3285 (#387)
rfratto Feb 5, 2021
585a36d
prepare for 0.12.0 release (#388)
rfratto Feb 5, 2021
ba2d83b
add migration guide to release note template (#389)
rfratto Feb 5, 2021
e115da2
allow relying on the default value of the -addr flag in config-sync (…
rfratto Feb 8, 2021
4ebd0e3
support other architectures in installation script (#402)
rfratto Feb 9, 2021
56be388
Use loki in k3d agent DS instead of promtail (#406)
rfratto Feb 10, 2021
30983a4
fix: Remove unnecessary tls and bearer tokens (#372)
jdbaldry Feb 16, 2021
d8d85f0
Reduce likelihood of data loss when remote endpoint has an outage (#401)
rfratto Feb 17, 2021
6587db5
Allow specifying wal truncate frequencies per integration (#403)
rfratto Feb 17, 2021
bbf8e1d
Update references to old "master" branch to "main" (#411)
rfratto Feb 17, 2021
c18cde2
infer sigv4 region from environment (#412)
rfratto Feb 18, 2021
7428f50
Update Prometheus to 2.25.0 (#415)
rfratto Feb 18, 2021
aa16bed
Scraping service: stop scraping service instances on partial shutdown…
rfratto Feb 18, 2021
2fba3bf
Implement ApplyConfig for Loki (#416)
rfratto Feb 18, 2021
f485016
Fix "go mod tidy" (#419)
rfratto Feb 19, 2021
82518f3
Speed up CI (#420)
rfratto Feb 19, 2021
c281b05
Implement ApplyConfig for Tempo (#424)
rfratto Feb 22, 2021
6b886c7
add query_path and disable_default_metrics to postgres_exporter (#425)
rfratto Feb 23, 2021
8a55d51
Add the ability for Agent to host and read from HTTPS built in integr…
mattdurham Feb 24, 2021
e9bd098
prepare for 0.13.0 release (#430)
rfratto Feb 25, 2021
ab01953
Default enable compression for trace export (#428)
mdisibio Feb 25, 2021
cff0db0
pkg/prom/instance: create a ModalManager for ApplyConfig (#427)
rfratto Feb 26, 2021
52844a5
Add support for M1 Macs (#434)
rfratto Feb 26, 2021
f9f9ff1
Stop unnecessary config duplication (#431)
mattdurham Mar 1, 2021
db711df
allow 0 as a valid truncation timestamp (#440)
rfratto Mar 1, 2021
b61e0e2
Simplify sharding logic (#438)
rfratto Mar 1, 2021
0e9c20f
Use a text-based codec for interacting with config store KV (#441)
rfratto Mar 1, 2021
77c67d6
change the default application semantics of instance configs (#442)
rfratto Mar 2, 2021
d9c8680
Decouple configuration store from scraping service (#445)
rfratto Mar 3, 2021
e237af0
add tests for the remote configstore (#447)
rfratto Mar 3, 2021
ebd4753
Add HTTP api for configstore (#446)
rfratto Mar 5, 2021
62155c4
Add Initial Windows Service Support (#449)
mattdurham Mar 5, 2021
4a1a07f
Use configstore (#450)
rfratto Mar 5, 2021
bd02bf6
Fix environment variable substitution syntax (#455)
rfratto Mar 8, 2021
badee2b
rename Grafana Cloud Agent to Grafana Agent (#457)
rfratto Mar 10, 2021
2ad412d
add use cases of the grafana agent to readme (#460)
rfratto Mar 10, 2021
12e1372
Add pkg/prom/cluster package with membership management (#461)
rfratto Mar 11, 2021
f86bda8
fix race condition in pkg/prom/cluster/node_test.go (#463)
rfratto Mar 11, 2021
3c8e3e4
bring back freebsd support (#467)
rfratto Mar 15, 2021
384a043
pkg/prom/cluster: add config watcher (#462)
rfratto Mar 16, 2021
744f5bc
glue together the cluster package (#470)
rfratto Mar 16, 2021
050299a
Bump otel collector version to v0.21.0 (#469)
mapno Mar 17, 2021
8ca61da
switch to new cluster package (#472)
rfratto Mar 17, 2021
c63a8cd
implement ApplyConfig for pkg/prom (#473)
rfratto Mar 17, 2021
5603a01
Update stale.yml (#479)
rfratto Mar 23, 2021
cb3d922
update comments (#483)
yeya24 Mar 24, 2021
5c1b14b
lint for proper godoc-style comments (#485)
rfratto Mar 24, 2021
7727df2
ApplyConfig for integrations (#486)
rfratto Mar 25, 2021
8cfd1dc
Windows exporter integration (#475)
mattdurham Mar 25, 2021
2099128
Implement Applyconfig for Entrypoint (#490)
rfratto Mar 25, 2021
95f7741
Allow changing log levels at runtime (#491)
rfratto Mar 25, 2021
8ce3bb5
Add kafka traces receiver (#489)
mapno Mar 29, 2021
31f7746
change configless Agent k8s install to use a deployment (#497)
rfratto Mar 29, 2021
d3c10d9
Support mirror traffic pipelines (#474)
mapno Mar 30, 2021
484dd4d
Implement /-/reload (#493)
rfratto Mar 31, 2021
e023f72
Add /-/config endpoint (#503)
rfratto Mar 31, 2021
e83883d
Windows Installer Script - Implementation (#498)
mattdurham Mar 31, 2021
ffc8236
close WALs after calculating cardinality/sample stats (#507)
rfratto Apr 1, 2021
a9b9469
update k3d example to work with k3d v4.0.0 (#510)
rfratto Apr 2, 2021
ca850e2
Add stability information (#509)
rfratto Apr 2, 2021
63a88d0
move shared remote_write block to global config (#508)
rfratto Apr 2, 2021
9b5a94b
Update README.md (#512)
zuchka Apr 2, 2021
226268a
Support generating metrics from spans (#499)
yeya24 Apr 5, 2021
65c8a87
Update Prometheus dependency to 2.26.0 (#516)
rfratto Apr 7, 2021
2c5e0c3
fix bug in tanka v1 lib where withRemoteWrite didn't set it in the gl…
rfratto Apr 7, 2021
dfec7bb
Add support for writing to Windows event log while running as a servi…
mattdurham Apr 7, 2021
1a8c2fc
document process creating release candidates (#519)
rfratto Apr 7, 2021
dcc0f03
Add installer to output (#522)
mattdurham Apr 8, 2021
9bd03d1
Validate labels (#528)
rfratto Apr 9, 2021
14fd3ef
Backport v0.13.1 release from release-v0.13.1 (#531)
rfratto Apr 9, 2021
1ee4e68
Windows doc (#530)
mattdurham Apr 9, 2021
d055b19
update docs to remove old reference that indicated grpc was unused (#…
rfratto Apr 9, 2021
a0aeb6e
Add migration guide for push_config deprecation (#534)
mapno Apr 12, 2021
c7ac289
Add headers field to Tempo's remote_write (#536)
alexbiehl Apr 13, 2021
d030b38
pass correct logger (#539)
joe-elliott Apr 14, 2021
8bea019
Setup the service to start automatically (#541)
mattdurham Apr 15, 2021
9cff18c
Windows auto start (#542)
mattdurham Apr 15, 2021
b89dd35
Add governance (#543)
rfratto Apr 15, 2021
da91dc7
Fix syntax for URL (#544)
aaabramov Apr 15, 2021
bc099ee
Add harcoded namespace to spanmetrics (#540)
mapno Apr 16, 2021
1ab3d31
Tail-based sampling (#526)
mapno Apr 16, 2021
e874ac4
Apply defaults to undefined sections (#546)
rfratto Apr 16, 2021
238dc73
[Tempo] Automatic Logging (#551)
joe-elliott Apr 22, 2021
3f6fa5f
fix default values applied to Config (#556)
rfratto Apr 22, 2021
d98b03b
Promtail doc (#563)
mattdurham Apr 26, 2021
44bc96d
Scraping service: harden security restrictions on instance files (#558)
rfratto Apr 26, 2021
888e6a7
Include process kv in span and root logs (#570)
mapno Apr 29, 2021
c6a4e51
add ability to get an instance by name (#572)
rfratto Apr 29, 2021
1c5b4e2
Remove vendor/ (#571)
rfratto Apr 30, 2021
98c65b1
metrics: read global config when reloading instances (#575)
rfratto May 3, 2021
9038739
Silent Windows Uninstaller (#577)
mattdurham May 3, 2021
5ec63f8
Release doc (#578)
mattdurham May 3, 2021
1cd7737
update cortex for example/docker-compose and example/k3d to use block…
rfratto May 4, 2021
6d621b9
Remote write for span metrics (#569)
mapno May 13, 2021
08716ce
Retry getting prom instance in Tempo start up (#591)
mapno May 18, 2021
a23bd5c
[Tempo] Automatic Logging: Fixed double logging of "svc" (#597)
joe-elliott May 20, 2021
7c68a9c
Prepare for 0.14.0 release (#596)
rfratto May 24, 2021
0ef3140
add bug fix to 0.14.0 (#606)
rfratto May 24, 2021
b8ef7dd
add workflow to manually trigger a release against a self-hosted runn…
rfratto May 24, 2021
ea02574
Tempo: Add stdout logging option to autologging (#600)
joe-elliott May 25, 2021
de74bd0
doc: Correct and simplify "Running the Agent with Docker" example (#613)
jdbaldry May 25, 2021
abc9445
Revert "add workflow to manually trigger a release against a self-hos…
rfratto May 25, 2021
c8b0755
Tempo: Intentional Processor order (#616)
joe-elliott May 26, 2021
009adbe
update queue_config defaults in docs to match latest Prometheus defau…
rfratto May 26, 2021
a80069d
Support building MIPS (LE) (#602)
marefr May 26, 2021
ace66fa
doc/node_exporter: add missing network options (#618)
AndreZiviani May 27, 2021
9b39197
Fix remote write exporter not pushing span metrics (#624)
mapno May 28, 2021
a5e2979
Improve performance of kubernetes_sd_configs when using host_filter (…
rfratto May 28, 2021
5c24340
Exemplars support (#611)
mapno Jun 1, 2021
9a1c255
Update to latest config version (#625)
mapno Jun 3, 2021
1cacbe2
Prepare for 0.15.0 (#626)
rfratto Jun 3, 2021
c91b61d
Initial Grafana Agent Operator (#549)
rfratto Jun 3, 2021
62a36fe
display specific error messages when cloud-config fails (#630)
rfratto Jun 4, 2021
09d678e
Exemplars support in config reference (#633)
mapno Jun 7, 2021
e5aa7a5
Update prometheus dependency to include interner leak fix (#636)
rfratto Jun 8, 2021
4af620a
Include agent-operator as a release asset (#637)
rfratto Jun 9, 2021
5cd121b
Fix small typo (#634)
yvrhdn Jun 9, 2021
e474e24
fix typo in exemplars doc (#645)
AndreZiviani Jun 11, 2021
d1a6a39
docs for the Grafana Agent Operator (#651)
rfratto Jun 15, 2021
58467d4
update Operator FAQ to describe custom scrape jobs (#658)
rfratto Jun 16, 2021
79e8396
don't return ErrNotFound on bad ref in Append (#660)
rfratto Jun 16, 2021
02c19c2
Operator: tests and fix various small issues (#656)
rfratto Jun 17, 2021
f5625da
prepare for 0.16.0 release (#665)
rfratto Jun 17, 2021
399210c
Add TLS config options for tempo remote_write (#666)
mapno Jun 18, 2021
c411018
Initialize biggest ref to existing ref when reading a segment (#676)
rfratto Jun 22, 2021
e27b631
prepare for v0.16.1 release (#679)
rfratto Jun 22, 2021
a0c6a5f
Update operator to use v0.16.1 by default (#681)
rfratto Jun 22, 2021
f4097f0
Add OTLP HTPP exporter support (#683)
mapno Jun 23, 2021
775f806
Tanka Jsonnet Integrations Fixes (#698)
rgeyer Jun 29, 2021
54c67cd
document horizontal scaling (#696)
rfratto Jun 30, 2021
6033c4f
Upgrade otel to v0.29.0 (#700)
mapno Jul 1, 2021
9e9da10
renamed guide and updated headings (#704)
oddlittlebird Jul 2, 2021
50efa00
Docs: Getting started (#705)
oddlittlebird Jul 2, 2021
0875d72
Docs: automatic logging is at the top level of instance config (#711)
yvrhdn Jul 5, 2021
ad8689a
Docs: Configuration (#712)
oddlittlebird Jul 6, 2021
5699f45
Update grafana-agent config regex replacement (#707)
justinwalz Jul 6, 2021
9b478b9
moved and renamed files (#706)
oddlittlebird Jul 6, 2021
5d7a95a
trigger reload configuration using SIGHUP (#710)
tharun208 Jul 6, 2021
836d1ba
add post method for config reload api (#709)
tharun208 Jul 6, 2021
51c5c56
move maintainers guide out of docs (#714)
rfratto Jul 6, 2021
82c6726
clean up getting started guide (#713)
rfratto Jul 6, 2021
dc8d743
Add github action job to check if links in docs are correct (#708)
angry-cellophane Jul 7, 2021
8bc15bb
Add debug log in prom-sd processor to indicate missing ip tag (#718)
annanay25 Jul 7, 2021
57541f4
Update dashboards setup in production mixin. (#685)
cristiangreco Jul 7, 2021
ef865d3
fix race condition in initializing cluster (#690)
rfratto Jul 7, 2021
2ed8fd8
Docs: More cleanup (#720)
oddlittlebird Jul 7, 2021
5def27b
Operator: create CRDs for logging (#721)
rfratto Jul 7, 2021
ca108f8
Docs: Integrations (#723)
oddlittlebird Jul 7, 2021
9ac2335
remove duplicated config blobs (#719)
rfratto Jul 7, 2021
b8b7e1f
Docs: change operator custom scrape jobs example to use integrations …
rfratto Jul 8, 2021
7546d82
Set DNSPolicy correctly when host network is used in daemonset (#728)
rgeyer Jul 12, 2021
3400750
Fix 32-bit builds (#733)
mapno Jul 12, 2021
b1e5ec5
Rename "loki" to "logs" (#727)
rfratto Jul 12, 2021
60bc263
Embedding Kafka Lag Exporter (#674)
gaantunes Jul 14, 2021
a647486
Support autologging span attributes as loki labels (#703)
mapno Jul 15, 2021
3bdf590
Grafana Agent Operator: generate logs config (#740)
rfratto Jul 15, 2021
9e8fb3b
buffer notifier channel (#744)
rfratto Jul 15, 2021
254819f
Clean up K8s deployment methods (#749)
hjet Jul 19, 2021
5abdbf6
Add install-bare.sh warning (#752)
rfratto Jul 19, 2021
f3abd13
Ignore regex capture groups when expanding environment vars (#754)
rfratto Jul 20, 2021
78a15cc
Implement Drone Build system, moving away from release via Github Act…
mattdurham Jul 20, 2021
ed7b264
Logs: create positionsdir per config (#757)
rfratto Jul 20, 2021
94db507
operator: add cluster label to all logs (#758)
rfratto Jul 21, 2021
1c28f09
Integrations always running regardless of enabled flag (#689)
mattdurham Jul 21, 2021
a1831c5
Fixing typo in the GrafanaAgents CRD (#761)
jtyr Jul 22, 2021
fb0203b
Operator: use reflection to discover references to secrets and config…
rfratto Jul 22, 2021
1a880a3
Merge v17 changelog (#767)
mattdurham Jul 22, 2021
dc48d69
Linux packages: add grafana-agent user to adm and systemd-journal gro…
rfratto Jul 22, 2021
2e234db
Add Test as a Dependency of Release and Containerize, Add Operator (…
mattdurham Jul 22, 2021
65c5239
Split load balancing (#765)
mapno Jul 23, 2021
1e5f153
Update Postgres Exporter to v0.10.0 (#774)
rgeyer Jul 23, 2021
977c1ca
TestEnqueueRequestForSelector: only run test if -online flag is set (…
flokli Jul 23, 2021
ecbefa8
Use Deployment for traces quickstart (#772)
hjet Jul 23, 2021
9ad2a18
Remove duplicate HOSTNAME env var (#778)
hjet Jul 23, 2021
1c55354
Update README.md (#779)
hjet Jul 23, 2021
b6a63c1
Bump OTel collector to 0.30 (#777)
mapno Jul 28, 2021
83b4838
the Operator-specific documentation (#780)
raulmarinperez Jul 29, 2021
1f436f5
Github exporter integration (#759)
rgeyer Aug 2, 2021
997675b
Merge release v0.18.0 (#787)
mattdurham Aug 3, 2021
8d18c1e
Merge v0.18.1 into main (#802)
mattdurham Aug 9, 2021
70ef24b
Add a comment for informing how to use wal_directory with a PVC (#803)
rfratto Aug 9, 2021
141f8b3
CRDs: Fix typo: EnforcedNamepsaceLabel -> EnforcedNamespaceLabel (#790)
flokli Aug 9, 2021
5abc52f
Ensure drone tag always has a value, default to v0.0.0 (#808)
mattdurham Aug 10, 2021
5d2877a
Add HOSTNAME env variable to service file (#811)
dfrankel33 Aug 11, 2021
f4cb115
Fix filesystem collector defaults on darwin / Mac OS (#819)
eamonryan Aug 12, 2021
b5416fd
Merge v0.18.2 to main (#822)
mattdurham Aug 12, 2021
cbde019
Grafana Agent Crow (#773)
rfratto Aug 12, 2021
3834a41
poc smoke test automation
rfratto Jun 22, 2021
57ed0f4
finish smoke test environment
rfratto Jun 23, 2021
c2a299f
debug logs
rfratto Jun 23, 2021
16fd729
fix typo, sync immediately
rfratto Jun 23, 2021
1eef3b2
add crow, add crow-related alerts
rfratto Aug 13, 2021
ab2b5db
have v0 and v1 libs use v2 lib
rfratto Aug 13, 2021
293f23d
basic cpu, memory tests
rfratto Aug 13, 2021
7e899d2
fix chaos_loop to stop generating replica -3 which will never exist
rfratto Aug 13, 2021
05901d4
Add initial documentation for crow.
mattdurham Sep 7, 2021
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
The diff you're trying to view is too large. We only load the first 3000 changed files.
178 changes: 178 additions & 0 deletions .drone/drone.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,178 @@
---
kind: pipeline
name: Lint
platform:
os: linux
arch: amd64
trigger:
event:
- push
- pull_request
- tag
ref:
- refs/heads/main
- refs/pull/*/head
- refs/tags/**

steps:
- name: lint
image: golangci/golangci-lint:v1.37.1
commands:
- apt-get update -y && apt-get install -y libsystemd-dev
- make lint

---
kind: pipeline
type: docker
name: Test
platform:
os: linux
arch: amd64
trigger:
event:
- push
- pull_request
- tag
ref:
- refs/heads/main
- refs/pull/*/head
- refs/tags/**

steps:
- name: test
image: rfratto/seego
commands:
- apt-get update && apt-get install -y rubygems rpm nsis apt-transport-https ca-certificates curl gnupg lsb-release
- gem install --no-document fpm
- mkdir -p /usr/local/go/bin
- wget -q https://golang.org/dl/go1.16.5.linux-amd64.tar.gz
- tar -C /usr/local -xzf go1.16.5.linux-amd64.tar.gz
- rm go1.16.5.linux-amd64.tar.gz
- export PATH=$PATH:/usr/local/go/bin
- make cmd/agent/agent cmd/agentctl/agentctl cmd/agent-operator/agent-operator cmd/grafana-agent-crow/grafana-agent-crow
- make DRONE=true BUILD_IN_CONTAINER=false test
depends_on:
- Lint

---
kind: pipeline
type: docker
name: Dist
platform:
os: linux
arch: amd64
trigger:
ref:
- refs/tags/v*

steps:
- name: distribute
image: rfratto/seego
commands:
- apt-get update && apt-get install -y rubygems rpm nsis
- gem install --no-document fpm
- mkdir -p /usr/local/go/bin
- wget -q https://golang.org/dl/go1.16.5.linux-amd64.tar.gz
- tar -C /usr/local -xzf go1.16.5.linux-amd64.tar.gz
- rm go1.16.5.linux-amd64.tar.gz
- export PATH=$PATH:/usr/local/go/bin
- make DRONE=true BUILD_IN_CONTAINER=false RELEASE_TAG=v0.0.0 dist
depends_on:
- Test
---
kind: pipeline
type: docker
name: Containerize
platform:
os: linux
arch: amd64
trigger:
ref:
- refs/heads/main
- refs/tags/v*

steps:
- name: Build Containers
image: docker
volumes:
- name: docker
path: /var/run/docker.sock
environment:
DOCKER_LOGIN:
from_secret: DOCKER_LOGIN
DOCKER_PASSWORD:
from_secret: DOCKER_PASSWORD
commands:
- docker login -u $DOCKER_LOGIN -p $DOCKER_PASSWORD
- apk update && apk add make bash wget git qemu
- wget -q https://github.com/docker/buildx/releases/download/v0.5.1/buildx-v0.5.1.linux-amd64
- mkdir -p ~/.docker/cli-plugins
- cp buildx-v0.5.1.linux-amd64 ~/.docker/cli-plugins/docker-buildx
- chmod a+x ~/.docker/cli-plugins/docker-buildx
- docker run --rm --privileged multiarch/qemu-user-static --reset -p yes
- docker buildx create --name multiarch --driver docker-container --use
- export RELEASE_TAG=${DRONE_TAG:-v0.0.0}
- make DRONE=true CROSS_BUILD=true BUILD_IN_CONTAINER=true RELEASE_BUILD=true agent-image
- make DRONE=true CROSS_BUILD=true BUILD_IN_CONTAINER=true RELEASE_BUILD=true agentctl-image
- make DRONE=true CROSS_BUILD=true BUILD_IN_CONTAINER=true RELEASE_BUILD=true agent-operator-image
- make DRONE=true CROSS_BUILD=true BUILD_IN_CONTAINER=true RELEASE_BUILD=true grafana-agent-crow-image
- docker buildx rm multiarch

depends_on:
- Test

volumes:
- name: docker
host:
path: /var/run/docker.sock
---
kind: pipeline
type: docker
name: Release
platform:
os: linux
arch: amd64
trigger:
ref:
- refs/tags/v*

steps:
- name: create-release
image: rfratto/seego
volumes:
- name: docker
path: /var/run/docker.sock
environment:
DOCKER_LOGIN:
from_secret: DOCKER_LOGIN
DOCKER_PASSWORD:
from_secret: DOCKER_PASSWORD
GITHUB_TOKEN:
from_secret: GITHUB_KEY
commands:
- apt-get install -y apt-transport-https ca-certificates curl gnupg lsb-release
- curl -fsSL https://download.docker.com/linux/debian/gpg | sudo apt-key add -
- add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/debian buster stable"
- apt-get update && apt-get install -y rubygems rpm nsis docker-ce docker-ce-cli containerd.io
- docker login -u $DOCKER_LOGIN -p $DOCKER_PASSWORD
- gem install --no-document fpm
- mkdir -p /usr/local/go/bin
- wget -q https://golang.org/dl/go1.16.5.linux-amd64.tar.gz
- tar -C /usr/local -xzf go1.16.5.linux-amd64.tar.gz
- rm go1.16.5.linux-amd64.tar.gz
- export PATH=$PATH:/usr/local/go/bin
- GO111MODULE=on go get -u github.com/mitchellh/gox github.com/tcnksm/ghr
- export PATH="$(go env GOPATH)/bin:$PATH"
- make -j4 BUILD_IN_CONTAINER=false RELEASE_BUILD=true RELEASE_TAG=${DRONE_TAG:-v0.0.0} publish
depends_on:
- Dist

volumes:
- name: docker
host:
path: /var/run/docker.sock
---
kind: signature
hmac: fe10154b59ce9b9446f781eb801b147c689f1f6e3194c2d8d20447c4e0715b6e

...
26 changes: 26 additions & 0 deletions .github/depcheck.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
# List of go modules to check for outdated-ness. The current version is
# obtained from the listing in go.mod.
go_modules:
- github.com/cortexproject/cortex
- github.com/grafana/loki
- github.com/justwatchcom/elasticsearch_exporter
- github.com/oliver006/redis_exporter
- github.com/prometheus/consul_exporter
- github.com/prometheus/memcached_exporter
- github.com/prometheus/statsd_exporter
- github.com/weaveworks/common
- go.opentelemetry.io/collector
- sigs.k8s.io/controller-runtime

# List of Github repos to check for newer tags. Only repos that are not listed
# explicitly in go.mod *OR* are in go.mod but replaced with a fork should be
# added here.
#
# The "current" version being used in the Agent must be provided explicitly as
# you can see below.
github_repos:
- github.com/google/dnsmasq_exporter v0.2.0
- github.com/ncabatoff/process-exporter v0.7.5
- github.com/prometheus/mysqld_exporter v0.12.1
- github.com/prometheus/prometheus v2.27.0
- github.com/wrouesnel/postgres_exporter v0.8.0
1 change: 1 addition & 0 deletions .github/stale.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ daysUntilClose: 7
exemptLabels:
- keepalive
- proposal
- outdated-dependency

# Label to use to identify a stale issue
staleLabel: stale
Expand Down
17 changes: 17 additions & 0 deletions .github/workflows/check_docs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name: Check docs
on: [pull_request]
jobs:
check-docs:
name: Check links in docs
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Check links in docs
uses: gaurav-nelson/github-action-markdown-link-check@v1
# checks all markdown files from /docs including all subfolders
with:
use-quiet-mode: 'yes'
use-verbose-mode: 'yes'
config-file: '.github/workflows/markdown.links.config.json'
folder-path: 'docs/,example/,production/'
69 changes: 0 additions & 69 deletions .github/workflows/containerize.yml

This file was deleted.

17 changes: 17 additions & 0 deletions .github/workflows/depcheck.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name: Check Dependencies
on:
workflow_dispatch: {}
schedule:
- cron: '0 0 * * *'
jobs:
check:
name: Check
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Invoke action
uses: rfratto/depcheck@main
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
Loading