mirror of
https://github.com/prometheus/prometheus.git
synced 2025-01-12 14:27:27 -08:00
Merge pull request #11353 from mborsz/protobuf
Use protobuf encoding in kubernetes discovery
This commit is contained in:
commit
c48d8df627
|
@ -336,6 +336,7 @@ func New(l log.Logger, conf *SDConfig) (*Discovery, error) {
|
||||||
}
|
}
|
||||||
|
|
||||||
kcfg.UserAgent = userAgent
|
kcfg.UserAgent = userAgent
|
||||||
|
kcfg.ContentType = "application/vnd.kubernetes.protobuf"
|
||||||
|
|
||||||
c, err := kubernetes.NewForConfig(kcfg)
|
c, err := kubernetes.NewForConfig(kcfg)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
|
Loading…
Reference in a new issue