mirror of
https://github.com/prometheus/prometheus
synced 2024-12-24 23:42:32 +00:00
Merge branch 'beorn7/release'
This commit is contained in:
commit
348ea482ea
@ -1,3 +1,7 @@
|
||||
## 1.8.2 / 2017-11-04
|
||||
|
||||
* [BUGFIX] EC2 service discovery: Do not crash if tags are empty.
|
||||
|
||||
## 2.0.0-rc.2 / 2017-10-25
|
||||
|
||||
* [ENHANCEMENT] handle WAL segments with corrupted header gracefully
|
||||
|
@ -221,6 +221,9 @@ func (d *Discovery) refresh() (tg *config.TargetGroup, err error) {
|
||||
}
|
||||
|
||||
for _, t := range inst.Tags {
|
||||
if t == nil || t.Key == nil || t.Value == nil {
|
||||
continue
|
||||
}
|
||||
name := strutil.SanitizeLabelName(*t.Key)
|
||||
labels[ec2LabelTag+model.LabelName(name)] = model.LabelValue(*t.Value)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user