Skip to content

Commit

Permalink
update agent version and config in development (#6545)
Browse files Browse the repository at this point in the history
  • Loading branch information
ying-jeanne authored Nov 2, 2023
1 parent 6208aab commit dc6ff68
Show file tree
Hide file tree
Showing 10 changed files with 14 additions and 17 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
server:
log_level: debug
http_listen_port: 9091

prometheus:
global:
Expand Down
8 changes: 4 additions & 4 deletions development/mimir-microservices-mode/docker-compose.jsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -305,7 +305,7 @@ std.manifestYamlDoc({

prometheus:: {
prometheus: {
image: 'prom/prometheus:v2.45.0',
image: 'prom/prometheus:v2.47.2',
command: [
'--config.file=/etc/prometheus/prometheus.yaml',
'--enable-feature=exemplar-storage',
Expand All @@ -322,7 +322,7 @@ std.manifestYamlDoc({

grafana:: {
grafana: {
image: 'grafana/grafana:9.4.3',
image: 'grafana/grafana:10.1.5',
environment: [
'GF_AUTH_ANONYMOUS_ENABLED=true',
'GF_AUTH_ANONYMOUS_ORG_ROLE=Admin',
Expand All @@ -340,8 +340,8 @@ std.manifestYamlDoc({
// Scrape the metrics also with the Grafana agent (useful to test metadata ingestion
// until metadata remote write is not supported by Prometheus).
'grafana-agent': {
image: 'grafana/agent:v0.21.2',
command: ['-config.file=/etc/agent-config/grafana-agent.yaml', '-prometheus.wal-directory=/tmp'],
image: 'grafana/agent:v0.37.3',
command: ['-config.file=/etc/agent-config/grafana-agent.yaml', '-metrics.wal-directory=/tmp', '-server.http.address=127.0.0.1:9091'],
volumes: ['./config:/etc/agent-config'],
ports: ['9091:9091'],
},
Expand Down
4 changes: 2 additions & 2 deletions development/mimir-microservices-mode/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@
"environment":
- "GF_AUTH_ANONYMOUS_ENABLED=true"
- "GF_AUTH_ANONYMOUS_ORG_ROLE=Admin"
"image": "grafana/grafana:9.4.3"
"image": "grafana/grafana:10.1.5"
"ports":
- "3000:3000"
"volumes":
Expand Down Expand Up @@ -307,7 +307,7 @@
- "--config.file=/etc/prometheus/prometheus.yaml"
- "--enable-feature=exemplar-storage"
- "--enable-feature=native-histograms"
"image": "prom/prometheus:v2.45.0"
"image": "prom/prometheus:v2.47.2"
"ports":
- "9090:9090"
"volumes":
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
server:
log_level: debug
http_listen_port: 9091

prometheus:
global:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ services:
# until metadata remote write is not supported by Prometheus).
grafana-agent:
image: grafana/agent:v0.37.3
command: ["-config.file=/etc/agent-config/grafana-agent.yaml", "-prometheus.wal-directory=/tmp"]
command: ["-config.file=/etc/agent-config/grafana-agent.yaml", "-metrics.wal-directory=/tmp", "-server.http.address=127.0.0.1:9091"]
volumes:
- ./config:/etc/agent-config
ports:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
server:
log_level: debug
http_listen_port: 9091

prometheus:
global:
Expand Down
4 changes: 2 additions & 2 deletions development/mimir-monolithic-mode/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ services:
profiles:
- grafana-agent-static
image: grafana/agent:v0.37.3
command: ["-config.file=/etc/agent-config/grafana-agent.yaml", "-prometheus.wal-directory=/tmp"]
command: ["-config.file=/etc/agent-config/grafana-agent.yaml", "-metrics.wal-directory=/tmp", "-server.http.address=127.0.0.1:9091"]
volumes:
- ./config:/etc/agent-config
ports:
Expand All @@ -57,7 +57,7 @@ services:
image: grafana/agent:v0.37.3
environment:
- AGENT_MODE=flow
command: ["run", "--server.http.listen-addr=0.0.0.0:9092", "/etc/agent/config.river"]
command: ["run", "--server.http.address=0.0.0.0:9092", "/etc/agent/config.river"]
volumes:
- ./config/grafana-agent.river:/etc/agent/config.river
ports:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
server:
log_level: info
http_listen_port: 9091

prometheus:
global:
Expand Down
4 changes: 2 additions & 2 deletions development/mimir-read-write-mode/docker-compose.jsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -112,8 +112,8 @@ std.manifestYamlDoc({
// Scrape the metrics also with the Grafana agent (useful to test metadata ingestion
// until metadata remote write is not supported by Prometheus).
'grafana-agent': {
image: 'grafana/agent:v0.21.2',
command: ['-config.file=/etc/agent-config/grafana-agent.yaml', '-prometheus.wal-directory=/tmp'],
image: 'grafana/agent:v0.37.3',
command: ['-config.file=/etc/agent-config/grafana-agent.yaml', '-metrics.wal-directory=/tmp', '-server.http.address=127.0.0.1:9091'],
volumes: ['./config:/etc/agent-config'],
ports: ['9091:9091'],
},
Expand Down
5 changes: 3 additions & 2 deletions development/mimir-read-write-mode/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,9 @@
"grafana-agent":
"command":
- "-config.file=/etc/agent-config/grafana-agent.yaml"
- "-prometheus.wal-directory=/tmp"
"image": "grafana/agent:v0.21.2"
- "-metrics.wal-directory=/tmp"
- "-server.http.address=127.0.0.1:9091"
"image": "grafana/agent:v0.37.3"
"ports":
- "9091:9091"
"volumes":
Expand Down

0 comments on commit dc6ff68

Please sign in to comment.