GithubHelp home page GithubHelp logo

jmonson / prometheus_amqp_proxy Goto Github PK

View Code? Open in Web Editor NEW

This project forked from mishas/prometheus_amqp_proxy

0.0 1.0 0.0 181 KB

Proxy for feeding prometheus scraper from AMQP RPC source

License: Apache License 2.0

Python 18.60% Go 53.29% Starlark 24.66% Dockerfile 3.44%

prometheus_amqp_proxy's Introduction

Prometheus AMQP proxy

Proxy for feeding prometheus scraper from AMQP RPC sources.

Building and running

Build and run using bazel

bazel run //proxy:proxy -- -amqp_url=amqp://my_rabbitmq_url/ -amqp_exchange=my_prometheus_exchange

Visiting http://localhost:8200/proxy?target=prometheus will send an AMQP RPC request to the "prometheus" queue in my_prometheus_exchange exchange, and return the returned data.

Prometheus Configuration

The AMQP proxy needs to be passed the AMQP queue as a parameter, this can be done with relabelling.

Example config:

scrape_configs:
  - job_name: 'amqp_proxy'
    metrics_path: '/proxy'
    target_groups:
      - targets: ['queue1', 'queue2']
    relabel_configs:
      - source_labels: [__address__]
        regex: (.*)
        target_label: __param_target
        replacement: ${1}
      - source_labels: [__param_target]
        regex: (.*)
        target_label: instance
        replacement: ${1}
      - source_labels: []
        regex: .*
        target_label: __address__
        replacement: localhost:8200  # AMQP proxy

prometheus_amqp_proxy's People

Contributors

asafflesch avatar jmonson avatar mishas avatar mishaseltzer avatar

Watchers

 avatar

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.