Commit 1069f4e
authored
fix: use FQDN for Prometheus host to avoid corporate DNS conflicts (#191)
The bare hostname `prometheus` gets resolved via DNS search domains
(e.g. `prometheus.amazon.com`) instead of Docker's internal DNS,
causing Data Prepper's Armeria client to cache the wrong IP and fail
to write metrics to Prometheus.
- Change default PROMETHEUS_HOST to `prometheus.observability-stack-network`
- Templatize Prometheus host/port in Data Prepper pipeline config
- Add sed replacements and env vars for PROMETHEUS_HOST/PORT in docker-compose
- Update fallback default in opensearch-dashboards init script
Signed-off-by: Vamsi Manohar <reddyvam@amazon.com>1 parent 9af8ed1 commit 1069f4e
4 files changed
Lines changed: 7 additions & 3 deletions
File tree
- docker-compose
- data-prepper
- opensearch-dashboards/init
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
49 | 49 | | |
50 | 50 | | |
51 | 51 | | |
52 | | - | |
| 52 | + | |
53 | 53 | | |
54 | 54 | | |
55 | 55 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
75 | 75 | | |
76 | 76 | | |
77 | 77 | | |
| 78 | + | |
| 79 | + | |
78 | 80 | | |
79 | 81 | | |
80 | 82 | | |
| |||
90 | 92 | | |
91 | 93 | | |
92 | 94 | | |
| 95 | + | |
| 96 | + | |
93 | 97 | | |
94 | 98 | | |
95 | 99 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
109 | 109 | | |
110 | 110 | | |
111 | 111 | | |
112 | | - | |
| 112 | + | |
113 | 113 | | |
114 | 114 | | |
115 | 115 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
14 | | - | |
| 14 | + | |
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
| |||
0 commit comments