Skip to content
This repository was archived by the owner on Apr 28, 2025. It is now read-only.

Commit a3f6be1

Browse files
Merge pull request #157 from grafana/add_docs_for_duplicate_messages_log_lines
Add playbook entry for sample with repeated timestamp
2 parents ef15b95 + 6c9e1a6 commit a3f6be1

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

cortex-mixin/docs/playbooks.md

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Playbooks
22

3-
This document contains playbooks, or at least a checklist of what to look for, for alerts in the cortex-mixin. This document assumes that you are running a Cortex cluster:
3+
This document contains playbooks, or at least a checklist of what to look for, for alerts in the cortex-mixin and logs from Cortex. This document assumes that you are running a Cortex cluster:
44

55
1. Using this mixin config
66
2. Using GCS as object store (but similar procedures apply to other backends)
@@ -362,3 +362,14 @@ A PVC can be manually deleted by an operator. When a PVC claim is deleted, what
362362
363363
- `Retain`: the volume will not be deleted until the PV resource will be manually deleted from Kubernetes
364364
- `Delete`: the volume will be automatically deleted
365+
366+
367+
## Log lines
368+
369+
### Log line containing 'sample with repeated timestamp but different value'
370+
371+
This means a sample with the same timestamp as the latest one was received with a different value. The number of occurrences is recorded in the `cortex_discarded_samples_total` metric with the label `reason="new-value-for-timestamp"`.
372+
373+
Possible reasons for this are:
374+
- Incorrect relabelling rules can cause a label to be dropped from a series so that multiple series have the same labels. If these series were collected from the same target they will have the same timestamp.
375+
- The exporter being scraped sets the same timestamp on every scrape. Note that exporters should generally not set timestamps.

0 commit comments

Comments
 (0)