Deploying VictoriaMetrics Single through the Linode Marketplace
Traducciones al EspañolEstamos traduciendo nuestros guías y tutoriales al Español. Es posible que usted esté viendo una traducción generada automáticamente. Estamos trabajando con traductores profesionales para verificar las traducciones de nuestro sitio web. Este proyecto es un trabajo en curso.
VictoriaMetrics is a free open source time series database (TSDB) and monitoring solution that is designed to collect, store, and process real-time metrics. It supports the Prometheus pull model and various push protocols ( Graphite, InfluxDB, OpenTSDB) for data ingestion. It is optimized for storage with high-latency IO, low IOPS, and time series with high churn rate. For reading the data and evaluating alerting rules, VictoriaMetrics supports the PromQL, MetricsQL, and Graphite query languages.
This Marketplace App deploys VictoriaMetrics Single, a single server/node version that’s suitable for small and medium businesses and data monitoring needs. It can easily handle 10 million or more active time series data points on a single instance. VictoriaMetrics Single is fully autonomous and can be used as a long-term storage for time series.
Deploying the VictoriaMetrics Marketplace App
The Linode Marketplace allows you to easily deploy software on a Linode using the Linode Cloud Manager.
Log in to the Cloud Manager and select the Marketplace link from the left navigation menu. This displays the Linode Compute Create page with the Marketplace tab pre-selected.
Under the Select App section, select the app you would like to deploy.
Fill out all required Options for the selected app as well as any desired Advanced Options (which are optional). See the Configuration Options section for details.
Complete the rest of the form as discussed within the Getting Started > Create a Linode.
Click the Create Linode button. Once the Linode has provisioned and has fully powered on, wait for the software installation to complete. If the Linode is powered off or restarted before this time, the software installation will likely fail. To determine if the installation has completed, open the Linode’s Lish console and wait for the system login prompt to appear.
Follow the instructions within the Getting Started After Deployment section.
Software installation should complete within 5-10 minutes after the Linode has finished provisioning.
Configuration Options
VictoriaMetrics Options
You can configure your VictoriaMetrics App by providing values for the following fields:
Field | Description |
---|---|
Hostname | Your VictoriaMetrics Linode’s hostname. Required. |
General Options
For advice on filling out the remaining options on the Create a Linode form, see Getting Started > Create a Linode. That said, some options may be limited or recommended based on this Marketplace App:
- Supported distributions: Ubuntu 20.04 LTS
- Recommended plan: All plan types and sizes can be used.
Getting Started after Deployment
Scraping metrics
VictoriaMetrics supports metrics scraping in the same way as Prometheus does. Check the configuration file to edit scraping targets. See more details about scraping at
How to scrape Prometheus exporters. The configuration file is located on your new server at the following location: /etc/victoriametrics/single/scrape.yml
.
By default, ports 8428, 2003, 4242, and 8089 are open to accept metrics from different protocols. It’s recommended to disable ports for protocols which are not needed. Ubuntu firewall can be used to easily disable access for specific ports.
Sending metrics
Besides scraping, VictoriaMetrics accepts write requests for various ingestion protocols. This deployment supports the following protocols:
- Datadog, Influx (telegraph), JSON, CSV, Prometheus on port :8428
- Graphite (statsd) on port :2003 tcp/udp
- OpenTSDB on port :4242
- Influx (telegraph) on port :8089 tcp/udp
See more details and examples in official documentation.
Accessing the Query Interface
VictoriaMetrics provides a user interface, called vmui for query troubleshooting and exploration. This allows you to explore query results through graphs and tables.
To access vmui, open the following URL in your browser, replacing ip-address with the IPv4 address of your new Compute Instance:
http://ip-address:8428/vmui
You can then enter your query, such as vm_app_uptime_seconds
, and click the Execute Query button to generate a graph, json file, and table.
If you prefer to access the query using the command-line, you can use curl
from your local computer. Open your terminal and run the following curl command, again replacing ip-address with the IPv4 address of your new Compute Instance:
curl -sg http://ip-address:8428/api/v1/query_range?query=vm_app_uptime_seconds | jq
NoteCurrently, Linode does not manage software and systems updates for Marketplace Apps. It is up to the user to perform routine maintenance on software deployed in this fashion.
More Information
You may wish to consult the following resources for additional information on this topic. While these are provided in the hope that they will be useful, please note that we cannot vouch for the accuracy or timeliness of externally hosted materials.
This page was originally published on