Skip to content

2. Installation

Vova Nekhai edited this page Oct 13, 2021 · 20 revisions

Prerequisites

Using helm

helm repo add anodot https://anodot.github.io/helm-charts

Simple installation

helm upgrade -i anodot-remote-write anodot/anodot-prometheus-remote-write \
   --set image.tag=${version} \
   --set configuration.env.ANODOT_API_TOKEN="API_TOKEN_VALUE" \
   --set configuration.env.ANODOT_ACCESS_KEY="ACCESS_KEY_VALUE" \
   --set configuration.env.ANODOT_URL="ANODOT_SERVER_URL" \
   --namespace=monitoring

Where image.tag=${version} should be replaced with required version of application, ANODOT_API_TOKEN should be replaced with data collection token, ACCESS_KEY_VALUE should be replaced with access key (How to get the access key).

Advanced installation

helm fetch anodot/anodot-prometheus-remote-write --untar

Navigate to the anodot-prometheus-remote-write folder and edit values.yamlwith the required values (image version, anodot token, etc)

Run the following command to install the Helm chart:

helm upgrade -i anodot-remote-write . --namespace=monitoring

This command will install the application in the monitoring namespace.

Using docker-compose

cd deployment/docker-compose

Open docker-compose.yaml and edit it as required, specifying the required configuration parameters (image version, Anodot URL, Anodot token, access key etc) Run the following command to start the application:

docker-compose up -d 

Using docker

docker run -d -p 1234:1234 -e ANODOT_API_TOKEN="xxxxx" -e ANODOT_ACCESS_KEY="xxxx" -e ANODOT_URL="xxx" anodot/prometheus-remote-write:${image_tag} 

Next steps

To enable the integration with the Prometheus server, follow the steps described here