Skip to content
This repository has been archived by the owner on Feb 23, 2021. It is now read-only.

Commit

Permalink
Add provider label to static config for etcd (#170)
Browse files Browse the repository at this point in the history
* Add provider label to static config for etcd

* Revert "Add provider label to static config for etcd"

This reverts commit 3b27789.

* Add test comment

* Add provider label to etcd static config

* Update Changelog file

* Remove unnecessary test comment

* Update CHANGELOG.md

Co-authored-by: Zach Stone <zach@giantswarm.io>

Co-authored-by: Zach Stone <zach@giantswarm.io>
  • Loading branch information
ericgraf and stone-z committed Dec 4, 2020
1 parent 5f9c0a1 commit 4b4177d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

## Added

- Add `provider` label to StaticConfigs for etcd metrics.

## [1.1.1] - 2020-11-16

### Added
Expand Down
1 change: 1 addition & 0 deletions service/controller/v1/prometheus/scrapeconfig.go
Original file line number Diff line number Diff line change
Expand Up @@ -934,6 +934,7 @@ func getScrapeConfigs(service v1.Service, metaConfig Config) []config.ScrapeConf
Labels: model.LabelSet{
model.LabelName(ClusterTypeLabel): model.LabelValue(GuestClusterType),
model.LabelName(ClusterIDLabel): model.LabelValue(clusterID),
model.LabelName(ProviderLabel): model.LabelValue(provider),
},
},
},
Expand Down

0 comments on commit 4b4177d

Please sign in to comment.