Comments (6)
Many thanks for reporting the issue. Can you please run the following command: puppet resource service alert_manager --debug
.
For comparision it would be nice to also have the output of the command for an existing service like puppet resource service ssh --debug
(replace ssh with the name of the ssh service).
from puppet-prometheus.
Of course. Thank you for looking into this.
/opt/puppetlabs/bin/puppet resource service ssh --color=false --debug > ssh_debug.log 2>&1
from puppet-prometheus.
Many thanks.
Seems as if alert_manager is not really usable on your system:
Debug: /Service[alert_manager]: Provider upstart does not support features flaggable; not managing attribute flags
Debug: Service[alert_manager](provider=upstart): Could not find alert_manager.conf in /etc/init
Debug: Service[alert_manager](provider=upstart): Could not find alert_manager.conf in /etc/init.d
Debug: Service[alert_manager](provider=upstart): Could not find alert_manager in /etc/init
Debug: Service[alert_manager](provider=upstart): Could not find alert_manager in /etc/init.d
Debug: Service[alert_manager](provider=upstart): Could not find alert_manager.sh in /etc/init
Debug: Service[alert_manager](provider=upstart): Could not find alert_manager.sh in /etc/init.d
Error: Could not run: Could not find init script or upstart conf file for 'alert_manager'
Is alert_manager installed and running? or not installed at all?
from puppet-prometheus.
It shouldn't be installed at all; I just installed node exporter:
class { 'prometheus::node_exporter':
version => '0.15.2',
}
Meanwhile I did some more testing and I think it's more of a puppet issue than the module itself.
Running the same command for a service that should not exist:
/opt/puppetlabs/bin/puppet resource service madeupservice --debug
on a Trusty (non-systemd) fails:
Debug: /Service[madeupservice]: Provider upstart does not support features flaggable; not managing attribute flags
Debug: Service[madeupservice](provider=upstart): Could not find madeupservice.conf in /etc/init
Debug: Service[madeupservice](provider=upstart): Could not find madeupservice.conf in /etc/init.d
Debug: Service[madeupservice](provider=upstart): Could not find madeupservice in /etc/init
Debug: Service[madeupservice](provider=upstart): Could not find madeupservice in /etc/init.d
Debug: Service[madeupservice](provider=upstart): Could not find madeupservice.sh in /etc/init
Debug: Service[madeupservice](provider=upstart): Could not find madeupservice.sh in /etc/init.d
Error: Could not run: Could not find init script or upstart conf file for 'madeupservice'
while on Xenial returns the correct values:
Debug: Executing: '/bin/systemctl is-active madeupservice'
Debug: Executing: '/bin/systemctl is-enabled madeupservice'
service { 'madeupservice':
ensure => 'stopped',
enable => 'false',
}
from puppet-prometheus.
That is great information. We can easily check in the fact for an error from puppet resource
command. I can work on that within the next few days.
from puppet-prometheus.
Thank you. I appreciate all your help.
from puppet-prometheus.
Related Issues (20)
- Use Environment File in Systemd for AWS Settings for remote_write configuration
- rabbit_mq exporter cannot be download for versions > 1.0.0-RC8 HOT 1
- Keeping exporter versions up-to-date? HOT 3
- module uses deprecated legacy function `has_keys` HOT 1
- statsd_exporter too opinionated about mappings HOT 2
- Get rid of puppet 5 and lower artifacts HOT 2
- node_exporter.pp does not provide direct way to override the listening port
- ipmi exporter does not support remote ipmi HOT 1
- Add support for managing kafka node exporter
- deprecation of `source_match(_re)` and `target_match(_re)`
- mongodb_exporter doesn't allow overriding service and binary name
- Trouble using prometheus::server::collect_tag. HOT 1
- node_exporter change default port 9100 HOT 2
- Support scrape_config_files option HOT 3
- Received SIGTERM, exiting gracefully HOT 3
- Remove prometheus 1.x support
- Remove support for alertmanager < 0.13.0
- Drop support for redis_exporter < 1.0.0
- "job_name: prometheus" duplication HOT 1
- replace systemd unit templates with systemd::manage_unit
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from puppet-prometheus.