Data sources
Victoria Metrics
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:
Install
- Navigate to the Integrations section from the left navigation bar in Togai
- Click on
Apps
to access the list of apps with integration support - Select
Victoria Metrics
from the available apps - Click on the
+Add connection
button - Provide a name for the connection and paste your:
Base URL
Base URL
- 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:8428
when running locally. - Paste the network address in the
Base URL
field 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.
Flows
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 connections
on the top navigation bar and click on theTrigger now
button 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.