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

(WIP) Add the ability to ship metrics directly to influxdb #48

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

npwalker
Copy link
Owner

Prior to this commit, there was no built-in way to ship metrics
to an outside metrics server.

After this commit, we pull in a script from
puppetlabs/puppet-metrics-viewer that allows conversion of the
metrics data we gather to influxdb or graphite format.

This commit adds the initial support to enabling shipping of metrics
directly to influxdb when given a hostname to connect to.

Prior to this commit, there was no built-in way to ship metrics
to an outside metrics server.

After this commit, we pull in a script from
puppetlabs/puppet-metrics-viewer that allows conversion of the
metrics data we gather to influxdb or graphite format.

This commit adds the initial support to enabling shipping of metrics
directly to influxdb when given a hostname to connect to.
@npwalker npwalker changed the title Add the ability to ship metrics directly to influxdb (WIP) Add the ability to ship metrics directly to influxdb Jan 29, 2018
@@ -19,6 +19,7 @@
Array[String] $activemq_hosts = [ '127.0.0.1' ],
Integer $activemq_port = 8161,
Boolean $symlink_puppet_metrics_collector = true,
Optional[String] $influxdb_host = undef,
Copy link
Owner Author

Choose a reason for hiding this comment

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

Instead of influxdb_host I think this should be Optional[Hash] influxdb_connection_info or something similar. Then we could collect all the various options the script accepts ( host, port, db name) without clogging up the parameters.

In fact we could just do a Hash $metrics_server_info and then have the user fill in graphite, influx, or whatever the next option might be.

@npwalker npwalker force-pushed the add_ability_to_ship_metrics_directly_to_influxdb branch from 60e161a to 8aa588d Compare February 6, 2018 01:00
Previously, we only allowed passing an influxdb host but you may
want to pass a port or a different database type for influx.

Additionally, you may prefer to ship to graphite.

You can now do any of these by using the correct
metrics_server_info hash.
@npwalker npwalker force-pushed the add_ability_to_ship_metrics_directly_to_influxdb branch from 8aa588d to 8ae4d14 Compare February 6, 2018 01:04
@jarretlavallee
Copy link
Collaborator

@npwalker Should we add this to puppetlabs/puppet_metrics_collctor? This seems valuable to have in there.

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.

2 participants