Skip to content

Commit

Permalink
gofmt format changes
Browse files Browse the repository at this point in the history
  • Loading branch information
ambarish-singh-miq committed Sep 29, 2023
1 parent 85844ad commit bc8d1f8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pumps/prometheus.go
Original file line number Diff line number Diff line change
Expand Up @@ -393,12 +393,12 @@ func (pm *PrometheusMetric) GetLabelsValues(decoded analytics.AnalyticsRecord) [
for _, label := range pm.Labels {
if val, ok := mapping[label]; ok {
values = append(values, fmt.Sprint(val))
}else{
} else {
// log.Info(label)
val = "UNKNOWN"
for _, tag := range decoded.Tags{
for _, tag := range decoded.Tags {
prefixString := label + "-"
if strings.HasPrefix(tag,prefixString){
if strings.HasPrefix(tag, prefixString) {
val = tag[len(prefixString):]
break
}
Expand Down

0 comments on commit bc8d1f8

Please sign in to comment.