Skip to content

Commit

Permalink
feat: Update monitoring.coreos.com schemas (#349)
Browse files Browse the repository at this point in the history
  • Loading branch information
panzouh authored Jul 11, 2024
1 parent c6d0206 commit e0d15d8
Show file tree
Hide file tree
Showing 10 changed files with 13,548 additions and 4,850 deletions.
2,044 changes: 1,226 additions & 818 deletions monitoring.coreos.com/alertmanager_v1.json

Large diffs are not rendered by default.

881 changes: 526 additions & 355 deletions monitoring.coreos.com/alertmanagerconfig_v1alpha1.json

Large diffs are not rendered by default.

200 changes: 121 additions & 79 deletions monitoring.coreos.com/podmonitor_v1.json

Large diffs are not rendered by default.

168 changes: 101 additions & 67 deletions monitoring.coreos.com/probe_v1.json

Large diffs are not rendered by default.

3,340 changes: 2,241 additions & 1,099 deletions monitoring.coreos.com/prometheus_v1.json

Large diffs are not rendered by default.

2,754 changes: 1,806 additions & 948 deletions monitoring.coreos.com/prometheusagent_v1alpha1.json

Large diffs are not rendered by default.

18 changes: 9 additions & 9 deletions monitoring.coreos.com/prometheusrule_v1.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@
"description": "PrometheusRule defines recording and alerting rules for a Prometheus instance",
"properties": {
"apiVersion": {
"description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources",
"description": "APIVersion defines the versioned schema of this representation of an object.\nServers should convert recognized schemas to the latest internal value, and\nmay reject unrecognized values.\nMore info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources",
"type": "string"
},
"kind": {
"description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds",
"description": "Kind is a string value representing the REST resource this object represents.\nServers may infer this from the endpoint the client submits requests to.\nCannot be updated.\nIn CamelCase.\nMore info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds",
"type": "string"
},
"metadata": {
Expand All @@ -26,7 +26,7 @@
"type": "string"
},
"limit": {
"description": "Limit the number of alerts an alerting rule and series a recording rule can produce. Limit is supported starting with Prometheus >= 2.31 and Thanos Ruler >= 0.24.",
"description": "Limit the number of alerts an alerting rule and series a recording\nrule can produce.\nLimit is supported starting with Prometheus >= 2.31 and Thanos Ruler >= 0.24.",
"type": "integer"
},
"name": {
Expand All @@ -35,24 +35,24 @@
"type": "string"
},
"partial_response_strategy": {
"description": "PartialResponseStrategy is only used by ThanosRuler and will be ignored by Prometheus instances. More info: https://github.com/thanos-io/thanos/blob/main/docs/components/rule.md#partial-response",
"description": "PartialResponseStrategy is only used by ThanosRuler and will\nbe ignored by Prometheus instances.\nMore info: https://github.com/thanos-io/thanos/blob/main/docs/components/rule.md#partial-response",
"pattern": "^(?i)(abort|warn)?$",
"type": "string"
},
"rules": {
"description": "List of alerting and recording rules.",
"items": {
"description": "Rule describes an alerting or recording rule See Prometheus documentation: [alerting](https://www.prometheus.io/docs/prometheus/latest/configuration/alerting_rules/) or [recording](https://www.prometheus.io/docs/prometheus/latest/configuration/recording_rules/#recording-rules) rule",
"description": "Rule describes an alerting or recording rule\nSee Prometheus documentation: [alerting](https://www.prometheus.io/docs/prometheus/latest/configuration/alerting_rules/) or [recording](https://www.prometheus.io/docs/prometheus/latest/configuration/recording_rules/#recording-rules) rule",
"properties": {
"alert": {
"description": "Name of the alert. Must be a valid label value. Only one of `record` and `alert` must be set.",
"description": "Name of the alert. Must be a valid label value.\nOnly one of `record` and `alert` must be set.",
"type": "string"
},
"annotations": {
"additionalProperties": {
"type": "string"
},
"description": "Annotations to add to each alert. Only valid for alerting rules.",
"description": "Annotations to add to each alert.\nOnly valid for alerting rules.",
"type": "object"
},
"expr": {
Expand Down Expand Up @@ -86,7 +86,7 @@
"type": "object"
},
"record": {
"description": "Name of the time series to output to. Must be a valid metric name. Only one of `record` and `alert` must be set.",
"description": "Name of the time series to output to. Must be a valid metric name.\nOnly one of `record` and `alert` must be set.",
"type": "string"
}
},
Expand Down Expand Up @@ -120,4 +120,4 @@
"spec"
],
"type": "object"
}
}
Loading

0 comments on commit e0d15d8

Please sign in to comment.