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

Prometheus service wont run if installed from package #62

Closed
Samgarr opened this issue Sep 27, 2017 · 5 comments · Fixed by #210
Closed

Prometheus service wont run if installed from package #62

Samgarr opened this issue Sep 27, 2017 · 5 comments · Fixed by #210
Labels
bug Something isn't working

Comments

@Samgarr
Copy link

Samgarr commented Sep 27, 2017

Affected Puppet, Ruby, OS and module versions/distributions

  • Puppet: 4.10.6
  • Ruby: puppets very own ruby
  • Distribution: Debian Jessie
  • Module version: from master

How to reproduce (e.g Puppet code you use)

 class { 'prometheus':                                                                                                                                                                                        
         install_method => 'package', 
         ...

What are you seeing

Sep 27 20:30:54 hostname systemd[2208]: Failed at step EXEC spawning /usr/local/bin/prometheus: No such file or directory

What behaviour did you expect instead

If is "package" installation chosen, should be also used systemd service distributed with package.

Output log

Any additional information you'd like to impart

If 'package' method is chosen, module still using own service which make prometheus not run. And without modules own service 'prometheus.yam' is not loaded because default is 'prometheus.yml'. So, i'm missing something or is this not supported use case? Thanks!

@tuxmea tuxmea added the bug Something isn't working label Nov 1, 2017
@tuxmea
Copy link
Member

tuxmea commented Nov 1, 2017

@Samgarr can you please check whether the systemd unit files are still from package or from prometheus module?

@Samgarr
Copy link
Author

Samgarr commented Nov 1, 2017

Yes, still a issue. I can make pull requests, if somebody will test it :) Changes here master...Samgarr:master

@bastelfreak
Copy link
Member

@Samgarr can you create a pull request for this please? Besides this: We should fix the service files so they work in both cases.

@tuxmea
Copy link
Member

tuxmea commented Nov 2, 2017

there already is a PR in #100 which takes care on this.

@Samgarr
Copy link
Author

Samgarr commented Nov 2, 2017

Here is PR, if it's still needed - #102.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
3 participants