VictoriaLogs is GA - Try it out now!

What’s new in VictoriaMetrics 2021?

by Aliaksandr Valialkin on Jan 7, 2022 5 Minutes Read

The 2021 year is finished, so it’s time to look at changes VictoriaMetrics has gained during the past year. The first release in 2021 was v1.52.0. The last release in 2021 was v1.71.0. More than 20 new releases of VictoriaMetrics were published during the 2021. The full changelog is available at this page. Let’s look at the most interesting changes.

Querying Graphite data

VictoriaMetrics was able to accept Graphite data from 2019 - see these docs. It provides much lower disk space usage for the ingested Graphite data and uses much lower disk IO compared to the default Graphite database - Whisper. The ingested Graphite data could be queried via MetricsQL - PromQL-compatible query language. While MetricsQL and PromQL are powerful query languages, Graphite users wanted to use Graphite query language directly from VictoriaMetrics, since this allows seamless migration from Graphite to VictoriaMetrics without the need to modify dashboards and alerting rules in Grafana. So we added support for Graphite query language into VictoriaMetrics in the beginning of 2021 - see these docs for details. This allows using VictoriaMetrics as a drop-in replacement for other Graphite backends.

Additionally, we introduced the following Graphite-related features to VictoriaMetrics in 2021:

  • __graphite__ pseudo-label in MetricsQL, which allows selecting metrics with Graphite query paths and wildcards. For example, {__graphite__=~"dc*.{appA,appB}.host*.memory"} matches Graphite metrics for the following Graphite wildcard - dc*.{appA,appB}.host*.memory. See these docs for more details.
  • label_graphite_group(q, groupNum1, …, groupNumN) function, which allows selecting particular groups from Graphite metric names. See these docs.
  • Ability to use Graphite queries for alerting and recording rules in vmalert. See these docs.

Downsampling for the stored data

Downsampling automatically reduces the number of stored raw samples per time series. This may help reducing disk space usage, since lower number of samples are stored to disk. This also may improve performance for queries over long time ranges, since lower number of samples are scanned during the query. VictoriaMetrics gained support for downampling in 2021 - see these docs for details.

Web UI for data exploring and troubleshooting

VictoriaMetrics now supports web UI for data exploring and troubleshooting - see vmui docs. It supports the same set of query args as /graph web UI in Prometheus, so it can be seamlessly used for query troubleshooting when editing graphs in Grafana.

Prometheus-compatible staleness markers

Prometheus-compatible staleness markers fix many edge cases when monitoring highly dynamic environments with frequently changed Prometheus-compatible scrape targets (for example, Kubernetes monitoring). See these docs for details.

Horizontally scalable scraping for Prometheus-compatible targets

vmagent gained the ability to spread scrape targets among multiple vmagent instances. This may be useful if you need to scrape tens of thousands of targets. In this case a single vmagent instance can reach scalability limits, so the solution is to spread the targets among multiple vmagent instances. This is easy to do now according to these instructions.

Backfilling for recording rules in vmalert

vmalert gained support for backfilling historical data for recording rules in 2021. See these docs.

vmctl tool

vmctl tool has been introduced in 2020 in a separate Github project. This tool can be used for migrating data from other monitoring systems to VictoriaMetrics. vmctl has been moved into the main VictoriaMetrics repository in 2021, so it is released together with other VictoriaMetrics components. See vmctl docs for more details.

vmctl tool gained support for data migration from OpenTSDB to VictoriaMetrics in 2021 thanks to John Seekins.

Other interesting features

VictoriaMetrics gained many other features during 2021. Below is a list of the most interesting features:

Conclusion

There were many useful changes in VictoriaMetrics during 2021 thanks to our users and customers. The full changelog is available here. Probably it is time to upgrade VictoriaMetrics to newer versions according to these instructions. The 2022 year should bring more new features and improvements. If you miss some features in VictoriaMetrics, then please file a feature request of vote for already existing features at GitHub project for VictoriaMetrics.

Leave a comment below or Contact Us if you have any questions!
comments powered by Disqus

Watch Your Monitoring SkyRocket With VictoriaMetrics!