Skip to content

Commit

Permalink
fix: clean mesos metrics conflict label, issue #644
Browse files Browse the repository at this point in the history
(cherry picked from commit 396b119)
  • Loading branch information
DeveloperJim committed Oct 30, 2020
1 parent a902213 commit 1f7afd4
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ func (s *serviceEndpoint) getPrometheusConfigs() []*types.PrometheusSdConfig {
//append namespace
conf.Labels["namespace"] = bcsEndpoint.Namespace
conf.Labels["job"] = fmt.Sprintf("%s/%s/0", bcsEndpoint.Namespace, s.serviceM.Name)
conf.Labels["name"] = s.serviceM.Name
//conf.Labels["name"] = s.serviceM.Name
for _, endpoint := range bcsEndpoint.Spec.Endpoints {
for _, cPort := range endpoint.Ports {
_, ok := s.cPorts[cPort.Name]
Expand Down

0 comments on commit 1f7afd4

Please sign in to comment.