PuppetDB latest version has disabled APIv1 metrics

37 views
Skip to first unread message

comport3

unread,
Mar 12, 2020, 10:23:35 PM3/12/20
to Puppet Users
The latest version of PuppetDB v6.9.1 has removed localhost access to the v1 API metrics.

Given it's only "disabled by default", this suggests there is (or, should be) a way to re-enable it, so we can continue using this excellent Icinga2 plugin -

Does anyone know how to re-enable the presently disabled functionality?

This page should have info in my opinion, but doesn't https://puppet.com/docs/puppetdb/latest/api/metrics/v1/mbeans.html

Justin Stoller

unread,
Mar 13, 2020, 3:34:47 PM3/13/20
to puppet...@googlegroups.com
I believe a config value was added at:
metrics.metrics-webservice.mbeans.enabled
to match the jolokia one that controls v2.
However the default for the mbeans / v1 endpoint is now `false`.

Note that this is now the case for Puppet Server as well and can be re-enabled with the same config value in its respective conf.d.

hth,
Justin

--
You received this message because you are subscribed to the Google Groups "Puppet Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/bd6f9954-9e51-46d4-90f8-0d5fa407402b%40googlegroups.com.

comport3

unread,
Mar 15, 2020, 7:18:06 PM3/15/20
to Puppet Users
Thanks for this info, I think it points in the right direction.

Are you able to provide any example config or a link to how to action this?

It's not immediately obvious.

comport3

unread,
Mar 15, 2020, 8:47:36 PM3/15/20
to Puppet Users
Actually attempting to add the mentioned config to file '/etc/puppetlabs/puppetserver/conf.d/metrics.conf' results in the puppetserver service being unable to start, and this is logged -
clojure.lang.ExceptionInfo: Value does not match schema: {:metrics-webservice {:mbeans disallowed-key}}

Reply all
Reply to author
Forward
0 new messages