Skip to content

Commit 237bda5

Browse files
authored
Update prometheus.json global settings to include _limit (#4084)
These properties are part of the global config `sample_limit, target_limit, label_limit, label_name_length_limit, label_value_length_limit`
1 parent e3a7b30 commit 237bda5

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed

src/schemas/json/prometheus.json

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -860,6 +860,36 @@
860860
"query_log_file": {
861861
"$ref": "#/definitions/filepath",
862862
"description": "File to which PromQL queries are logged. Reloading the configuration will reopen the file."
863+
},
864+
"body_size_limit": {
865+
"description": "An uncompressed response body larger than this many bytes will cause the scrape to fail. 0 means no limit. Example: 100MB.",
866+
"type": ["integer", "null"],
867+
"default": 0
868+
},
869+
"sample_limit": {
870+
"description": "Per-scrape limit on number of scraped samples that will be accepted. If more than this number of samples are present after metric relabelling the entire scrape will be treated as failed. 0 means no limit.",
871+
"type": ["integer", "null"],
872+
"default": 0
873+
},
874+
"label_limit": {
875+
"description": "Per-scrape limit on number of labels that will be accepted for a sample. If more than this number of labels are present post metric-relabeling, the entire scrape will be treated as failed. 0 means no limit.",
876+
"type": ["integer", "null"],
877+
"default": 0
878+
},
879+
"label_name_length_limit": {
880+
"description": "Per-scrape limit on length of labels name that will be accepted for a sample. If a label name is longer than this number post metric-relabeling, the entire scrape will be treated as failed. 0 means no limit.",
881+
"type": ["integer", "null"],
882+
"default": 0
883+
},
884+
"label_value_length_limit": {
885+
"description": "Per-scrape limit on length of labels value that will be accepted for a sample. If a label value is longer than this number post metric-relabeling, the entire scrape will be treated as failed. 0 means no limit.",
886+
"type": ["integer", "null"],
887+
"default": 0
888+
},
889+
"target_limit": {
890+
"description": "Per-scrape config limit on number of unique targets that will be accepted. If more than this number of targets are present after target relabeling, Prometheus will mark the targets as failed without scraping them. 0 means no limit.",
891+
"type": ["integer", "null"],
892+
"default": 0
863893
}
864894
},
865895
"additionalProperties": false

0 commit comments

Comments
 (0)