Skip to content

Commit

Permalink
prepare for v0.20.0 release (#1041)
Browse files Browse the repository at this point in the history
  • Loading branch information
rfratto authored Oct 28, 2021
1 parent 8e76dfc commit 698faa4
Show file tree
Hide file tree
Showing 18 changed files with 37 additions and 34 deletions.
3 changes: 1 addition & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
# Main (unreleased)

- [ENHANCEMENT] Documenting security recommendations for the users used by the embedded exporters,
to give only the strictly necessary roles as per the official docs.
# v0.20.0 (2021-10-28)

- [FEATURE] Operator: The Grafana Agent Operator can now generate a Kubelet
service to allow a ServiceMonitor to collect Kubelet and cAdvisor metrics.
Expand Down
4 changes: 2 additions & 2 deletions docs/configuration/integrations/node-exporter-config.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,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.19.0 \
grafana/agent:v0.20.0 \
--config.file=/etc/agent-config/agent.yaml
```

Expand Down Expand Up @@ -66,7 +66,7 @@ metadata:
name: agent
spec:
containers:
- image: grafana/agent:v0.19.0
- image: grafana/agent:v0.20.0
name: agent
args:
- --config.file=/etc/agent-config/agent.yaml
Expand Down
4 changes: 2 additions & 2 deletions docs/configuration/integrations/process-exporter-config.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,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.19.0 \
grafana/agent:v0.20.0 \
--config.file=/etc/agent-config/agent.yaml
```

Expand All @@ -35,7 +35,7 @@ metadata:
name: agent
spec:
containers:
- image: grafana/agent:v0.19.0
- image: grafana/agent:v0.20.0
name: agent
args:
- --config.file=/etc/agent-config/agent.yaml
Expand Down
4 changes: 2 additions & 2 deletions docs/getting-started/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ See the list of [Community Projects](#community-projects) for the community-driv
docker run \
-v /tmp/agent:/etc/agent/data \
-v /path/to/config.yaml:/etc/agent/agent.yaml \
grafana/agent:v0.19.0
grafana/agent:v0.20.0
```

Replace `/tmp/agent` with the folder you wish to store WAL data in. WAL data is
Expand Down Expand Up @@ -76,7 +76,7 @@ Below is a list of community lead projects for working with Grafana Agent. These

A publically available release of a Grafana Agent Helm chart is maintained [here](https://github.com/DandyDeveloper/charts/tree/master/charts/grafana-agent). Contributions and improvements are welcomed. Full details on rolling out and supported options can be found in the [readme](https://github.com/DandyDeveloper/charts/blob/master/charts/grafana-agent/README.md).

This *does not* require the Grafana Agent Operator to rollout / deploy.
This *does not* require the Grafana Agent Operator to rollout / deploy.

### Juju (Charmed Operator)

Expand Down
4 changes: 2 additions & 2 deletions docs/operator/getting-started.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ spec:
serviceAccountName: grafana-agent-operator
containers:
- name: operator
image: grafana/agent-operator:v0.19.0
image: grafana/agent-operator:v0.20.0
args:
- --kubelet-service=default/kubelet
---
Expand Down Expand Up @@ -160,7 +160,7 @@ metadata:
labels:
app: grafana-agent
spec:
image: grafana/agent:v0.19.0
image: grafana/agent:v0.20.0
logLevel: info
serviceAccountName: grafana-agent
metrics:
Expand Down
2 changes: 1 addition & 1 deletion docs/upgrade-guide/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ receivers:
maintaining backwards compatibility.
Refer to the [deprecation announcement](#tempo-push_config-deprecation) for how to upgrade.

## v0.19.0
## v0.20.0

### Traces: Deprecation of "tempo" in config and metrics. (Deprecation)

Expand Down
25 changes: 14 additions & 11 deletions example/k3d/scripts/smoke-test.bash
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/usr/bin/env bash
#
# Usage:
# smoke-test.bash [-i] [-d] [-t <duration>]
# smoke-test.bash [-i] [-d] [-s] [-t <duration>]
#
# Dependencies:
# k3d >=3.0
Expand Down Expand Up @@ -45,31 +45,34 @@ ENTRYPOINT="run"
TEST_DURATION="3h"
IMPORT_IMAGES=""

while getopts "dt:ih" opt; do
while getopts "dt:ish" opt; do
case $opt in
d) ENTRYPOINT="cleanup" ;;
t) TEST_DURATION=$OPTARG ;;
i) IMPORT_IMAGES="yes" ;;
s) SKIP_CREATE="yes" ;;
h)
echo "Usage: $0 [-i] [-d] [-t <duration>]"
echo "Usage: $0 [-i] [-d] [-s] [-t <duration>]"
exit 0
;;
*)
echo "Usage: $0 [-i] [-d] [-t <duration>]"
echo "Usage: $0 [-i] [-d] [-s] [-t <duration>]"
exit 1
;;
esac
done

# Run runs the smoke test for $TEST_DURATION.
run() {
echo "--- Creating k3d cluster $K3D_CLUSTER_NAME"
k3d cluster create $K3D_CLUSTER_NAME \
--port 50080:80@loadbalancer \
--api-port 50443 \
--kubeconfig-update-default=true \
--kubeconfig-switch-context=true \
--wait >/dev/null
if [[ -z "$SKIP_CREATE" ]]; then
echo "--- Creating k3d cluster $K3D_CLUSTER_NAME"
k3d cluster create $K3D_CLUSTER_NAME \
--port 50080:80@loadbalancer \
--api-port 50443 \
--kubeconfig-update-default=true \
--kubeconfig-switch-context=true \
--wait >/dev/null
fi

# Give the cluster a little bit of time to settle before
# applying the environment
Expand Down
1 change: 1 addition & 0 deletions pkg/operator/defaults.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ var (
"v0.18.3",
"v0.18.4",
"v0.19.0",
"v0.20.0",

// NOTE(rfratto): when performing an upgrade, add the newest version above instead of changing the existing reference.
}
Expand Down
2 changes: 1 addition & 1 deletion production/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,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.19.0
grafana/agent:v0.20.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 @@ -48,7 +48,7 @@ PACKAGE_SYSTEM=${PACKAGE_SYSTEM:=}
#
# Global constants.
#
RELEASE_VERSION="0.19.0"
RELEASE_VERSION="0.20.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 @@ -66,7 +66,7 @@ spec:
valueFrom:
fieldRef:
fieldPath: spec.nodeName
image: grafana/agent:v0.19.0
image: grafana/agent:v0.20.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 @@ -64,7 +64,7 @@ spec:
valueFrom:
fieldRef:
fieldPath: spec.nodeName
image: grafana/agent:v0.19.0
image: grafana/agent:v0.20.0
imagePullPolicy: IfNotPresent
name: agent
ports:
Expand Down
2 changes: 1 addition & 1 deletion production/kubernetes/agent-traces.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ spec:
valueFrom:
fieldRef:
fieldPath: spec.nodeName
image: grafana/agent:v0.19.0
image: grafana/agent:v0.20.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.19.0'
'grafana/agent:v0.20.0'
2 changes: 1 addition & 1 deletion production/kubernetes/install-bare.sh
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ check_installed() {
check_installed curl
check_installed envsubst

MANIFEST_BRANCH=v0.19.0
MANIFEST_BRANCH=v0.20.0
MANIFEST_URL=${MANIFEST_URL:-https://raw.githubusercontent.com/grafana/agent/${MANIFEST_BRANCH}/production/kubernetes/agent-bare.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/traces.libsonnet') +
{
_images:: {
agent: 'grafana/agent:v0.19.0',
agentctl: 'grafana/agentctl:v0.19.0',
agent: 'grafana/agent:v0.20.0',
agentctl: 'grafana/agentctl:v0.20.0',
},

// new creates a new DaemonSet deployment of the grafana-agent. By default,
Expand Down
4 changes: 2 additions & 2 deletions production/tanka/grafana-agent/v2/internal/base.libsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ function(name='grafana-agent', namespace='') {
local this = self,

_images:: {
agent: 'grafana/agent:v0.19.0',
agentctl: 'grafana/agentctl:v0.19.0',
agent: 'grafana/agent:v0.20.0',
agentctl: 'grafana/agentctl:v0.20.0',
},
_config:: {
name: name,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ function(
) {
local _config = {
api: error 'api must be set',
image: 'grafana/agentctl:v0.19.0',
image: 'grafana/agentctl:v0.20.0',
schedule: '*/5 * * * *',
configs: [],
} + config,
Expand Down

0 comments on commit 698faa4

Please sign in to comment.