Skip to content

npololnskii/anodot-remote-write

 
 

Repository files navigation

Anodot Prometheous Remote Write

anodot-prometheus-remote-write is a service which receives Prometheus metrics through remote_write, converts metrics and sends them into Anodot.

Building application

Prerequisites

  • Go >= 1.11
git clone https://github.com/anodot/anodot-remote-write.git && cd anodot-remote-write
make all

Running tests

make test

Deploying application application

Prerequisites

  • Docker 1.18ce.
  • Prometheus Server on K8s cluster.

Using helm

  1. Navigate to deployment/helm/anodot-remote-write
  2. Edit values.yaml and fill in required variables.
  3. Run next command:
helm upgrade -i anodot-remote-write -n monitoring . 

This command will install application in monitoring namespace.

Using docker-compose

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 

Configuring Prometheus server

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.

Authors

  • Yuval Dror - Initial work

License and Disclaimer

This project is licensed under the MIT License - see the LICENSE.md file for details

About

Prometheus Remote Write to Anodot

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Go 78.2%
  • Makefile 15.6%
  • Shell 2.8%
  • Smarty 2.2%
  • Dockerfile 1.2%