Skip to content

Commit

Permalink
feat(ingress): resource backend support added
Browse files Browse the repository at this point in the history
  • Loading branch information
rohitphatak committed Sep 5, 2023
1 parent 84abaf7 commit 841f544
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions internal/store/ingress.go
Original file line number Diff line number Diff line change
Expand Up @@ -163,8 +163,8 @@ func ingressMetricFamilies(allowAnnotationsList, allowLabelsList []string) []gen
})
} else {
ms = append(ms, &metric.Metric{
LabelKeys: []string{"host", "path", "service_name", "service_port"},
LabelValues: []string{rule.Host, path.Path, "", ""},
LabelKeys: []string{"host", "path", "api_group", "kind", "name"},
LabelValues: []string{rule.Host, path.Path, *path.Backend.Resource.APIGroup, path.Backend.Resource.Kind, path.Backend.Resource.Name},
Value: 1,
})
}
Expand Down

0 comments on commit 841f544

Please sign in to comment.