Public | Automated Build

Last pushed: 7 months ago
Short Description
Anodot graphite relay service
Full Description

anodot-relay-docker

Anodot graphite relay service - Docker

Usage

Git

  • Clone the repo
  • Add the Anodot token to the config.json
  • docker build -t anodot .
  • docker run -d -p 2003:2003 -p 2004:2004 -t anodot

Docker Hub

Dockerfile
FROM alexshd/anodot-relay 
ADD ./config.json /opt/
EXPOSE 2003 2004
CMD ["/usr/local/bin/relay", "/opt/config.json"]
config.json

{
    "url": "https://api.anodot.com",
    "token": "<YOUR API TOKEN>",
    "log": "error",
    "showStats": false,
    "sendStats": true,
    "plainPort": 2003,
    "picklePort": 2004,
    "flushInterval": 5000,
    "metricFilter": "",
    "metricRewrite": [],
    "metricPrefix": "",
    "metricCounter":"",
    "maxConnections": 100,
    "sortBeforeSend": false
}

for more details about config.json refer to https://www.npmjs.org/package/anodot-relay

Using the service
  • Get the token from anodot
  • Make a directory with the config.json and Dockerfile
  • Add the token to config.json
  • docker build -t anodot .
  • docker run -d -p 2003:2003 -p 2004:2004 -t anodot
  • Start sending your graphite metrics to the Anodot service...
Docker Pull Command
Owner
alexshd
Source Repository

Comments (0)