bind_exporter flags in Docker Compose

268 views
Skip to first unread message

Mohamed Boukhlif

unread,
Apr 9, 2021, 10:05:08 AM4/9/21
to Prometheus Users
Hi,

I'm trying to run bind_exporter using docker compose with this config:
```
  bind-exporter:
    image: prometheuscommunity/bind-exporter
    networks:
      - back-tier
    ports:
      - 9101:9100
    restart: always
    command:
      - '-bind.stats-url http://dnshost:8053'
```
But the container keeps restarting, and I have this error in the logs : 
"bind-exporter_1  | bind_exporter: error: unknown short flag '-b', try --help"

Regards,
Mohamed Boukhlif

Harald Koch

unread,
Apr 9, 2021, 11:29:03 AM4/9/21
to Prometheus Users


On Fri, Apr 9, 2021, at 10:05, Mohamed Boukhlif wrote:
But the container keeps restarting, and I have this error in the logs : 
"bind-exporter_1  | bind_exporter: error: unknown short flag '-b', try --help"

The most common thing to try whenever you see this error is to use two dashes (which is how my bind_exporter is configured).

Apparently the README.md on GitHub is incorrect.

--
Harald


Mohamed Boukhlif

unread,
Apr 9, 2021, 12:00:58 PM4/9/21
to Prometheus Users
Yeah I've change it, but I still get the same error.
Reply all
Reply to author
Forward
0 new messages