Skip to content

Commit

Permalink
Update prometheus.json global settings to include _limit (#4084)
Browse files Browse the repository at this point in the history
These properties are part of the global config `sample_limit, target_limit, label_limit, label_name_length_limit, label_value_length_limit`
  • Loading branch information
aned committed Sep 19, 2024
1 parent e3a7b30 commit 237bda5
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions src/schemas/json/prometheus.json
Original file line number Diff line number Diff line change
Expand Up @@ -860,6 +860,36 @@
"query_log_file": {
"$ref": "#/definitions/filepath",
"description": "File to which PromQL queries are logged. Reloading the configuration will reopen the file."
},
"body_size_limit": {
"description": "An uncompressed response body larger than this many bytes will cause the scrape to fail. 0 means no limit. Example: 100MB.",
"type": ["integer", "null"],
"default": 0
},
"sample_limit": {
"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.",
"type": ["integer", "null"],
"default": 0
},
"label_limit": {
"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.",
"type": ["integer", "null"],
"default": 0
},
"label_name_length_limit": {
"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.",
"type": ["integer", "null"],
"default": 0
},
"label_value_length_limit": {
"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.",
"type": ["integer", "null"],
"default": 0
},
"target_limit": {
"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.",
"type": ["integer", "null"],
"default": 0
}
},
"additionalProperties": false
Expand Down

0 comments on commit 237bda5

Please sign in to comment.