jirwin / burrow_exporter

Prometheus exporter for burrow
Apache License 2.0
78 stars 68 forks source link

unable to export to external Prometheus server #20

Closed ravieze closed 6 years ago

ravieze commented 6 years ago

Hi,

I have a working grafana with prometheus server (on a node). ON a diffarent node I am runnibng burow and burrow_exporter (as 2 docker services). For burrow_exporter i have the below configuration. when i see burrow_logs i dont see any errors (docker logs -f ; I see Scraping burrow.. , and Finished scraping burrow.... ). But i dont see any entries into my prometheus server with substring "burrow" so clearly the scrapped data is not sent across.

if you can give me a way to push data from burrow_exporter to external promethus server over an arbitary IP, will be a great help.

services:
  burrow:
    build: .
    environment:
        BURROW_ADDR: http://172.31.18.137:8000
        METRICS_ADDR: 172.31.18.137:9090
        INTERVAL: 5
        API_VERSION: 3
    volumes:
      - ../burrow-master/docker-config:/etc/burrow/
      - ${PWD}/tmp:/var/tmp/burrow
ravieze commented 6 years ago

OK got it. The docker doesnt start a prometheus server. But opens a port so that a prometheus server can scrape it. Working now fine

jirwin commented 6 years ago

@ravieze I've pushed https://github.com/jirwin/burrow_exporter/releases/tag/v0.0.6 that adds support for environment variables like you have in your example. Thanks for bringing this up!

ravieze commented 6 years ago

Can u also add relevant documentation? Also can u publish the image to DockerHub? --so that upgrading is as easy as changing version no in our compose file