Skip to content

Commit

Permalink
Prepare for 0.15.0 (#626)
Browse files Browse the repository at this point in the history
* prepare for 0.15.0

- cut changelog
- fix date of 0.14.0 release
- add force_release.yml back to workflows to perform the release

* add missing space
  • Loading branch information
rfratto authored Jun 3, 2021
1 parent 9a1c255 commit 1cacbe2
Show file tree
Hide file tree
Showing 19 changed files with 154 additions and 28 deletions.
117 changes: 117 additions & 0 deletions .github/workflows/force_release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,117 @@
name: Force Release
on:
workflow_dispatch:
inputs:
tag:
description: "Tag to build for"
required: true
jobs:
test:
name: Test
runs-on: Linux
steps:
- name: Get build dependencies
run: sudo apt-get update && sudo apt-get install libsystemd-dev

- name: Set up Go 1.16
uses: actions/setup-go@v1
with:
go-version: 1.16
id: go

- name: Checkout code
uses: actions/checkout@v2
with:
ref: '${{ github.event.inputs.tag }}'

- name: Test
run: make test
agent-container:
name: Build agent Container
runs-on: Linux
needs: test
steps:
- name: Get build dependencies
run: sudo apt-get update && sudo apt-get install binfmt-support qemu-user-static

- name: Checkout code
uses: actions/checkout@v2
with:
ref: '${{ github.event.inputs.tag }}'

- name: Login to Docker Hub
run: docker login -u '${{ secrets.DOCKER_USER }}' -p '${{ secrets.DOCKER_PASS }}'

- name: Prepare buildx
run: |
docker run --rm --privileged multiarch/qemu-user-static --reset -p yes
docker buildx create --name builder --node builder --driver docker-container --use
docker buildx inspect --bootstrap
- name: Build container
run: |
export RELEASE_TAG=${{ github.event.inputs.tag }}
CROSS_BUILD=true RELEASE_BUILD=true make agent-image
agentctl-container:
name: Build agentctl Container
runs-on: Linux
needs: test
steps:
- name: Get build dependencies
run: sudo apt-get update && sudo apt-get install binfmt-support qemu-user-static

- name: Checkout code
uses: actions/checkout@v2
with:
ref: '${{ github.event.inputs.tag }}'

- name: Login to Docker Hub
run: docker login -u '${{ secrets.DOCKER_USER }}' -p '${{ secrets.DOCKER_PASS }}'

- name: Prepare buildx
run: |
docker run --rm --privileged multiarch/qemu-user-static --reset -p yes
docker buildx create --name builder --node builder --driver docker-container --use
docker buildx inspect --bootstrap
- name: Build container
run: |
export RELEASE_TAG=${{ github.event.inputs.tag }}
CROSS_BUILD=true RELEASE_BUILD=true make agentctl-image
release:
name: Release
needs: test
runs-on: Linux
steps:
- name: Get build dependencies
run: sudo apt-get update && sudo apt-get install libsystemd-dev

- name: Set up Go 1.16
uses: actions/setup-go@v1
with:
go-version: 1.16
id: go

- name: Install gox and ghr
run: |
pushd /
GO111MODULE=on go get -u \
github.com/mitchellh/gox \
github.com/tcnksm/ghr
popd
- name: Checkout code
uses: actions/checkout@v2
with:
ref: '${{ github.event.inputs.tag }}'

- name: Make Release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
# This is required so gox and ghr are available
export PATH="$(go env GOPATH)/bin:$PATH"
export RELEASE_TAG=${{ github.event.inputs.tag }}
make -j4 RELEASE_BUILD=true publish
17 changes: 12 additions & 5 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,27 +1,34 @@
# Main (unreleased)

# v0.15.0 (2021-06-03)

BREAKING CHANGE: Configuration of Tempo Autologging changed in this release.
Please review the [migration
guide](./docs/migration-guide.md) for details.

- [FEATURE] Add support for exemplars (@mapno)
- [FEATURE] Add support for exemplars. (@mapno)

- [ENHANCEMENT] Add the option to log to stdout instead of a Loki instance. (@joe-elliott)

- [ENHANCEMENT] Running the Agent as a DaemonSet with host_filter and role: pod
should no longer cause unnecessary load against the Kubernetes SD API.
(@rfratto)

- [ENHANCEMENT] Update Prometheus to v2.27.0, Loki to d88f3996eaa2 and Cortex to d382e1d80eaf.
Loki and Cortex are non-release builds, and were needed to support exemplars. (@mapno)
- [ENHANCEMENT] Update Prometheus to v2.27.0. (@mapno)

- [ENHANCEMENT] Update Loki dependency to d88f3996eaa2. This is a non-release
build, and was needed to support exemplars. (@mapno)

- [ENHANCEMENT] Update Cortex dependency to to d382e1d80eaf. This is a
non-release build, and was needed to support exemplars. (@mapno)

- [BUGFIX] Host filter relabeling rules should now work. (@rfratto)

- [BUGFIX] Fixed issue where span metrics where being reported with wrong time unit (@mapno)
- [BUGFIX] Fixed issue where span metrics where being reported with wrong time unit. (@mapno)

- [CHANGE] Intentionally order tracing processors. (@joe-elliott)

# v0.14.0 (2021-05-19)
# v0.14.0 (2021-05-24)

BREAKING CHANGE: This release has a breaking change for SigV4 support. Please
read the release notes carefully and our [migration
Expand Down
8 changes: 4 additions & 4 deletions docs/configuration-reference.md
Original file line number Diff line number Diff line change
Expand Up @@ -2312,7 +2312,7 @@ docker run \
-v "/proc:/host/proc:ro,rslave" \
-v /tmp/agent:/etc/agent \
-v /path/to/config.yaml:/etc/agent-config/agent.yaml \
grafana/agent:v0.14.0 \
grafana/agent:v0.15.0 \
--config.file=/etc/agent-config/agent.yaml
```

Expand Down Expand Up @@ -2352,7 +2352,7 @@ metadata:
name: agent
spec:
containers:
- image: grafana/agent:v0.14.0
- image: grafana/agent:v0.15.0
name: agent
args:
- --config.file=/etc/agent-config/agent.yaml
Expand Down Expand Up @@ -2624,7 +2624,7 @@ docker run \
-v "/proc:/proc:ro" \
-v /tmp/agent:/etc/agent \
-v /path/to/config.yaml:/etc/agent-config/agent.yaml \
grafana/agent:v0.14.0 \
grafana/agent:v0.15.0 \
--config.file=/etc/agent-config/agent.yaml
```

Expand All @@ -2641,7 +2641,7 @@ metadata:
name: agent
spec:
containers:
- image: grafana/agent:v0.14.0
- image: grafana/agent:v0.15.0
name: agent
args:
- --config.file=/etc/agent-config/agent.yaml
Expand Down
4 changes: 2 additions & 2 deletions docs/getting-started.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ Currently, there are five ways to install the agent:
### Docker Container

```
docker pull grafana/agent:v0.14.0
docker pull grafana/agent:v0.15.0
```

### Kubernetes Install Script
Expand Down Expand Up @@ -283,7 +283,7 @@ path of your Agent's YAML configuration file.
docker run \
-v /tmp/agent:/etc/agent \
-v /path/to/config.yaml:/etc/agent/agent.yaml \
grafana/agent:v0.14.0
grafana/agent:v0.15.0
```
### Locally
Expand Down
2 changes: 2 additions & 0 deletions docs/migration-guide.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
This is a guide detailing all breaking changes that have happened in prior
releases and how to migrate to newer versions.

# v0.15.0

## Tempo: `automatic_logging` changes

Tempo automatic logging previously assumed that the operator wanted to log
Expand Down
2 changes: 1 addition & 1 deletion production/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ directory on your host that you want the agent to store its WAL.
docker run \
-v /tmp/agent:/etc/agent/data \
-v /path/to/config.yaml:/etc/agent/agent.yaml \
grafana/agent:v0.14.0
grafana/agent:v0.15.0
```

## Running the Agent locally
Expand Down
2 changes: 1 addition & 1 deletion production/grafanacloud-install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ PACKAGE_SYSTEM=${PACKAGE_SYSTEM:=}
#
# Global constants.
#
RELEASE_VERSION="0.14.0"
RELEASE_VERSION="0.15.0"

RELEASE_URL="https://github.com/grafana/agent/releases/download/v${RELEASE_VERSION}"
DEB_URL="${RELEASE_URL}/grafana-agent-${RELEASE_VERSION}-1.${ARCH}.deb"
Expand Down
2 changes: 1 addition & 1 deletion production/kubernetes/agent-bare.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ spec:
- -config.file=/etc/agent/agent.yaml
command:
- /bin/agent
image: grafana/agent:v0.14.0
image: grafana/agent:v0.15.0
imagePullPolicy: IfNotPresent
name: agent
ports:
Expand Down
2 changes: 1 addition & 1 deletion production/kubernetes/agent-loki.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -328,7 +328,7 @@ spec:
valueFrom:
fieldRef:
fieldPath: spec.nodeName
image: grafana/agent:v0.14.0
image: grafana/agent:v0.15.0
imagePullPolicy: IfNotPresent
name: agent
ports:
Expand Down
4 changes: 2 additions & 2 deletions production/kubernetes/agent-sigv4.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -278,7 +278,7 @@ spec:
valueFrom:
fieldRef:
fieldPath: spec.nodeName
image: grafana/agent:v0.14.0
image: grafana/agent:v0.15.0
imagePullPolicy: IfNotPresent
name: agent
ports:
Expand Down Expand Up @@ -329,7 +329,7 @@ spec:
valueFrom:
fieldRef:
fieldPath: spec.nodeName
image: grafana/agent:v0.14.0
image: grafana/agent:v0.15.0
imagePullPolicy: IfNotPresent
name: agent
ports:
Expand Down
2 changes: 1 addition & 1 deletion production/kubernetes/agent-tempo.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ spec:
valueFrom:
fieldRef:
fieldPath: spec.nodeName
image: grafana/agent:v0.14.0
image: grafana/agent:v0.15.0
imagePullPolicy: IfNotPresent
name: agent
ports:
Expand Down
4 changes: 2 additions & 2 deletions production/kubernetes/agent.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -278,7 +278,7 @@ spec:
valueFrom:
fieldRef:
fieldPath: spec.nodeName
image: grafana/agent:v0.14.0
image: grafana/agent:v0.15.0
imagePullPolicy: IfNotPresent
name: agent
ports:
Expand Down Expand Up @@ -329,7 +329,7 @@ spec:
valueFrom:
fieldRef:
fieldPath: spec.nodeName
image: grafana/agent:v0.14.0
image: grafana/agent:v0.15.0
imagePullPolicy: IfNotPresent
name: agent
ports:
Expand Down
2 changes: 1 addition & 1 deletion production/kubernetes/build/lib/version.libsonnet
Original file line number Diff line number Diff line change
@@ -1 +1 @@
'grafana/agent:v0.14.0'
'grafana/agent:v0.15.0'
2 changes: 1 addition & 1 deletion production/kubernetes/install-bare.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ check_installed() {
check_installed curl
check_installed envsubst

MANIFEST_BRANCH=v0.14.0
MANIFEST_BRANCH=v0.15.0
MANIFEST_URL=${MANIFEST_URL:-https://raw.githubusercontent.com/grafana/agent/${MANIFEST_BRANCH}/production/kubernetes/agent-bare.yaml}
NAMESPACE=${NAMESPACE:-default}

Expand Down
2 changes: 1 addition & 1 deletion production/kubernetes/install-loki.sh
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ check_installed() {
check_installed curl
check_installed envsubst

MANIFEST_BRANCH=v0.14.0
MANIFEST_BRANCH=v0.15.0
MANIFEST_URL=${MANIFEST_URL:-https://raw.githubusercontent.com/grafana/agent/${MANIFEST_BRANCH}/production/kubernetes/agent-loki.yaml}
NAMESPACE=${NAMESPACE:-default}

Expand Down
2 changes: 1 addition & 1 deletion production/kubernetes/install-sigv4.sh
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ check_installed() {
check_installed curl
check_installed envsubst

MANIFEST_BRANCH=v0.14.0
MANIFEST_BRANCH=v0.15.0
MANIFEST_URL=${MANIFEST_URL:-https://raw.githubusercontent.com/grafana/agent/${MANIFEST_BRANCH}/production/kubernetes/agent-sigv4.yaml}
NAMESPACE=${NAMESPACE:-default}
ROLE_ARN=${ROLE_ARN:-}
Expand Down
2 changes: 1 addition & 1 deletion production/kubernetes/install-tempo.sh
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ check_installed() {
check_installed curl
check_installed envsubst

MANIFEST_BRANCH=v0.14.0
MANIFEST_BRANCH=v0.15.0
MANIFEST_URL=${MANIFEST_URL:-https://raw.githubusercontent.com/grafana/agent/${MANIFEST_BRANCH}/production/kubernetes/agent-tempo.yaml}
NAMESPACE=${NAMESPACE:-default}

Expand Down
2 changes: 1 addition & 1 deletion production/kubernetes/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ check_installed() {
check_installed curl
check_installed envsubst

MANIFEST_BRANCH=v0.14.0
MANIFEST_BRANCH=v0.15.0
MANIFEST_URL=${MANIFEST_URL:-https://raw.githubusercontent.com/grafana/agent/${MANIFEST_BRANCH}/production/kubernetes/agent.yaml}
NAMESPACE=${NAMESPACE:-default}

Expand Down
4 changes: 2 additions & 2 deletions production/tanka/grafana-agent/v1/main.libsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ local service = k.core.v1.service;
(import './lib/tempo.libsonnet') +
{
_images:: {
agent: 'grafana/agent:v0.14.0',
agentctl: 'grafana/agentctl:v0.14.0',
agent: 'grafana/agent:v0.15.0',
agentctl: 'grafana/agentctl:v0.15.0',
},

// new creates a new DaemonSet deployment of the grafana-agent. By default,
Expand Down

0 comments on commit 1cacbe2

Please sign in to comment.