Victoria Metrics is an open-source, high-performance, and scalable time-series database and monitoring solution designed for handling large volumes of time-series data with a focus on efficiency and low resource consumption.
The integration between Victoria Metrics and Togai requires only a one-time setup. Follow the steps below:
- Navigate to the Integrations section from the left navigation bar in Togai
- Click on
Appsto access the list of apps with integration support
Victoria Metricsfrom the available apps
- Click on the
- Provide a name for the connection and paste your:
- Obtain the network address of your Victoria Metrics instance. This is the address you use to access the Victoria Metrics server. It is usually in the format
http://<victoria-metrics-server-ip>:<victoria-metrics-service-port>. For example,
http://localhost:8428when running locally.
- Paste the network address in the
Base URLfield in Togai.
In order to access the Victoria Metrics server from outside the local network, you need to expose the Victoria Metrics server port. You can use a tool like ngrok to expose the Victoria Metrics server port.
1. Ingest data from Victoria Metrics
- The flow can be triggered by on demand triggered.
- Create flow connection by choosing the appropriate app connections from the dropdown.
- Once the flow connection is created, navigate to
Flow connectionson the top navigation bar and click on the
Trigger nowbutton to trigger the flow.
- The flow takes an array of queries:
query: The query to be executed on the Victoria Metrics server, usually the remaining part of the URL after the base URL.
schemaKey: The schema key to be used to map the data from Victoria Metrics to the Togai Event Schema.
accountKey: The account key to be used to map the data to corresponding Togai Accounts to which the data belongs to.
attributeName: The attribute name of a Togai Event Schema to which the queried data should be mapped to.
- The flow will ingest the data from Victoria Metrics as events into Togai.