Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to configure the path (zookeeper) #1959

Closed
fly891583770 opened this Issue Sep 8, 2016 · 3 comments

Comments

Projects
None yet
3 participants
@fly891583770
Copy link

fly891583770 commented Sep 8, 2016

What did you do?

What did you expect to see?

What did you see instead? Under which circumstances?

Environment

  • System information:

    insert output of uname -srm here

  • Prometheus version:

    insert output of prometheus -version here

  • Alertmanager version:

    insert output of alertmanager -version here (if relevant to the issue)

  • Prometheus configuration file:

insert configuration here
  • Alertmanager configuration file:
insert configuration here (if relevant to the issue)

Prometheus configuration file:
```scrape_configs:
  - job_name: 'dcos' 
    metrics_path: /metrics 

    static_configs: 
      - targets: ['localhost:9090']

    serverset_sd_configs:

    - servers:

     # - '192.168.1.12:2181'
      - '10.254.10.18:2181'
      paths:
      - '/root/data/go_work/src/zookeeper_exporter'

* Logs:
```INFO[0000] Build context (go=go1.5, user=root@bocloudtest.com, date=20160908-07:47:31)  source=main.go:74
INFO[0000] Loading configuration file prometheus.yml     source=main.go:221
INFO[0000] Loading series map and head chunks...         source=storage.go:358
INFO[0000] 1992 series loaded.                           source=storage.go:363
WARN[0000] No AlertManagers configured, not dispatching any alerts  source=notifier.go:176
INFO[0000] Listening on :9090                            source=web.go:233
INFO[0000] Starting target manager...                    source=targetmanager.go:75
ERRO[0000] Error during initial read of Zookeeper: path /root/data/go_work/src/zookeeper_exporter does not exist  source=treecache.go:70


insert Prometheus and Alertmanager logs relevant to the issue here
@brian-brazil

This comment has been minimized.

Copy link
Member

brian-brazil commented Sep 8, 2016

That should be a zookeeper path, not a filesystem path.

@akandratovich

This comment has been minimized.

Copy link

akandratovich commented Jun 26, 2017

I'm sorry that ask in this thread, but should I create path in zookeeper ahead of time, or it will be created by prometheus automatically?

@lock

This comment has been minimized.

Copy link

lock bot commented Mar 23, 2019

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@lock lock bot locked and limited conversation to collaborators Mar 23, 2019

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
You can’t perform that action at this time.