Object to retain sample of the same time together (i.e. all gauges, counters, etc)
Object to retain sample of the same time together (i.e. all gauges, counters, etc)
new()
MetricFamilySample$new(name, type, help, label_names = list())
name
name of the gauge metric you are collecting
type
type of metric in this family
help
helper text to display to Prometheus
label_names
the names of the labels.
instance of MetricFamilySample Getter for the family name
getName()
MetricFamilySample$getName()
fully qualified name of the family Setter for the family name
setName()
MetricFamilySample$setName(val)
val
string to set the name Getter for the label names
getLabelNames()
MetricFamilySample$getLabelNames()
list of label names Setter for the label names
setLabelNames()
MetricFamilySample$setLabelNames(val)
val
list to set the list of label names Getter for the family type
getType()
MetricFamilySample$getType()
type of the family Setter for the family type
setType()
MetricFamilySample$setType(val)
val
string to set the family type Getter for the family help
getHelp()
MetricFamilySample$getHelp()
fully qualif of the family Setter for the family help text
setHelp()
MetricFamilySample$setHelp(val)
val
string to set the help Getter for list of PrometheusSample objects
getSamples()
MetricFamilySample$getSamples()
returns list of PrometheusSample objects Setter for the family samples
setSamples()
MetricFamilySample$setSamples(val)
val
list of PrometheusSample objects
clone()
The objects of this class are cloneable with this method.
MetricFamilySample$clone(deep = FALSE)
deep
Whether to make a deep clone.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.