mirror of
https://github.com/prometheus/prometheus.git
synced 2026-06-11 01:20:07 -04:00
Merge pull request #11353 from mborsz/protobuf
Use protobuf encoding in kubernetes discovery
This commit is contained in:
commit
c48d8df627
1 changed files with 1 additions and 0 deletions
|
|
@ -336,6 +336,7 @@ func New(l log.Logger, conf *SDConfig) (*Discovery, error) {
|
|||
}
|
||||
|
||||
kcfg.UserAgent = userAgent
|
||||
kcfg.ContentType = "application/vnd.kubernetes.protobuf"
|
||||
|
||||
c, err := kubernetes.NewForConfig(kcfg)
|
||||
if err != nil {
|
||||
|
|
|
|||
Loading…
Reference in a new issue