Added server alias to metrics
This commit is contained in:
parent
fea48a3a13
commit
cb4e376093
1 changed files with 3 additions and 0 deletions
|
@ -130,6 +130,9 @@ func (n *NGINXController) syncIngress(interface{}) error {
|
|||
for _, server := range servers {
|
||||
if !hosts.Has(server.Hostname) {
|
||||
hosts.Insert(server.Hostname)
|
||||
if server.Alias != "" {
|
||||
hosts.Insert(server.Alias)
|
||||
}
|
||||
}
|
||||
|
||||
if !server.SSLPassthrough {
|
||||
|
|
Loading…
Reference in a new issue