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

Add PuppetDB sync metrics #46

Merged
merged 2 commits into from
Nov 13, 2017
Merged

Conversation

Sharpie
Copy link
Collaborator

@Sharpie Sharpie commented Nov 10, 2017

This patch adds metrics from the puppetlabs.puppetdb.ha JMX namespace to the
default list of additional metrics collected from PuppetDB for PE 2016.4 and
later.

@Sharpie
Copy link
Collaborator Author

Sharpie commented Nov 10, 2017

These metrics are available even when sync is disabled, but are just zeroed out. Figured gathering them by default is easier than trying to auto-detect when sync is turned on.

@npwalker
Copy link
Owner

@Sharpie agreed. As long as they don't cause errors when sync isn't enabled I'm happy to have them included.

I'll spin up a box, give this a once over then I'll merge and release.

@@ -140,10 +140,32 @@
'url' => 'puppetlabs.puppetdb.database:name=PDBWritePool.pool.Wait' },
]

$ha_sync_metrics = [
{ 'name' => 'puppetdb_ha_last-sync-succeeded',
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Sharpie can you remove puppetdb_ from the front of all of these? That'll make them match the other metrics.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done.

This patch adds metrics from the puppetlabs.puppetdb.ha JMX namespace to the
default list of additional metrics collected from PuppetDB for PE 2016.4 and
later.
@npwalker npwalker merged commit 47a506c into npwalker:master Nov 13, 2017
@Sharpie Sharpie deleted the add-puppetdb-ha-metrics branch November 13, 2017 20:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants