You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The agent is configured using a YAML file. By default, it looks for `agent.yaml` in the current directory, but you can specify a different file using the `--config` command-line option.
22
-
23
-
### Basic Configuration Example
24
-
25
-
```yaml
26
-
agent:
27
-
# Unique identifier for this agent instance
28
-
id: "agent-1"
29
-
# Hostname for this agent (defaults to system hostname if not specified)
30
-
hostname: "redis-telemetry-node"
31
-
# Key-value labels to attach to this agent
32
-
labels:
33
-
env: "production"
34
-
region: "us-west-2"
35
-
# Log level: trace, debug, info, warn, error
36
-
log_level: "info"
37
-
# Collection interval with time unit (s, m, h)
38
-
collection_interval: "60s"
39
-
40
-
server:
41
-
# URL of the Radar server's gRPC endpoint
42
-
grpc_url: "https://grpc.radar.redis.io:443"
43
-
# API key for authenticating with the Radar server
44
-
api_key: "your-api-key-here"
45
-
# Send interval with time unit (s, m, h)
46
-
send_interval: "60s"
47
-
# Maximum number of batches to queue
48
-
max_batch_size: 100
49
-
50
-
# Redis Standalone Instance
51
-
deployments:
52
-
- id: "redis-prod-1"
53
-
name: "Production Redis"
54
-
type: "STANDALONE"
55
-
redis_url: "redis://redis.example.com:6379"
56
-
```
57
-
58
-
### Deployment Configuration
59
-
60
-
The agent can monitor different types of Redis deployments:
The `credentials` section allows you to specify authentication information for Redis instances and REST APIs. You can use environment variables for sensitive information:
109
-
110
-
```yaml
111
-
credentials:
112
-
redis:
113
-
username: "${REDIS_USERNAME}"
114
-
password: "${REDIS_PASSWORD}"
115
-
enterprise_api:
116
-
basic_auth: "${REDIS_ENTERPRISE_AUTH}"
117
-
cloud_api:
118
-
account_key: "${REDIS_CLOUD_ACCOUNT_KEY}"
119
-
user_key: "${REDIS_CLOUD_USER_KEY}"
120
-
```
121
-
122
-
When a Redis URL doesn't include authentication, the agent will automatically apply the credentials from the `redis` section. If a Redis URL already includes authentication (e.g., `redis://user:pass@host:port`), those credentials will be preserved.
123
-
124
-
### Environment Variable Overrides
125
-
126
-
Configuration values can be overridden using environment variables:
127
-
128
-
```bash
129
-
# Override agent ID
130
-
export AGENT_AGENT_ID="custom-agent-id"
131
-
132
-
# Override deployment name (for the first deployment)
0 commit comments