Update victoriametrics/vmagent Docker tag to v1.95.0 #133
Reference in New Issue
Block a user
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.0Release Notes
VictoriaMetrics/VictoriaMetrics (victoriametrics/vmagent)
v1.95.0Compare Source
Released at 2023-11-15
vmalert's cmd-line flag
-datasource.lookbackwill be deprecated soon. Please use-rule.evalDelaycommand-line flag instead and see more details on how to use it here. The flagdatasource.lookbackwill have no effect in the next release and will be removed in the future releases. See this issue.vmalert's cmd-line flag
-datasource.queryTimeAlignmentwas 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_timesum_over_timecount_eq_over_timecount_gt_over_timecount_le_over_timecount_ne_over_timecount_over_timeincreasemax_over_timemin_over_timerateThe optimization is enabled when these functions contain lookbehind window in square brackets bigger or equal to
6h(the threshold can be changed via-search.minWindowForInstantRollupOptimizationcommand-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.maxWorkersPerQuerycommand-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_totalcounter metric which gets increased each time-search.logQueryMemoryUsagememory 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_alignmentattribute for Groups, it will align group query requests timestamp with interval likedatasource.queryTimeAlignmentdid.This also means that
datasource.queryTimeAlignmentcommand-line flag becomes deprecated now and will have no effect if configured. Ifdatasource.queryTimeAlignmentwas set tofalsebefore, theneval_alignmenthas to be set tofalseexplicitly under group.See this issue.
FEATURE: vmalert: add
-rule.evalDelayflag andeval_delayattribute for Groups. The new flag and param can be used to adjust thetimeparameter 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
filepointing 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.labelscommand-line flag, which can be used for specifying a list of labels for sharding outgoing samples among the configured-remoteWrite.urldestinations if-remoteWrite.shardByURLcommand-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_fileandkey_fileoptions insidetls_configandproxy_tls_configsections 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_fileandtls_config->key_fileat scrape_config.FEATURE: vmbackup: add
-filestream.disableFadvisecommand-line flag, which can be used for disablingfadvisesyscall during backup upload to the remote storage. By defaultvmbackupusesfadvisesyscall in order to prevent from eviction of recently accessed data from the OS page cache when backing up large files. Sometimes thefadvisesyscall may take significant amounts of CPU when the backup is performed with large value of-concurrencycommand-line flag on systems with big number of CPU cores. In this case it is better to manually disablefadvisesyscall by passing-filestream.disableFadvisecommand-line flag tovmbackup. See this pull request for details.FEATURE: vmbackup: add
-deleteAllObjectVersionscommand-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
vmauthcomponent for alertsServiceDownandTooManyRestarts.FEATURE: Alerting rules for VictoriaMetrics: make
TooHighMemoryUsagemore tolerable to spikes or near-the-threshold states. The change should reduce number of false positives.FEATURE: Alerting rules for VictoriaMetrics: add
TooManyMissedIterationsalerting 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-PolicyandX-Frame-OptionsHTTP 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.cspand-http.header.frameOptions.FEATURE: vmalert-tool: add
unittestcommand to run unittest for alerting and recording rules. See this pull request for details.FEATURE: dashboards/vmalert: add new panel
Missed evaluationsfor indicating alerting groups that miss their evaluations.FEATURE: all: track requests with wrong auth key and wrong basic auth at
vm_http_request_errors_totalmetric 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 closevminsertconnections during 25 seconds at graceful shutdown. This should reduce data ingestion slowdown during rolling restarts. The duration for gradual closing ofvminsertconnections can be configured via-storage.vminsertConnsShutdownDurationcommand-line flag. See this issue and these docs for details.FEATURE:
vmstorage: add-blockcache.missesBeforeCachingcommand-line flag, which can be used for fine-tuning RAM usage forindexdb/dataBlockscache when queries touching big number of time series are executed.FEATURE: add
-loggerMaxArgLencommand-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.showURLor-notifier.showURLcmd-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
forparam was bigger than replay request range (usually a couple of hours). See this issue for details.BUGFIX: vmalert: increment
vmalert_remotewrite_errors_totalmetric 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_totalandvmalert_remotewrite_dropped_bytes_totalmetrics 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
jobandinstancefilters foralertsannotation 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
descsorting 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 respectjoborinstancefilters.BUGFIX: dashboards/vmalert: fix panel
Errors rate to Alertmanagernot showing any data due to wrong label filters.BUGFIX: dashboards/cluster: fix description about
maxthreshold forConcurrent selectspanel. Before, it was mistakenly implying thatmaxis equal to the double of available CPUs.BUGFIX: VictoriaMetrics cluster: bump hard-coded limit for search query size at
vmstoragefrom 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
-origincommand-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,certandkeyoptions attls_configsection inside http client settings. Previously string values couldn't be parsed for these options, since the parser was mistakenly expecting a list ofuint8values instead.BUGFIX: vmagent: properly drop samples if
-streamAggr.dropInputcommand-line flag is set and-remoteWrite.streamAggr.configcontains 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.icoat http pages served byvmagentsuch as/targetsor/service-discoverywhenvmagentsits 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/seriesAPI 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_usersection 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
Hostheader to backends.BUGFIX: vmui: fix the
Disable cachetoggle atJSONandTableviews. 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.gzarchive and read these docs.vmutils-*.tag.gzarchive contains the following tools:vmutils-*-enterprise.tar.gzarchive 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.