Skip to main content

Prometheus puppetdb exporter

Project description

https://travis-ci.org/othalla/puppetdb_exporter.svg?branch=master https://codecov.io/gh/othalla/puppetdb_exporter/branch/master/graph/badge.svg https://api.codacy.com/project/badge/Grade/835f9979c70f48c698f839f5b9d0ff8f https://badge.fury.io/py/puppetdb-exporter.svg

Prometheus exporter for PuppetDB.

Install

$ git clone https://github.com/othalla/puppetdb_exporter

Configuration

Exporter reads config from CONFIG_FILE environment variable.

Example

[puppetdb]
host = puppetdb.example.local
port = 8080
ssl_verify = path/to/authority
key = path/to/key
cert = path/to/cert
proto = https
[optional]
fact_list = kernelrelease values.architecture

TODO

  • Refactor configuration keys, add example & doc in README -> Done

  • Create Fact object to store puppet fact information (name, value, count) -> IN PROGRESS

  • Create Node object to store node information (certname, status)

  • Create Enum object for status

  • Create Class to init & store prometheus metrics

  • Check if pypuppetdb lib is realy needed as not much maintained, and quite eavy for a simple request.get on /nodes & /fact_contents + /facts_path

  • Global refactors

  • Rewrite in goland

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

puppetdb_exporter-0.0.3-py3-none-any.whl (5.5 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page