Skip to content

Commit 83a2d47

Browse files
authored
Mimir: Restore default listen address and port (#456)
Signed-off-by: Nick Pillitteri <[email protected]>
1 parent 39912da commit 83a2d47

File tree

3 files changed

+9
-4
lines changed

3 files changed

+9
-4
lines changed

.github/workflows/mimir-molecule.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,10 +41,10 @@ jobs:
4141
run: docker network create molecule
4242

4343
- name: Start s3 backend
44-
run: docker run -d -p 9000:9000 -p 9001:9001 --name minio-mimir --network molecule -e "MINIO_ROOT_USER=testtest" -e "MINIO_ROOT_PASSWORD=testtest" -e "MINIO_DEFAULT_BUCKETS=mimir" bitnami/minio:latest
44+
run: docker run -d -p 9000:9000 -p 9001:9001 --name minio-mimir --network molecule -e "MINIO_ROOT_USER=testtest" -e "MINIO_ROOT_PASSWORD=testtest" -e "MINIO_DEFAULT_BUCKETS=mimir" bitnamilegacy/minio:latest
4545

4646
- name: Run Molecule tests.
47-
run: molecule test
47+
run: molecule --debug test
4848
env:
4949
PY_COLORS: '1'
5050
ANSIBLE_FORCE_COLOR: '1'

roles/mimir/README.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,6 @@ You can also run commands like `molecule destroy`, `molecule prepare`, and `mole
8686
| mimir_alertmanager.data_dir | str | /data/alertmanager | sed to specify the directory path where the Mimir Alertmanager component of the Grafana Agent stores its data files. |
8787
| mimir_alertmanager.fallback_config_file | str | /etc/alertmanager-fallback-config.yaml | Used to specify the path to a fallback configuration file for the Mimir Alertmanager component of the Grafana Agent. |
8888
| mimir_alertmanager.external_url | str | http://localhost:9009/alertmanager | Used to specify the external URL or address at which the Mimir Alertmanager component of the Grafana Agent can be accessed. |
89-
| mimir_server.log_level | str | warn | Used to specify the log level of the server. Possible configurations error, warn, info, debug |
9089
| mimir_memberlist.join_members | [] | List of members for the Mimir cluster |
9190

9291
## **Additional Config Variables for `/etc/mimir/config.yml`**

roles/mimir/defaults/main.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ mimir_download_url_rpm: "https://github.com/grafana/mimir/releases/download/mimi
77
mimir_download_url_deb: "https://github.com/grafana/mimir/releases/download/mimir-{{ mimir_version }}/mimir-{{ mimir_version }}_{{ __mimir_arch }}.deb"
88
mimir_working_path: "/var/lib/mimir"
99
mimir_ruler_alert_path: "{{ mimir_working_path }}/ruler"
10+
mimir_http_listen_port: 8080
11+
mimir_http_listen_address: "0.0.0.0"
1012

1113
arch_mapping:
1214
x86_64: amd64
@@ -15,9 +17,13 @@ arch_mapping:
1517
i386: i386
1618
ppc64le: ppc64le
1719

20+
mimir_server:
21+
http_listen_port: "{{ mimir_http_listen_port }}"
22+
http_listen_address: "{{ mimir_http_listen_address }}"
23+
1824
mimir_ruler:
1925
rule_path: "{{ mimir_working_path }}/ruler"
20-
alertmanager_url: "http://127.0.0.1:{{ mimir_http_listen_port }}/alertmanager"
26+
alertmanager_url: "http://localhost:{{ mimir_http_listen_port }}/alertmanager"
2127

2228
mimir_alertmanager:
2329
data_dir: "{{ mimir_working_path }}/alertmanager"

0 commit comments

Comments
 (0)