Code Monkey home page Code Monkey logo

prometheus_null_adapter's Introduction

Prometheus "NULL" Remote Storage Adapter to create your own!

Build on Linux Build on macOS Build on Windows
Build single binary on Linux

Prometheus remote storage adapter, which stores timeseries data into RDBMS.

Building and running

with Cargo

cargo build --release

then run,

target/release/prometheus_null_adapter web \
  --listen '0.0.0.0:8080'

with Docker

Write a docker-compose.yml like:

---
version: '3.7'

services:
  prometheus_null_adapter:
    container_name: prometheus_null_adapter
    hostname: prometheus_null_adapter
    image: prometheus_null_adapter
    build:
      context: ./
    restart: always
    command: "web --listen '0.0.0.0:8080'"

then,

docker-comopse build # It takes long time. Be patient....
docker-comopse up -d

Using from Prometheus

Write these line to /etc/prometheus/config.yml

remote_write:
  - url: 'http://<hostname>:8080/write'
remote_read:
  - url: 'http://<hostname>:8080/read'

prometheus_null_adapter's People

Contributors

ledyba avatar

Watchers

 avatar  avatar  avatar

Forkers

danmx jhao0117

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.