mirror of
https://github.com/prometheus/prometheus.git
synced 2024-12-24 05:04:05 -08:00
parent
bf7c771f54
commit
c38816828f
|
@ -10,7 +10,7 @@ scrape_configs:
|
||||||
|
|
||||||
# Create a job for Docker daemons.
|
# Create a job for Docker daemons.
|
||||||
#
|
#
|
||||||
# This exemple requires Docker daemons to be configured to expose
|
# This example requires Docker daemons to be configured to expose
|
||||||
# Prometheus metrics, as documented here:
|
# Prometheus metrics, as documented here:
|
||||||
# https://docs.docker.com/config/daemon/prometheus/
|
# https://docs.docker.com/config/daemon/prometheus/
|
||||||
- job_name: 'docker'
|
- job_name: 'docker'
|
||||||
|
|
|
@ -261,7 +261,7 @@ func TestHeadReadWriter_Truncate(t *testing.T) {
|
||||||
// TestHeadReadWriter_Truncate_NoUnsequentialFiles tests
|
// TestHeadReadWriter_Truncate_NoUnsequentialFiles tests
|
||||||
// that truncation leaves no unsequential files on disk, mainly under the following case
|
// that truncation leaves no unsequential files on disk, mainly under the following case
|
||||||
// * There is an empty file in between the sequence while the truncation
|
// * There is an empty file in between the sequence while the truncation
|
||||||
// deletes files only upto a sequence before that (i.e. stops deleting
|
// deletes files only up to a sequence before that (i.e. stops deleting
|
||||||
// after it has found a file that is not deletable).
|
// after it has found a file that is not deletable).
|
||||||
// This tests https://github.com/prometheus/prometheus/issues/7412 where
|
// This tests https://github.com/prometheus/prometheus/issues/7412 where
|
||||||
// the truncation used to check all the files for deletion and end up
|
// the truncation used to check all the files for deletion and end up
|
||||||
|
|
|
@ -2323,7 +2323,7 @@ func (mc *mmappedChunk) OverlapsClosedInterval(mint, maxt int64) bool {
|
||||||
// SeriesLifecycleCallback specifies a list of callbacks that will be called during a lifecycle of a series.
|
// SeriesLifecycleCallback specifies a list of callbacks that will be called during a lifecycle of a series.
|
||||||
// It is always a no-op in Prometheus and mainly meant for external users who import TSDB.
|
// It is always a no-op in Prometheus and mainly meant for external users who import TSDB.
|
||||||
// All the callbacks should be safe to be called concurrently.
|
// All the callbacks should be safe to be called concurrently.
|
||||||
// It is upto the user to implement soft or hard consistency by making the callbacks
|
// It is up to the user to implement soft or hard consistency by making the callbacks
|
||||||
// atomic or non-atomic. Atomic callbacks can cause degradation performance.
|
// atomic or non-atomic. Atomic callbacks can cause degradation performance.
|
||||||
type SeriesLifecycleCallback interface {
|
type SeriesLifecycleCallback interface {
|
||||||
// PreCreation is called before creating a series to indicate if the series can be created.
|
// PreCreation is called before creating a series to indicate if the series can be created.
|
||||||
|
|
Loading…
Reference in a new issue