|
447 | 447 | "type": ["string", "null"], |
448 | 448 | "enum": ["http", "https", null] |
449 | 449 | }, |
| 450 | + "enable_compression": { |
| 451 | + "description": "If enable_compression is set to 'false, Prometheus will request uncompressed response from the scraped target.", |
| 452 | + "type": "boolean", |
| 453 | + "default": true |
| 454 | + }, |
| 455 | + "enable_http2": { |
| 456 | + "description": "Whether to enable HTTP2. Default is true.", |
| 457 | + "type": "boolean", |
| 458 | + "default": true |
| 459 | + }, |
| 460 | + "track_timestamps_staleness": { |
| 461 | + "description": "Controls whether Prometheus tracks staleness of the metrics that have an explicit timestamps present in scraped data. If track_timestamps_staleness is set to 'true', a staleness marker will be inserted in the TSDB when a metric is no longer present or the target is down.", |
| 462 | + "type": "boolean", |
| 463 | + "default": false |
| 464 | + }, |
| 465 | + "scrape_protocols": { |
| 466 | + "description": "List of the protocols to negotiate during a scrape with the client.", |
| 467 | + "type": ["array", "null"], |
| 468 | + "items": { |
| 469 | + "type": "string", |
| 470 | + "description": "The protocols to negotiate during a scrape with the client.", |
| 471 | + "enum": ["PrometheusProto", "OpenMetricsText1.0.0", "OpenMetricsText0.0.1", "PrometheusText0.0.4", "PrometheusText1.0.0"] |
| 472 | + } |
| 473 | + }, |
450 | 474 | "azure_sd_configs": { |
451 | 475 | "description": "List of Azure service discovery configurations.", |
452 | 476 | "type": ["array", "null"], |
|
599 | 623 | "authorization": { |
600 | 624 | "$ref": "#/definitions/authorization" |
601 | 625 | }, |
| 626 | + "enable_http2": { |
| 627 | + "$ref": "#/definitions/enable_http2" |
| 628 | + }, |
602 | 629 | "oauth2": { |
603 | 630 | "$ref": "#/definitions/oauth2" |
604 | 631 | }, |
|
658 | 685 | "authorization": { |
659 | 686 | "$ref": "#/definitions/authorization" |
660 | 687 | }, |
| 688 | + "enable_http2": { |
| 689 | + "$ref": "#/definitions/enable_http2" |
| 690 | + }, |
661 | 691 | "oauth2": { |
662 | 692 | "$ref": "#/definitions/oauth2" |
663 | 693 | }, |
|
849 | 879 | "default": "10s" |
850 | 880 | }, |
851 | 881 | "scrape_protocols": { |
852 | | - "description": "List of the protocols to negotiate during a scrape with the client.", |
853 | | - "type": ["array", "null"], |
854 | | - "items": { |
855 | | - "type": "string", |
856 | | - "description": "The protocols to negotiate during a scrape with the client.", |
857 | | - "enum": ["PrometheusProto", "OpenMetricsText1.0.0", "OpenMetricsText0.0.1", "PrometheusText0.0.4"] |
858 | | - } |
| 882 | + "$ref": "#/definitions/scrape_protocols" |
859 | 883 | }, |
860 | 884 | "evaluation_interval": { |
861 | 885 | "$ref": "#/definitions/duration", |
|
989 | 1013 | "type": ["boolean", "null"], |
990 | 1014 | "default": true |
991 | 1015 | }, |
| 1016 | + "enable_http2": { |
| 1017 | + "$ref": "#/definitions/enable_http2" |
| 1018 | + }, |
992 | 1019 | "queue_config": { |
993 | 1020 | "description": "Configures the queue used to write to remote storage.", |
994 | 1021 | "type": ["object", "null"], |
|
1165 | 1192 | "type": "string" |
1166 | 1193 | }, |
1167 | 1194 | "enable_http2": { |
1168 | | - "description": "Whether to enable HTTP2. Default is true.", |
1169 | | - "type": "boolean", |
1170 | | - "default": true |
| 1195 | + "$ref": "#/definitions/enable_http2" |
| 1196 | + }, |
| 1197 | + "enable_compression": { |
| 1198 | + "$ref": "#/definitions/enable_compression" |
| 1199 | + }, |
| 1200 | + "track_timestamps_staleness": { |
| 1201 | + "$ref": "#/definitions/track_timestamps_staleness" |
| 1202 | + }, |
| 1203 | + "scrape_protocols": { |
| 1204 | + "$ref": "#/definitions/scrape_protocols" |
1171 | 1205 | }, |
1172 | 1206 | "scrape_interval": { |
1173 | 1207 | "$ref": "#/definitions/duration", |
|
1377 | 1411 | "default": "10s" |
1378 | 1412 | }, |
1379 | 1413 | "enable_http2": { |
1380 | | - "description": "Whether to enable HTTP2. Default is true.", |
1381 | | - "type": "boolean", |
1382 | | - "default": true |
| 1414 | + "$ref": "#/definitions/enable_http2" |
1383 | 1415 | }, |
1384 | 1416 | "api_version": { |
1385 | 1417 | "description": "The api version of Alertmanager.", |
|
0 commit comments