Update victoriametrics/vmagent Docker tag to v1.95.0 #133
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "renovate/victoriametrics-vmagent-1.x"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
This PR contains the following updates:
v1.94.0
->v1.95.0
Release Notes
VictoriaMetrics/VictoriaMetrics (victoriametrics/vmagent)
v1.95.0
Compare Source
Released at 2023-11-15
vmalert's cmd-line flag
-datasource.lookback
will be deprecated soon. Please use-rule.evalDelay
command-line flag instead and see more details on how to use it here. The flagdatasource.lookback
will have no effect in the next release and will be removed in the future releases. See this issue.vmalert's cmd-line flag
-datasource.queryTimeAlignment
was deprecated and will have no effect anymore. It will be completely removed in next releases. See this issue and more detailed changes related to vmalert below.SECURITY: upgrade Go builder from Go1.21.1 to Go1.21.4. See the list of issues addressed in Go1.21.2, the list of issues addressed in Go1.21.3 and the list of issues addressed in Go1.21.4.
FEATURE:
vmselect
: improve performance for repeated instant queries if they contain one of the following rollup functions:avg_over_time
sum_over_time
count_eq_over_time
count_gt_over_time
count_le_over_time
count_ne_over_time
count_over_time
increase
max_over_time
min_over_time
rate
The optimization is enabled when these functions contain lookbehind window in square brackets bigger or equal to
6h
(the threshold can be changed via-search.minWindowForInstantRollupOptimization
command-line flag). The optimization improves performance for SLO/SLI-like queries such asavg_over_time(up[30d])
orsum(rate(http_request_errors_total[3d])) / sum(rate(http_requests_total[3d]))
, which can be generated by sloth or similar projects.FEATURE:
vmselect
: improve query performance on systems with big number of CPU cores (>=32
). Add-search.maxWorkersPerQuery
command-line flag, which can be used for fine-tuning query performance on systems with big number of CPU cores. See this pull request.FEATURE:
vmselect
: exposevm_memory_intensive_queries_total
counter metric which gets increased each time-search.logQueryMemoryUsage
memory limit is exceeded by a query. This metric should help to identify expensive and heavy queries without inspecting the logs.FEATURE: MetricsQL: add drop_empty_series() function, which can be used for filtering out empty series before performing additional calculations as shown in this issue.
FEATURE: MetricsQL: add labels_equal() function, which can be used for searching series with identical values for the given labels. See this feature request.
FEATURE: MetricsQL: add
outlier_iqr_over_time(m[d])
andoutliers_iqr(q)
functions, which allow detecting anomalies in samples and series using Interquartile range method.FEATURE: vmalert: add
eval_alignment
attribute for Groups, it will align group query requests timestamp with interval likedatasource.queryTimeAlignment
did.This also means that
datasource.queryTimeAlignment
command-line flag becomes deprecated now and will have no effect if configured. Ifdatasource.queryTimeAlignment
was set tofalse
before, theneval_alignment
has to be set tofalse
explicitly under group.See this issue.
FEATURE: vmalert: add
-rule.evalDelay
flag andeval_delay
attribute for Groups. The new flag and param can be used to adjust thetime
parameter for rule evaluation requests to match intentional query delay from the datasource. See this issue.FEATURE: vmalert: allow specifying full url in notifier static_configs target address, like
http://alertmanager:9093/test/api/v2/alerts
. See this issue.FEATURE: vmalert: reduce the number of queries for restoring alerts state on start-up. The change should speed up the restore process and reduce pressure on
remoteRead.url
. See this pull request.FEATURE: vmalert: add label
file
pointing to the group's filename to metricsvmalert_recording_.*
andvmalert_alerts_.*
. The filename should help identifying alerting rules belonging to specific groups with identical names but different filenames. See this issue.FEATURE: vmalert: automatically retry remote-write requests on closed connections. The change should reduce the amount of logs produced in environments with short-living connections or environments without support of keep-alive on network balancers.
FEATURE: vmagent: support data ingestion from NewRelic infrastructure agent. See these docs, this feature request and this pull request.
FEATURE: vmagent: add
-remoteWrite.shardByURL.labels
command-line flag, which can be used for specifying a list of labels for sharding outgoing samples among the configured-remoteWrite.url
destinations if-remoteWrite.shardByURL
command-line flag is set. See these docs and this feature request for details.FEATURE: vmagent: do not exit on startup when scrape_configs refer to non-existing or invalid files with auth configs, since these files may appear / updated later. See this feature request and this pull request.
FEATURE: vmagent: allow loading TLS certificates from HTTP and HTTPS urls by specifying these urls at
cert_file
andkey_file
options insidetls_config
andproxy_tls_config
sections at http client settings.FEATURE: vmagent: reduce CPU load when big number of targets are scraped over HTTPS with the same custom TLS certificate configured via
tls_config->cert_file
andtls_config->key_file
at scrape_config.FEATURE: vmbackup: add
-filestream.disableFadvise
command-line flag, which can be used for disablingfadvise
syscall during backup upload to the remote storage. By defaultvmbackup
usesfadvise
syscall in order to prevent from eviction of recently accessed data from the OS page cache when backing up large files. Sometimes thefadvise
syscall may take significant amounts of CPU when the backup is performed with large value of-concurrency
command-line flag on systems with big number of CPU cores. In this case it is better to manually disablefadvise
syscall by passing-filestream.disableFadvise
command-line flag tovmbackup
. See this pull request for details.FEATURE: vmbackup: add
-deleteAllObjectVersions
command-line flag, which can be used for forcing removal of all object versions in remote object storage. See this issue and these docs for the details.FEATURE: Alerting rules for VictoriaMetrics: account for
vmauth
component for alertsServiceDown
andTooManyRestarts
.FEATURE: Alerting rules for VictoriaMetrics: make
TooHighMemoryUsage
more tolerable to spikes or near-the-threshold states. The change should reduce number of false positives.FEATURE: Alerting rules for VictoriaMetrics: add
TooManyMissedIterations
alerting rule for vmalert to detect groups that miss their evaulations due to slow queries.FEATURE: vmui: add support for functions, labels, values in autocomplete. See this issue.
FEATURE: vmui: retain specified time interval when executing a query from
Top Queries
. See this issue.FEATURE: vmui: improve repeated VMUI page load times by enabling caching of static js and css at web browser side according to these recommendations.
FEATURE: vmui: sort legend under the graph in descending order of median values. This should simplify graph analysis, since usually the most important lines have bigger values.
FEATURE: vmui: reduce vertical space usage, so more information is visible on the screen without scrolling.
FEATURE: vmui: show query execution duration in the header of query input field. This should help optimizing query performance.
FEATURE: support
Strict-Transport-Security
,Content-Security-Policy
andX-Frame-Options
HTTP response headers in the all VictoriaMetrics components. The values for headers can be specified via the following command-line flags:-http.header.hsts
,-http.header.csp
and-http.header.frameOptions
.FEATURE: vmalert-tool: add
unittest
command to run unittest for alerting and recording rules. See this pull request for details.FEATURE: dashboards/vmalert: add new panel
Missed evaluations
for indicating alerting groups that miss their evaluations.FEATURE: all: track requests with wrong auth key and wrong basic auth at
vm_http_request_errors_total
metric withreason="wrong_auth_key"
andreason="wrong_basic_auth"
. See this issue. Thanks to @venkatbvc for the pull request.FEATURE: vmauth: add ability to drop the specified number of
/
-delimited prefix parts from the request path before proxying the request to the matching backend. See these docs.FEATURE: vmauth: add ability to skip TLS verification and to specify TLS Root CA when connecting to backends. See these docs and this issue.
FEATURE:
vmstorage
: gradually closevminsert
connections during 25 seconds at graceful shutdown. This should reduce data ingestion slowdown during rolling restarts. The duration for gradual closing ofvminsert
connections can be configured via-storage.vminsertConnsShutdownDuration
command-line flag. See this issue and these docs for details.FEATURE:
vmstorage
: add-blockcache.missesBeforeCaching
command-line flag, which can be used for fine-tuning RAM usage forindexdb/dataBlocks
cache when queries touching big number of time series are executed.FEATURE: add
-loggerMaxArgLen
command-line flag for fine-tuning the maximum lengths of logged args.BUGFIX: vmalert: strip sensitive information such as auth headers or passwords from datasource, remote-read, remote-write or notifier URLs in log messages or UI. This behavior is by default and is controlled via
-datasource.showURL
,-remoteRead.showURL
,remoteWrite.showURL
or-notifier.showURL
cmd-line flags. See this issue.BUGFIX: vmalert: fix vmalert web UI when running on 32-bit architectures machine.
BUGFIX: vmalert: do not send requests to configured remote systems when
-datasource.*
,-remoteWrite.*
,-remoteRead.*
or-notifier.*
command-line flags refer files with invalid auth configs. Previously such requests were sent without properly set auth headers. Now the requests are sent only after the files are updated with valid auth configs. See this pull request.BUGFIX: vmalert: properly maintain alerts state in replay mode if alert's
for
param was bigger than replay request range (usually a couple of hours). See this issue for details.BUGFIX: vmalert: increment
vmalert_remotewrite_errors_total
metric if all retries to send remote-write request failed. Before, this metric was incremented only if remote-write client's buffer is overloaded.BUGFIX: vmalert: increment
vmalert_remotewrite_dropped_rows_total
andvmalert_remotewrite_dropped_bytes_total
metrics if remote-write client's buffer is overloaded. Before, these metrics were incremented only after unsuccessful HTTP calls.BUGFIX:
vmselect
: improve performance and memory usage during query processing on machines with big number of CPU cores. See this issue.BUGFIX: dashboards: fix vminsert/vmstorage/vmselect metrics filtering when dashboard is used to display data from many sub-clusters with unique job names. Before, only one specific job could have been accounted for component-specific panels, instead of all available jobs for the component.
BUGFIX: dashboards: respect
job
andinstance
filters foralerts
annotation in cluster and single-node dashboards.BUGFIX: dashboards: update description for RSS and anonymous memory panels to be consistent for single-node, cluster and vmagent dashboards.
BUGFIX: dashboards/vmalert: apply
desc
sorting in tooltips for vmalert dashboard in order to improve visibility of the outliers on graph.BUGFIX: dashboards/vmalert: properly apply time series filter for panel
No data errors
. Before, the panel didn't respectjob
orinstance
filters.BUGFIX: dashboards/vmalert: fix panel
Errors rate to Alertmanager
not showing any data due to wrong label filters.BUGFIX: dashboards/cluster: fix description about
max
threshold forConcurrent selects
panel. Before, it was mistakenly implying thatmax
is equal to the double of available CPUs.BUGFIX: VictoriaMetrics cluster: bump hard-coded limit for search query size at
vmstorage
from 1MB to 5MB. The change should be more suitable for real-world scenarios and protect vmstorage from excessive memory usage. See this issue for detailsBUGFIX: vmbackup: fix error when creating an incremental backup with the
-origin
command-line flag. See this issue for details.BUGFIX: vmagent: properly apply relabeling with
regex
, which start and end with.+
or.*
and which contain alternate sub-regexps. For example,.+;|;.+
or.*foo|bar|baz.*
. Previously such regexps were improperly parsed, which could result in undexpected relabeling results. See this issue.BUGFIX: vmagent: properly discover Kubernetes targets via kubernetes_sd_configs. Previously some targets and some labels could be skipped during service discovery because of the bug introduced in v1.93.5 when implementing this feature. See this issue for more details.
BUGFIX: vmagent: fix vmagent ignoring configuration reload for streaming aggregation if it was started with empty streaming aggregation config. Thanks to @aluode99 for the pull request.
BUGFIX: vmagent: do not scrape targets if the corresponding scrape_configs refer to files with invalid auth configs. Previously the targets were scraped without properly set auth headers in this case. Now targets are scraped only after the files are updated with valid auth configs. See this pull request.
BUGFIX: vmagent: properly parse
ca
,cert
andkey
options attls_config
section inside http client settings. Previously string values couldn't be parsed for these options, since the parser was mistakenly expecting a list ofuint8
values instead.BUGFIX: vmagent: properly drop samples if
-streamAggr.dropInput
command-line flag is set and-remoteWrite.streamAggr.config
contains an empty file. See this issue.BUGFIX: vmagent: do not print redundant error logs when failed to scrape consul or nomad target. See this pull request.
BUGFIX: vmagent: generate proper link to the main page and to
favicon.ico
at http pages served byvmagent
such as/targets
or/service-discovery
whenvmagent
sits behind an http proxy with custom http path prefixes. See this issue.BUGFIX: vmagent: properly decode Snappy-encoded data blocks received via VictoriaMetrics remote_write protocol. See this issue.
BUGFIX: vmstorage: prevent deleted series to be searchable via
/api/v1/series
API if they were re-ingested with staleness markers. This situation could happen if user deletes the series from the target and from VM, and then vmagent sends stale markers for absent series. Thanks to @ilyatrefilov for the issue and pull request.BUGFIX: vmstorage: log warning about switching to ReadOnly mode only on state change. Before, vmstorage would log this warning every 1s. See this issue for details.
BUGFIX: vmauth: show browser authorization window for unauthorized requests to unsupported paths if the
unauthorized_user
section is specified. This allows properly authorizing the user. See this issue for details.BUGFIX: vmauth: properly proxy requests to HTTP/2.0 backends and properly pass
Host
header to backends.BUGFIX: vmui: fix the
Disable cache
toggle atJSON
andTable
views. Previously response caching was always enabled and couldn't be disabled at these views.BUGFIX: vmui: correctly display query errors on Explore Prometheus Metrics page. See this issue for details.
BUGFIX: vmui: properly handle trailing slash in the server URL. See this issue.
BUGFIX: vmbackupmanager: correctly print error in logs when copying backup fails. Previously, error was displayed in metrics but was missing in logs.
BUGFIX: fix panic, which could occur when query tracing is enabled. See this issue.
How to run VictoriaMetrics
Unpack the
victoria-metrics-*.tar.gz
archive and read these docs.vmutils-*.tag.gz
archive contains the following tools:vmutils-*-enterprise.tar.gz
archive contains the following additional enterprise tools:The corresponding docker images are available here.
Cluster version is available here.
Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR has been generated by Renovate Bot.