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
Overview / Metrics / Radiator not working #566
Comments
|
We downgraded puppetdb to 6.9.0 and things again work as they should. Seems like the changes for the new API aren't fully in place even though the change logs seem to indicate they should be? Is there something we're missing? |
|
Similar issue here but only with Metrics not working - downgrading PuppetDB to 6.9.0 also fixed this issue for me. Some syslog goodness in case it helps: |
|
We ran into this and found this documentation: https://puppet.com/docs/puppetserver/latest/metrics-api/v2/metrics_api.html#configuring-jolokia which seemed to align with the errors we were seeing on the puppetdb side (access not allowed for client). That said, we were unable to make this work - if anyone else gets this working and can provide a working example, please could you post? Is this where we should be looking? |
|
ok - we found a solution for us. Not terribly well documented but the breadcrumbs are all there.
File looks as follows: # settings related to metrics
metrics: {
# a server id that will be used as part of the namespace for metrics produced
# by this server
server-id: puppet.prod.net
registries: {
puppetserver: {
# specify metrics to allow in addition to those in the default list
#metrics-allowed: ["compiler.compile.production"]
reporters: {
# enable or disable JMX metrics reporter
jmx: {
enabled: true
}
# enable or disable Graphite metrics reporter
graphite: {
enabled: true
}
}
}
}
# this section is used to configure settings for reporters that will send
# the metrics to various destinations for external viewing
reporters: {
graphite: {
# graphite host
host: "localhost"
# graphite metrics port
port: 2003
# how often to send metrics to graphite
update-interval-seconds: 5
}
}
metrics-webservice: {
jolokia: {
# Enable or disable the Jolokia-based metrics/v2 endpoint.
# Default is true.
# enabled: false
# Configure any of the settings listed at:
# https://jolokia.org/reference/html/agents.html#war-agent-installation
servlet-init-params: {
# Specify a custom security policy:
# https://jolokia.org/reference/html/security.html
policyLocation: "file:///etc/puppetlabs/puppetdb/jolokia-access.xml"
debug: "true"
allowErrorDetails: "false"
}
}
}
}and then added the following file and contents: <?xml version="1.0" encoding="utf-8"?>
<restrict>
<remote>
<host>127.0.0.1</host>
<host>a.b.c.d</host>
</remote>
<commands>
<command>read</command>
<command>list</command>
<command>version</command>
<command>search</command>
</commands>
<mbean>
<name>puppetlabs.puppetdb.population:name=num-nodes</name>
<attribute mode="read">Value</attribute>
<operation>objectName</operation>
</mbean>
</restrict>where Restarted puppetdb and everything now works - hope this helps someone out there. |
|
I can confirm that the information provided above fixed our issue, and everything is working as expected after making these changes. We probably just need the documentation updated to include these changes for the v2 API. |
|
Thanks a lot guys this helped me solved the issue. My puppetdb and puppetboard are in the same pod so I set the host in <remote>
<host>0.0.0.0/0</host>
</remote> |
|
Note: we're still seeing this with PuppetDB 7, and it seems to be because there is now an |
|
Can someone please provide a PR to add the required info to the app docs? @oldNoakes perhaps? |
|
in /etc/puppetlabs/puppetdb/conf.d/auth.conf we had to set for restart puppetdb and puppetboard does not show Forbidden 403 anymore |
|
For folks using the containers, I've opened https://tickets.puppetlabs.com/browse/PDB-5522 to give a place for this change to be done automatically. |
When we select "All environments" the "Overview", "Metrics", and "Radiator" pages return this error
This error is also returned by the "Metrics" page with any specific environment selected but the "Overview" and "Radiator" pages work for those.
We are running puppetboard 2.1.2 in a docker container with pypuppetdb 2.1.0 and PuppetDB 6.9.1
The text was updated successfully, but these errors were encountered: