1// Copyright 2014 The Prometheus Authors
2// Licensed under the Apache License, Version 2.0 (the "License");
3// you may not use this file except in compliance with the License.
4// You may obtain a copy of the License at
5//
6// http://www.apache.org/licenses/LICENSE-2.0
7//
8// Unless required by applicable law or agreed to in writing, software
9// distributed under the License is distributed on an "AS IS" BASIS,
10// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11// See the License for the specific language governing permissions and
12// limitations under the License.
13
14package local
15
16const (
17	namespace = "prometheus"
18	subsystem = "local_storage"
19
20	opTypeLabel = "type"
21
22	// Op-types for seriesOps.
23	create             = "create"
24	archive            = "archive"
25	unarchive          = "unarchive"
26	memoryPurge        = "purge_from_memory"
27	archivePurge       = "purge_from_archive"
28	requestedPurge     = "purge_on_request"
29	memoryMaintenance  = "maintenance_in_memory"
30	archiveMaintenance = "maintenance_in_archive"
31	completedQurantine = "quarantine_completed"
32	droppedQuarantine  = "quarantine_dropped"
33	failedQuarantine   = "quarantine_failed"
34
35	seriesLocationLabel = "location"
36
37	// Maintenance types for maintainSeriesDuration.
38	maintainInMemory = "memory"
39	maintainArchived = "archived"
40
41	discardReasonLabel = "reason"
42
43	// Reasons to discard samples.
44	outOfOrderTimestamp = "timestamp_out_of_order"
45	duplicateSample     = "multiple_values_for_timestamp"
46)
47