Skip to content

Instantly share code, notes, and snippets.

@logicalhan
Last active April 1, 2019 23:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save logicalhan/f0ab01d444c8b038c0a09c68b08b602e to your computer and use it in GitHub Desktop.
Save logicalhan/f0ab01d444c8b038c0a09c68b08b602e to your computer and use it in GitHub Desktop.
Metric instantiation with deprecated version
var RegisteredWatchers = kubemetrics.NewGaugeVec(
kubemetrics.GaugeOpts{
Name: "apiserver_registered_watchers",
Help: "Number of currently registered watchers for a given resources",
DeprecatedVersion: "1.15"
},
[]string{"group", "version", "kind"},
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment