Open toantd1202 opened 4 years ago
cấu hình thì cũng không có gì thay đổi nhiều:
nginx.conf
Note: sau khi đặt lại cấu hình nhớ restart nginx server: sudo systemctl restart nginx
Kết quả sau đó:
và
Bước đầu thiết lập tính năng xác thực cho prom.
Phần này, em sử dụng
nginx server
chạy trênlocalhost:12321
, và tất cả các metrics được đặt tại endpoint:Sử dụng
htpasswd
để thiết lập username/password, ở đây admin làm username.Tạo file nginx.conf để thiết lập cấu hình cho
nginx server
:Cấu hình cho prome khởi chạy đằng sau proxy nginx:
Đến đây, em test thử, thì vẫn chưa được:
prom vẫn chưa trả về metrics.
trong khi container prom của em vẫn hoạt động: