- moved files from root to VictoriaMetrics folder to be able to mount operator docs and VictoriaMetrics docs independently - added ability to run website locally The following checks are **mandatory**: - [ ] My change adheres [VictoriaMetrics contributing guidelines](https://docs.victoriametrics.com/contributing/).
4.7 KiB
sort | title | weight | menu | aliases | |||||||
---|---|---|---|---|---|---|---|---|---|---|---|
2 | Reader | 2 |
|
|
VictoriaMetrics Anomaly Detection (vmanomaly
) primarily uses VmReader to ingest data. This reader focuses on fetching time-series data directly from VictoriaMetrics with the help of powerful MetricsQL expressions for aggregating, filtering and grouping your data, ensuring seamless integration and efficient data handling.
Future updates will introduce additional readers, expanding the range of data sources vmanomaly
can work with.
VM reader
Config parameters
Parameter | Example | Description |
---|---|---|
|
|
Name of the class needed to enable reading from VictoriaMetrics or Prometheus. VmReader is the default option, if not specified. |
|
|
PromQL/MetricsQL query to select data in format: |
|
|
Datasource URL address |
|
|
For VictoriaMetrics Cluster version only, tenants are identified by accountID or accountID:projectID. See VictoriaMetrics Cluster multitenancy docs |
|
|
Frequency of the points returned. Will be converted to |
|
|
Performs PromQL/MetricsQL range query |
|
|
Absolute or relative URL address where to check availability of the datasource. |
|
|
BasicAuth username |
|
|
BasicAuth password |
|
|
Timeout for the requests, passed as a string |
|
|
Allows disabling TLS verification of the remote certificate. |
|
|
Token is passed in the standard format with header: |
|
|
List of strings with series selector. See: Prometheus querying API enhancements |
Config file example:
reader:
class: "vm" # or "reader.vm.VmReader" until v1.13.0
datasource_url: "http://localhost:8428/"
tenant_id: "0:0"
queries:
ingestion_rate: 'sum(rate(vm_rows_inserted_total[5m])) by (type) > 0'
sampling_period: '1m'
Healthcheck metrics
VmReader
exposes several healthchecks metrics.