Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

operator victoriametrics-operator (0.49.1) #5286

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -0,0 +1,239 @@
apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
annotations:
cert-manager.io/inject-ca-from: vm/vm-serving-cert
controller-gen.kubebuilder.io/version: v0.16.4
creationTimestamp: null
name: vmrules.operator.victoriametrics.com
spec:
conversion:
strategy: Webhook
webhook:
clientConfig:
service:
name: webhook-service
namespace: vm
path: /convert
conversionReviewVersions:
- v1
group: operator.victoriametrics.com
names:
kind: VMRule
listKind: VMRuleList
plural: vmrules
singular: vmrule
scope: Namespaced
versions:
- additionalPrinterColumns:
- jsonPath: .metadata.creationTimestamp
name: Age
type: date
- jsonPath: .status.status
name: Status
type: string
- jsonPath: .status.lastSyncError
name: Sync Error
type: string
name: v1beta1
schema:
openAPIV3Schema:
description: VMRule defines rule records for vmalert application
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
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
type: string
metadata:
type: object
spec:
description: VMRuleSpec defines the desired state of VMRule
properties:
groups:
description: Groups list of group rules
items:
description: RuleGroup is a list of sequentially evaluated recording
and alerting rules.
properties:
concurrency:
description: Concurrency defines how many rules execute at once.
type: integer
eval_alignment:
description: |-
Optional
The evaluation timestamp will be aligned with group's interval,
instead of using the actual timestamp that evaluation happens at.
It is enabled by default to get more predictable results
and to visually align with graphs plotted via Grafana or vmui.
type: boolean
eval_delay:
description: |-
Optional
Adjust the `time` parameter of group evaluation requests to compensate intentional query delay from the datasource.
type: string
eval_offset:
description: |-
Optional
Group will be evaluated at the exact offset in the range of [0...interval].
type: string
extra_filter_labels:
additionalProperties:
type: string
description: |-
ExtraFilterLabels optional list of label filters applied to every rule's
request within a group. Is compatible only with VM datasource.
See more details [here](https://docs.victoriametrics.com/#prometheus-querying-api-enhancements)
Deprecated, use params instead
type: object
headers:
description: |-
Headers contains optional HTTP headers added to each rule request
Must be in form `header-name: value`
For example:
headers:
- "CustomHeader: foo"
- "CustomHeader2: bar"
items:
type: string
type: array
interval:
description: evaluation interval for group
type: string
labels:
additionalProperties:
type: string
description: |-
Labels optional list of labels added to every rule within a group.
It has priority over the external labels.
Labels are commonly used for adding environment
or tenant-specific tag.
type: object
limit:
description: |-
Limit the number of alerts an alerting rule and series a recording
rule can produce
type: integer
name:
description: Name of group
type: string
notifier_headers:
description: |-
NotifierHeaders contains optional HTTP headers added to each alert request which will send to notifier
Must be in form `header-name: value`
For example:
headers:
- "CustomHeader: foo"
- "CustomHeader2: bar"
items:
type: string
type: array
params:
additionalProperties:
items:
type: string
type: array
description: Params optional HTTP URL parameters added to each
rule request
type: object
rules:
description: Rules list of alert rules
items:
description: Rule describes an alerting or recording rule.
properties:
alert:
description: Alert is a name for alert
type: string
annotations:
additionalProperties:
type: string
description: Annotations will be added to rule configuration
type: object
debug:
description: |-
Debug enables logging for rule
it useful for tracking
type: boolean
expr:
description: Expr is query, that will be evaluated at
dataSource
type: string
for:
description: |-
For evaluation interval in time.Duration format
30s, 1m, 1h or nanoseconds
type: string
keep_firing_for:
description: |-
KeepFiringFor will make alert continue firing for this long
even when the alerting expression no longer has results.
Use time.Duration format, 30s, 1m, 1h or nanoseconds
type: string
labels:
additionalProperties:
type: string
description: Labels will be added to rule configuration
type: object
record:
description: Record represents a query, that will be recorded
to dataSource
type: string
update_entries_limit:
description: |-
UpdateEntriesLimit defines max number of rule's state updates stored in memory.
Overrides `-rule.updateEntriesLimit` in vmalert.
type: integer
type: object
type: array
tenant:
description: |-
Tenant id for group, can be used only with enterprise version of vmalert.
See more details [here](https://docs.victoriametrics.com/vmalert#multitenancy).
type: string
type:
description: |-
Type defines datasource type for enterprise version of vmalert
possible values - prometheus,graphite,vlogs
type: string
required:
- name
- rules
type: object
type: array
required:
- groups
type: object
status:
description: VMRuleStatus defines the observed state of VMRule
properties:
lastSyncError:
description: LastSyncError contains error message for unsuccessful
config generation
type: string
status:
description: Status defines CRD processing status
type: string
type: object
required:
- spec
type: object
served: true
storage: true
subresources:
status: {}
status:
acceptedNames:
kind: ""
plural: ""
conditions: null
storedVersions: null
Loading
Loading