Skip to content

Commit 1b91b8d

Browse files
authored
Rename radar-agent to radar-collector throughout project (#25)
* Rename radar-agent to radar-collector throughout project - Renamed radar-agent-config-sample.yml to radar-collector-config-sample.yml - Updated config file: changed 'agent' section to 'collector' section - Updated README.md: changed all references from agent to collector - Updated GitHub workflow: changed binary names, image names, and secrets - Updated all Dockerfiles: changed binary paths, environment variables, and config paths - Updated docker/README.md: changed registry URLs and documentation - Updated utilities/agent-provisioning/README.md: changed all references to collector - Changed environment variables from AGENT_* to COLLECTOR_* - Changed directory paths from /etc/agent to /etc/collector - Changed binary names from radar-agent-* to radar-collector-* - Changed Docker image names to radar-collector - Changed repository dispatch event to radar-collector-built * Keep secret name as RADAR_AGENT_TOKEN * Rename utilities/agent-provisioning to utilities/collector-provisioning - Renamed directory from agent-provisioning to collector-provisioning - Updated BUILD.md to reference new directory path
1 parent 12147e5 commit 1b91b8d

20 files changed

+195
-195
lines changed

.github/workflows/release.yml

Lines changed: 41 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,23 @@
1-
name: Build and Release Agent
1+
name: Build and Release Collector
22

33
env:
44
REGISTRY: ghcr.io
5-
IMAGE_NAME: redis-field-engineering/radar-agent
5+
IMAGE_NAME: redis-field-engineering/radar-collector
66

77
permissions:
88
contents: write
99
packages: write
1010

1111
on:
1212
repository_dispatch:
13-
types: [radar-agent-built]
13+
types: [radar-collector-built]
1414

1515
jobs:
1616
copy-binaries:
1717
name: Download Binaries from Radar Repo
1818
runs-on: ubuntu-latest
1919
steps:
20-
- name: Checkout radar-agent repo
20+
- name: Checkout radar-collector repo
2121
uses: actions/checkout@v4
2222

2323
- name: Download binaries from radar repository workflow
@@ -31,45 +31,45 @@ jobs:
3131
- name: Prepare binaries for Docker build and release
3232
run: |
3333
# Copy all binaries to root for consistent access
34-
cp ./binaries/radar-agent-linux/radar-agent-linux ./radar-agent-linux
35-
cp ./binaries/radar-agent-linux-musl/radar-agent-linux-musl ./radar-agent-linux-musl
36-
cp ./binaries/radar-agent-linux-arm64/radar-agent-linux-arm64 ./radar-agent-linux-arm64
37-
cp ./binaries/radar-agent-linux-arm64-musl/radar-agent-linux-arm64-musl ./radar-agent-linux-arm64-musl
38-
cp ./binaries/radar-agent-darwin/radar-agent-darwin ./radar-agent-darwin
34+
cp ./binaries/radar-collector-linux/radar-collector-linux ./radar-collector-linux
35+
cp ./binaries/radar-collector-linux-musl/radar-collector-linux-musl ./radar-collector-linux-musl
36+
cp ./binaries/radar-collector-linux-arm64/radar-collector-linux-arm64 ./radar-collector-linux-arm64
37+
cp ./binaries/radar-collector-linux-arm64-musl/radar-collector-linux-arm64-musl ./radar-collector-linux-arm64-musl
38+
cp ./binaries/radar-collector-darwin/radar-collector-darwin ./radar-collector-darwin
3939
4040
# Make binaries executable
41-
chmod +x radar-agent-*
41+
chmod +x radar-collector-*
4242
4343
# Log what we received
4444
echo "✅ Downloaded binaries for tag: ${{ github.event.client_payload.ref }}"
4545
4646
# Verify binaries
47-
ls -la radar-agent-*
47+
ls -la radar-collector-*
4848
4949
- name: Upload binaries for Docker build and release
5050
uses: actions/upload-artifact@v4
5151
with:
52-
name: agent-binaries
52+
name: collector-binaries
5353
path: |
54-
radar-agent-linux
55-
radar-agent-linux-musl
56-
radar-agent-linux-arm64
57-
radar-agent-linux-arm64-musl
58-
radar-agent-darwin
54+
radar-collector-linux
55+
radar-collector-linux-musl
56+
radar-collector-linux-arm64
57+
radar-collector-linux-arm64-musl
58+
radar-collector-darwin
5959
retention-days: 1
6060

6161
docker:
6262
name: Build and Push Docker Images
6363
needs: [copy-binaries]
6464
runs-on: ubuntu-latest
6565
steps:
66-
- name: Checkout radar-agent repo
66+
- name: Checkout radar-collector repo
6767
uses: actions/checkout@v4
6868

6969
- name: Download binaries
7070
uses: actions/download-artifact@v4
7171
with:
72-
name: agent-binaries
72+
name: collector-binaries
7373
path: ./
7474

7575
- name: Set up QEMU
@@ -91,7 +91,7 @@ jobs:
9191
with:
9292
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
9393
labels: |
94-
org.opencontainers.image.source=https://github.com/redis-field-engineering/radar-agent
94+
org.opencontainers.image.source=https://github.com/redis-field-engineering/radar-collector
9595
tags: |
9696
type=ref,event=branch
9797
type=ref,event=pr
@@ -136,13 +136,13 @@ jobs:
136136
needs: [docker]
137137
runs-on: ubuntu-latest
138138
steps:
139-
- name: Checkout radar-agent repo
139+
- name: Checkout radar-collector repo
140140
uses: actions/checkout@v4
141141

142142
- name: Download binaries
143143
uses: actions/download-artifact@v4
144144
with:
145-
name: agent-binaries
145+
name: collector-binaries
146146
path: ./
147147

148148
- name: Get tag name
@@ -169,63 +169,63 @@ jobs:
169169
uses: softprops/action-gh-release@v2
170170
with:
171171
tag_name: ${{ steps.tag.outputs.tag_name }}
172-
name: "Radar Agent ${{ steps.tag.outputs.tag_name }}"
172+
name: "Radar Collector ${{ steps.tag.outputs.tag_name }}"
173173
files: |
174-
radar-agent-linux
175-
radar-agent-linux-musl
176-
radar-agent-linux-arm64
177-
radar-agent-linux-arm64-musl
178-
radar-agent-darwin
174+
radar-collector-linux
175+
radar-collector-linux-musl
176+
radar-collector-linux-arm64
177+
radar-collector-linux-arm64-musl
178+
radar-collector-darwin
179179
make_latest: true
180180
body: |
181-
## Radar Agent Release ${{ steps.tag.outputs.tag_name }}
181+
## Radar Collector Release ${{ steps.tag.outputs.tag_name }}
182182
183183
### Quick Install
184184
185185
**Linux AMD64 (glibc):**
186186
```bash
187-
curl -L "https://github.com/redis-field-engineering/radar-agent/releases/download/${{ steps.tag.outputs.tag_name }}/radar-agent-linux" -o radar-agent
187+
curl -L "https://github.com/redis-field-engineering/radar-collector/releases/download/${{ steps.tag.outputs.tag_name }}/radar-collector-linux" -o radar-collector
188188
```
189189
190190
**Linux AMD64 (musl):**
191191
```bash
192-
curl -L "https://github.com/redis-field-engineering/radar-agent/releases/download/${{ steps.tag.outputs.tag_name }}/radar-agent-linux-musl" -o radar-agent
192+
curl -L "https://github.com/redis-field-engineering/radar-collector/releases/download/${{ steps.tag.outputs.tag_name }}/radar-collector-linux-musl" -o radar-collector
193193
```
194194
195195
**Linux ARM64 (glibc):**
196196
```bash
197-
curl -L "https://github.com/redis-field-engineering/radar-agent/releases/download/${{ steps.tag.outputs.tag_name }}/radar-agent-linux-arm64" -o radar-agent
197+
curl -L "https://github.com/redis-field-engineering/radar-collector/releases/download/${{ steps.tag.outputs.tag_name }}/radar-collector-linux-arm64" -o radar-collector
198198
```
199199
200200
**Linux ARM64 (musl - for Alpine):**
201201
```bash
202-
curl -L "https://github.com/redis-field-engineering/radar-agent/releases/download/${{ steps.tag.outputs.tag_name }}/radar-agent-linux-arm64-musl" -o radar-agent
202+
curl -L "https://github.com/redis-field-engineering/radar-collector/releases/download/${{ steps.tag.outputs.tag_name }}/radar-collector-linux-arm64-musl" -o radar-collector
203203
```
204204
205205
**macOS (Apple Silicon):**
206206
```bash
207-
curl -L "https://github.com/redis-field-engineering/radar-agent/releases/download/${{ steps.tag.outputs.tag_name }}/radar-agent-darwin" -o radar-agent
207+
curl -L "https://github.com/redis-field-engineering/radar-collector/releases/download/${{ steps.tag.outputs.tag_name }}/radar-collector-darwin" -o radar-collector
208208
```
209209
210210
**Install binary:**
211211
```bash
212-
chmod +x radar-agent
213-
sudo cp radar-agent /usr/local/bin/radar-agent
212+
chmod +x radar-collector
213+
sudo cp radar-collector /usr/local/bin/radar-collector
214214
```
215215
216216
**Docker (Multi-Platform - AMD64 & ARM64):**
217217
```bash
218218
# Latest (Debian-based, works on both AMD64 and ARM64)
219-
docker pull ghcr.io/redis-field-engineering/radar-agent:latest
219+
docker pull ghcr.io/redis-field-engineering/radar-collector:latest
220220
221221
# Specific version
222-
docker pull ghcr.io/redis-field-engineering/radar-agent:${{ steps.tag.outputs.tag_name }}
222+
docker pull ghcr.io/redis-field-engineering/radar-collector:${{ steps.tag.outputs.tag_name }}
223223
224224
# Alpine (recommended for minimal size)
225-
docker pull ghcr.io/redis-field-engineering/radar-agent:alpine-latest
226-
225+
docker pull ghcr.io/redis-field-engineering/radar-collector:alpine-latest
226+
227227
# Debian
228-
docker pull ghcr.io/redis-field-engineering/radar-agent:debian-latest
228+
docker pull ghcr.io/redis-field-engineering/radar-collector:debian-latest
229229
```
230230
231231
### Platform Support

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
# Radar Agent
1+
# Radar Collector
22

3-
A telemetry agent that collects Redis metrics from configured deployments and sends them to a gRPC server for monitoring and analysis.
3+
A telemetry collector that collects Redis metrics from configured deployments and sends them to a gRPC server for monitoring and analysis.
44

55
## Overview
66

7-
Radar Agent connects to one or more Redis instances or deployments, collects metrics and configuration data at regular intervals, and forwards this data to a central gRPC server. The agent supports various Redis deployment types including:
7+
Radar Collector connects to one or more Redis instances or deployments, collects metrics and configuration data at regular intervals, and forwards this data to a central gRPC server. The collector supports various Redis deployment types including:
88

99
- Standalone instances
1010
- Redis Enterprise clusters
@@ -18,11 +18,11 @@ For complete documentation including installation, configuration, and usage inst
1818

1919
## Releases
2020

21-
Docker images and pre-built binaries are available from the [releases page](https://github.com/redis-field-engineering/radar-agent/releases).
21+
Docker images and pre-built binaries are available from the [releases page](https://github.com/redis-field-engineering/radar-collector/releases).
2222

2323
## Support
2424

2525
For issues, questions, or feedback:
26-
- Open an issue on [GitHub](https://github.com/redis-field-engineering/radar-agent/issues)
26+
- Open an issue on [GitHub](https://github.com/redis-field-engineering/radar-collector/issues)
2727
2828

docker/Dockerfile

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ FROM debian:bookworm-slim
22

33
ARG BINARY
44

5-
LABEL org.opencontainers.image.source="https://github.com/redis-field-engineering/radar-agent" \
5+
LABEL org.opencontainers.image.source="https://github.com/redis-field-engineering/radar-collector" \
66
org.opencontainers.image.licenses="Redis, Inc." \
77
org.opencontainers.image.authors="Radar Team"
88

@@ -16,29 +16,29 @@ RUN apt-get update && \
1616
adduser --disabled-password --gecos "" appuser
1717

1818
# Create necessary directories
19-
RUN mkdir -p /certs /etc/agent /home/appuser/bin && \
20-
chown -R appuser:appuser /certs /etc/agent /home/appuser
19+
RUN mkdir -p /certs /etc/collector /home/appuser/bin && \
20+
chown -R appuser:appuser /certs /etc/collector /home/appuser
2121

2222
# Copy default config (customers may override via volume)
23-
COPY --chown=appuser:appuser radar-agent-config-sample.yml /etc/agent/config.yaml
23+
COPY --chown=appuser:appuser radar-collector-config-sample.yml /etc/collector/config.yaml
2424

25-
# Copy the agent binary
26-
COPY ${BINARY} /usr/local/bin/radar-agent
27-
RUN chmod +x /usr/local/bin/radar-agent
25+
# Copy the collector binary
26+
COPY ${BINARY} /usr/local/bin/radar-collector
27+
RUN chmod +x /usr/local/bin/radar-collector
2828

2929
USER appuser
3030

3131
# Environment defaults
32-
ENV AGENT_CONFIG=/etc/agent/config.yaml \
33-
AGENT_TLS_CERT=/certs/server.pem \
34-
AGENT_TLS_KEY=/certs/server.key
32+
ENV COLLECTOR_CONFIG=/etc/collector/config.yaml \
33+
COLLECTOR_TLS_CERT=/certs/server.pem \
34+
COLLECTOR_TLS_KEY=/certs/server.key
3535

3636
# Expose volumes for certs and config
37-
VOLUME ["/certs", "/etc/agent"]
37+
VOLUME ["/certs", "/etc/collector"]
3838

3939
# Healthcheck for orchestrators
4040
HEALTHCHECK --interval=30s --timeout=5s \
41-
CMD ["radar-agent", "--health"] || exit 1
41+
CMD ["radar-collector", "--health"] || exit 1
4242

43-
ENTRYPOINT ["radar-agent"]
44-
CMD ["--config", "/etc/agent/config.yaml"]
43+
ENTRYPOINT ["radar-collector"]
44+
CMD ["--config", "/etc/collector/config.yaml"]

docker/Dockerfile.alpine

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ FROM alpine:3.18
22

33
ARG BINARY
44

5-
LABEL org.opencontainers.image.source="https://github.com/redis-field-engineering/radar" \
5+
LABEL org.opencontainers.image.source="https://github.com/redis-field-engineering/radar-collector" \
66
org.opencontainers.image.licenses="Redis, Inc." \
77
org.opencontainers.image.authors="Radar Team"
88

@@ -11,29 +11,29 @@ RUN apk add --no-cache ca-certificates
1111

1212
# Create non-root user and necessary directories
1313
RUN adduser -D appuser \
14-
&& mkdir -p /certs /etc/agent /home/appuser/bin \
15-
&& chown -R appuser:appuser /certs /etc/agent /home/appuser
14+
&& mkdir -p /certs /etc/collector /home/appuser/bin \
15+
&& chown -R appuser:appuser /certs /etc/collector /home/appuser
1616

1717
# Copy default config (customers may override via volume)
18-
COPY --chown=appuser:appuser radar-agent-config-sample.yml /etc/agent/config.yaml
18+
COPY --chown=appuser:appuser radar-collector-config-sample.yml /etc/collector/config.yaml
1919

20-
# Copy the agent binary
21-
COPY ${BINARY} /usr/local/bin/radar-agent
22-
RUN chmod +x /usr/local/bin/radar-agent
20+
# Copy the collector binary
21+
COPY ${BINARY} /usr/local/bin/radar-collector
22+
RUN chmod +x /usr/local/bin/radar-collector
2323
USER appuser
2424

2525
# Environment defaults
2626
ENV PATH="/home/appuser/bin:${PATH}" \
27-
AGENT_CONFIG=/etc/agent/config.yaml \
28-
AGENT_TLS_CERT=/certs/server.pem \
29-
AGENT_TLS_KEY=/certs/server.key
27+
COLLECTOR_CONFIG=/etc/collector/config.yaml \
28+
COLLECTOR_TLS_CERT=/certs/server.pem \
29+
COLLECTOR_TLS_KEY=/certs/server.key
3030

3131
# Expose volumes for certs and config
32-
VOLUME ["/certs", "/etc/agent"]
32+
VOLUME ["/certs", "/etc/collector"]
3333

3434
# Healthcheck for orchestrators
3535
HEALTHCHECK --interval=30s --timeout=5s \
36-
CMD ["radar-agent", "--health"] || exit 1
36+
CMD ["radar-collector", "--health"] || exit 1
3737

38-
ENTRYPOINT ["radar-agent"]
39-
CMD ["--config", "/etc/agent/config.yaml"]
38+
ENTRYPOINT ["radar-collector"]
39+
CMD ["--config", "/etc/collector/config.yaml"]

docker/Dockerfile.alpine.multiplatform

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ FROM alpine:3.18
33
# TARGETARCH is automatically set by Docker buildx (amd64, arm64, etc.)
44
ARG TARGETARCH
55

6-
LABEL org.opencontainers.image.source="https://github.com/redis-field-engineering/radar-agent" \
6+
LABEL org.opencontainers.image.source="https://github.com/redis-field-engineering/radar-collector" \
77
org.opencontainers.image.licenses="Redis, Inc." \
88
org.opencontainers.image.authors="Radar Team"
99

@@ -14,36 +14,36 @@ RUN apk add --no-cache \
1414
adduser -D -g "" appuser
1515

1616
# Create necessary directories
17-
RUN mkdir -p /certs /etc/agent /home/appuser/bin && \
18-
chown -R appuser:appuser /certs /etc/agent /home/appuser
17+
RUN mkdir -p /certs /etc/collector /home/appuser/bin && \
18+
chown -R appuser:appuser /certs /etc/collector /home/appuser
1919

2020
# Copy default config (customers may override via volume)
21-
COPY --chown=appuser:appuser radar-agent-config-sample.yml /etc/agent/config.yaml
21+
COPY --chown=appuser:appuser radar-collector-config-sample.yml /etc/collector/config.yaml
2222

2323
# Copy the correct binary based on architecture
2424
# For Alpine, we use musl binaries for both AMD64 and ARM64
25-
COPY radar-agent-linux* /tmp/
25+
COPY radar-collector-linux* /tmp/
2626
RUN if [ "$TARGETARCH" = "amd64" ]; then \
27-
cp /tmp/radar-agent-linux-musl /usr/local/bin/radar-agent; \
27+
cp /tmp/radar-collector-linux-musl /usr/local/bin/radar-collector; \
2828
elif [ "$TARGETARCH" = "arm64" ]; then \
29-
cp /tmp/radar-agent-linux-arm64-musl /usr/local/bin/radar-agent; \
29+
cp /tmp/radar-collector-linux-arm64-musl /usr/local/bin/radar-collector; \
3030
fi && \
31-
chmod +x /usr/local/bin/radar-agent && \
32-
rm -rf /tmp/radar-agent-*
31+
chmod +x /usr/local/bin/radar-collector && \
32+
rm -rf /tmp/radar-collector-*
3333

3434
USER appuser
3535

3636
# Environment defaults
37-
ENV AGENT_CONFIG=/etc/agent/config.yaml \
38-
AGENT_TLS_CERT=/certs/server.pem \
39-
AGENT_TLS_KEY=/certs/server.key
37+
ENV COLLECTOR_CONFIG=/etc/collector/config.yaml \
38+
COLLECTOR_TLS_CERT=/certs/server.pem \
39+
COLLECTOR_TLS_KEY=/certs/server.key
4040

4141
# Expose volumes for certs and config
42-
VOLUME ["/certs", "/etc/agent"]
42+
VOLUME ["/certs", "/etc/collector"]
4343

4444
# Healthcheck for orchestrators
4545
HEALTHCHECK --interval=30s --timeout=5s \
46-
CMD ["radar-agent", "--health"] || exit 1
46+
CMD ["radar-collector", "--health"] || exit 1
4747

48-
ENTRYPOINT ["radar-agent"]
49-
CMD ["--config", "/etc/agent/config.yaml"]
48+
ENTRYPOINT ["radar-collector"]
49+
CMD ["--config", "/etc/collector/config.yaml"]

0 commit comments

Comments
 (0)