diff --git a/examples/workflows/query_victoriametrics.yml b/examples/workflows/query_victoriametrics.yml new file mode 100644 index 000000000..e4b3ad0d0 --- /dev/null +++ b/examples/workflows/query_victoriametrics.yml @@ -0,0 +1,15 @@ +workflow: + id: query-victoriametrics + name: victoriametrics + description: victoriametrics + triggers: + - type: manual + steps: + - name: victoriametrics-step + provider: + config: "{{ providers.victoriametrics }}" + type: victoriametrics + with: + query: process_memory_limit_bytes + queryType: query + actions: [] diff --git a/keep/providers/victoriametrics_provider/README.md b/keep/providers/victoriametrics_provider/README.md new file mode 100644 index 000000000..7d5f05f2f --- /dev/null +++ b/keep/providers/victoriametrics_provider/README.md @@ -0,0 +1,33 @@ +## Guide to deploy VictoriaMetrics using docker + +### 1. Clone the repository + +```bash +git clone https://github.com/VictoriaMetrics/VictoriaMetrics.git +``` + +### 2. Change the directory to docker + +```bash +cd deployment/docker +``` + +### 3. Change the ports in the docker-compose file to avoid conflicts with the keep services + +```bash +sed -i -e 's/3000:3000/3001:3000/' -e 's/127.0.0.1:3000/127.0.0.1:3001/' docker-compose.yml +``` + +### 3. Run the docker-compose file + +```bash +docker-compose up -d +``` + +### 4. You can access the following services on the following ports + +vicotriametrics - [http://localhost:8428](http://localhost:8428) +grafana - [http://localhost:3001](http://localhost:3001) +vmagent - [http://localhost:8429](http://localhost:8429) +vmalert - [http://localhost:8880](http://localhost:8880) +alertmanager - [http://localhost:9093](http://localhost:9093)