Update grafana_agent/agent.yaml.example
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
MAAS |
Fix Released
|
High
|
Alexsander de Souza | ||
MAAS documentation |
In Progress
|
High
|
Bill Wear |
Bug Description
The current example for agent configuration file has deprecated fields.
More information in:
https:/
We need to update our example, and our guide to set up metrics ( https:/
Example, using:
agent-linux-
root@diego-
server:
http_
http_listen_port: 3100
grpc_
grpc_listen_port: 9095
log_level: info
metrics:
wal_directory: ${AGENT_WAL_DIR}
global:
root@diego-
2022-11-25 13:54:14.895144 I | error loading config file /opt/agent/
line 2: field http_listen_address not found in type server.config
line 3: field http_listen_port not found in type server.config
line 4: field grpc_listen_address not found in type server.config
line 5: field grpc_listen_port not found in type server.config
Related branches
- Björn Tillenius: Approve
- MAAS Lander: Approve
-
Diff: 13 lines (+0/-4)1 file modifiedcontrib/grafana_agent/agent.yaml.example (+0/-4)
Changed in maas: | |
status: | New → Triaged |
importance: | Undecided → High |
milestone: | none → 3.3.0 |
Changed in maas: | |
assignee: | nobody → Bill Wear (billwear) |
assignee: | Bill Wear (billwear) → nobody |
Changed in maas-offline-docs: | |
status: | New → Triaged |
importance: | Undecided → High |
assignee: | nobody → Bill Wear (billwear) |
Changed in maas: | |
assignee: | nobody → Alexsander de Souza (alexsander-souza) |
Changed in maas: | |
status: | Triaged → In Progress |
Changed in maas: | |
status: | In Progress → Fix Committed |
Changed in maas: | |
milestone: | 3.3.0 → 3.3.0-rc1 |
status: | Fix Committed → Fix Released |
Changed in maas-doc: | |
status: | Triaged → In Progress |
new flags are:
- server.http.address
- server.grpc.address
So we have to remove: http_listen_ address, http_listen_port, grpc_listen_address and grpc_listen_port fields from config file.
And execute this line:
HOSTNAME= "maas-system- maas" AGENT_WAL_ DIR="/var/ lib/grafana- agent/wal" AGENT_POS_ DIR="/var/ lib/grafana- agent/positions " PROMETHEUS_ REMOTE_ WRITE_URL= "http:// 10.245. 136.5:9090/ api/v1/ write" LOKI_API_URL="http:// 10.245. 136.5:3100/ loki/api/ v1/push" MAAS_LOGS= "/var/snap/ maas/common/ log/" MAAS_IS_ REGION= "true" MAAS_IS_RACK="true" MAAS_AZ="default" agent-linux- amd64 -config.expand-env -config. file=/opt/ agent/agent. yml -server. http.address= "0.0.0. 0:3100" -server. grpc.address= "0.0.0. 0:9095"
/opt/agent/