anodot-prometheus-remote-write
is a service which receives Prometheus metrics through remote_write
, converts metrics and sends them into Anodot.
- Go >= 1.11
git clone https://github.com/anodot/anodot-remote-write.git && cd anodot-remote-write
make all
make test
- Docker 1.18ce.
- Prometheus Server on K8s cluster.
- Navigate to
deployment/helm/anodot-remote-write
- Edit
values.yaml
and fill in required variables. - Run next command:
helm upgrade -i anodot-remote-write -n monitoring .
This command will install application in monitoring
namespace.
cd deployment/docker-compose
Open docker-compose.yaml
and edit if needed, specifying required configuration parameters.
Run next command to start application:
docker-compose up -d
In Prometheus configuration file (default prometheus.yml
), add remote_write
configuration
global:
scrape_interval: 60s
evaluation_interval: 60s
remote_write:
- url: "http://anodot-prometheus-remote-write:1234/receive"
Prometheus operator configuration example (some fields omitted for clarity):
apiVersion: monitoring.coreos.com/v1
kind: Prometheus
metadata:
labels:
app: prometheus-operator-prometheus
name: prometheus
spec:
remoteWrite:
- url: "http://anodot-prometheus-remote-write:1234/receive"
version: v2.10.0
More Prometheus configuration options available on this page.
- Yuval Dror - Initial work
This project is licensed under the MIT License - see the LICENSE.md file for details