mirror of
https://github.com/prometheus/prometheus.git
synced 2025-11-28 06:01:01 +01: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.ContentType = "application/vnd.kubernetes.protobuf"
|
||||
|
||||
c, err := kubernetes.NewForConfig(kcfg)
|
||||
if err != nil {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user