mirror of
https://github.com/prometheus/prometheus
synced 2025-01-27 18:02:57 +00:00
Remove unused metrics.
Change-Id: Icf03ba4ce92a5e38daf12930f9661daba79c83bb
This commit is contained in:
parent
2b4ff620aa
commit
6b37e47f9e
@ -141,6 +141,9 @@ type Target interface {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// target is a Target that refers to a singular HTTP or HTTPS endpoint.
|
// target is a Target that refers to a singular HTTP or HTTPS endpoint.
|
||||||
|
//
|
||||||
|
// TODO: The implementation is not yet goroutine safe, but for the web status,
|
||||||
|
// methods are called concurrently.
|
||||||
type target struct {
|
type target struct {
|
||||||
// The current health state of the target.
|
// The current health state of the target.
|
||||||
state TargetState
|
state TargetState
|
||||||
|
@ -45,18 +45,6 @@ var (
|
|||||||
Help: "The duration of the last storage purge iteration in milliseconds.",
|
Help: "The duration of the last storage purge iteration in milliseconds.",
|
||||||
})
|
})
|
||||||
|
|
||||||
numChunks = prometheus.NewGauge(prometheus.GaugeOpts{
|
|
||||||
Name: "prometheus_used_chunks_count",
|
|
||||||
Help: "The current number of chunks in use.",
|
|
||||||
})
|
|
||||||
numChunkGives = prometheus.NewCounter(prometheus.CounterOpts{
|
|
||||||
Name: "prometheus_chunk_gives_total",
|
|
||||||
Help: "The total number of returned (freed) chunks.",
|
|
||||||
})
|
|
||||||
numChunkGets = prometheus.NewCounter(prometheus.CounterOpts{
|
|
||||||
Name: "prometheus_chunk_gets_total",
|
|
||||||
Help: "The total number of retrieved chunks.",
|
|
||||||
})
|
|
||||||
numTranscodes = prometheus.NewCounter(prometheus.CounterOpts{
|
numTranscodes = prometheus.NewCounter(prometheus.CounterOpts{
|
||||||
Name: "prometheus_chunk_transcodes_total",
|
Name: "prometheus_chunk_transcodes_total",
|
||||||
Help: "The total number of chunk transcodes.",
|
Help: "The total number of chunk transcodes.",
|
||||||
@ -85,9 +73,6 @@ func init() {
|
|||||||
prometheus.MustRegister(numSamples)
|
prometheus.MustRegister(numSamples)
|
||||||
prometheus.MustRegister(evictionDuration)
|
prometheus.MustRegister(evictionDuration)
|
||||||
prometheus.MustRegister(purgeDuration)
|
prometheus.MustRegister(purgeDuration)
|
||||||
prometheus.MustRegister(numChunks)
|
|
||||||
prometheus.MustRegister(numChunkGives)
|
|
||||||
prometheus.MustRegister(numChunkGets)
|
|
||||||
prometheus.MustRegister(numTranscodes)
|
prometheus.MustRegister(numTranscodes)
|
||||||
prometheus.MustRegister(numPinnedChunks)
|
prometheus.MustRegister(numPinnedChunks)
|
||||||
prometheus.MustRegister(persistLatencies)
|
prometheus.MustRegister(persistLatencies)
|
||||||
|
Loading…
Reference in New Issue
Block a user