--- title: Monitoring weight: 5 menu: docs: parent: "vmanomaly-components" weight: 5 identifier: "vmanomaly-monitoring" aliases: - ./monitoring.html --- There are 2 models to monitor VictoriaMetrics Anomaly Detection behavior - [push](https://docs.victoriametrics.com/keyconcepts/#push-model) and [pull](https://docs.victoriametrics.com/keyconcepts/#pull-model). Parameters for each of them should be specified in the config file, `monitoring` section. ## Pull Model Config parameters
Parameter | Default | Description |
---|---|---|
`addr` | `"0.0.0.0"` | Server IP Address |
`port` | `8080` | Port |
Parameter | Default | Description |
---|---|---|
`url` | Link where to push metrics to. Example: `"http://localhost:8480/"` | |
`tenant_id` | Tenant ID for cluster version. Example: `"0:0"` | |
`health_path` | `"health"` | Deprecated since [v1.8.0](https://docs.victoriametrics.com/anomaly-detection/changelog/#v180). Absolute, to override `/health` path |
`user` | BasicAuth username | |
`password` | BasicAuth password | |
`bearer_token` | `token` | Token is passed in the standard format with header: `Authorization: bearer {token}`. Available since [v1.15.9](https://docs.victoriametrics.com/anomaly-detection/changelog/#v1159) |
`bearer_token_file` | `path_to_file` | Path to a file, which contains token, that is passed in the standard format with header: `Authorization: bearer {token}`. Available since [v1.15.9](https://docs.victoriametrics.com/anomaly-detection/changelog/#v1159) |
`verify_tls` | `false` | Verify TLS certificate. If `False`, it will not verify the TLS certificate. If `True`, it will verify the certificate using the system's CA store. If a path to a CA bundle file (like `ca.crt`), it will verify the certificate using the provided CA bundle. |
`tls_cert_file` | `path/to/cert.crt` | Path to a file with the client certificate, i.e. `client.crt`. Available since [v1.16.3](https://docs.victoriametrics.com/anomaly-detection/changelog/#v1163). |
`tls_key_file` | `path/to/key.crt` | Path to a file with the client certificate key, i.e. `client.key`. Available since [v1.16.3](https://docs.victoriametrics.com/anomaly-detection/changelog/#v1163). |
`timeout` | `"5s"` | Stop waiting for a response after a given number of seconds. |
`extra_labels` | Section for custom labels specified by user. |
Metric | Type | Description |
---|---|---|
`vmanomaly_start_time_seconds` | Gauge | vmanomaly start time in UNIX time |
Metric | Type | Description | Labelnames |
---|---|---|---|
`vmanomaly_model_runs` | Counter | How many times models ran (per model) | `stage, query_key, model_alias, scheduler_alias, preset` |
`vmanomaly_model_run_duration_seconds` | Summary | How much time (in seconds) model invocations took | `stage, query_key, model_alias, scheduler_alias, preset` |
`vmanomaly_model_datapoints_accepted` | Counter | How many datapoints did models accept | `stage, query_key, model_alias, scheduler_alias, preset` |
`vmanomaly_model_datapoints_produced` | Counter | How many datapoints were generated by models | `stage, query_key, model_alias, scheduler_alias, preset` |
`vmanomaly_models_active` | Gauge | How many models are currently inferring | `query_key, model_alias, scheduler_alias, preset` |
`vmanomaly_model_runs_skipped` | Counter | How many times a run was skipped (per model) | `stage, query_key, model_alias, scheduler_alias, preset` |
Metric | Type | Description | Labelnames |
---|---|---|---|
`vmanomaly_writer_request_duration_seconds` | Summary | How much time (in seconds) did requests to VictoriaMetrics take | `url, query_key` |
`vmanomaly_writer_response_count` | Counter | Response code counts we got from VictoriaMetrics | `url, query_key, code` |
`vmanomaly_writer_sent_bytes` | Counter | How much bytes were sent to VictoriaMetrics | `url, query_key` |
`vmanomaly_writer_request_serialize_seconds` | Summary | How much time (in seconds) did serializing take | `query_key` |
`vmanomaly_writer_datapoints_sent` | Counter | How many datapoints were sent to VictoriaMetrics | `query_key` |
`vmanomaly_writer_timeseries_sent` | Counter | How many timeseries were sent to VictoriaMetrics | `query_key` |
Metric | Type | Description | Labelnames |
---|---|---|---|
`vmanomaly_reader_request_duration_seconds` | Summary | How much time (in seconds) did queries to VictoriaMetrics take | `url, query_key` |
`vmanomaly_reader_response_count` | Counter | Response code counts we got from VictoriaMetrics | `url, query_key, code` |
`vmanomaly_reader_received_bytes` | Counter | How much bytes were received in responses | `query_key` |
`vmanomaly_reader_response_parsing_seconds` | Summary | How much time (in seconds) did parsing take for each step | `step` |
`vmanomaly_reader_timeseries_received` | Counter | How many timeseries were received from VictoriaMetrics | `query_key` |
`vmanomaly_reader_datapoints_received` | Counter | How many rows were received from VictoriaMetrics | `query_key` |