diff --git a/src/schemas/json/prometheus.json b/src/schemas/json/prometheus.json index e020576b1dc..6221547b615 100644 --- a/src/schemas/json/prometheus.json +++ b/src/schemas/json/prometheus.json @@ -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