• This repository has been archived on 20/Jul/2018
  • Stars
    star
    198
  • Rank 196,898 (Top 4 %)
  • Language
    Go
  • License
    Other
  • Created over 7 years ago
  • Updated over 6 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Get a complete picture of what your applications are made of *without* changing how you currently build and run containers. Just run and report.

Lumogon

Build Status Go Report Card

Lumogon provides a way to inspect, analyze and report on your running Docker containers.

Unmaintained Notice

Please note this project is no longer maintained. However, the project's code will remain open and available in this repository and the Docker Hub image will remain available.

Trying out Lumogon

Requirements

Software Version
Docker 1.13.0 or greater

Downloading Lumogon

You'll need Docker installed and running locally. This should already be true if you have Docker containers you want to analyze with Lumogon.

docker pull puppet/lumogon

Running Lumogon

Now that you have Lumogon installed, let's run it to find out which containers you have running and what we can learn about them. The output from a Lumogon scan will be a JSON listing of all the containers found and what Lumogon could learn about them.

docker run --rm  -v /var/run/docker.sock:/var/run/docker.sock puppet/lumogon scan

After a few seconds you should see your JSON data:

{
  "$schema": "http://puppet.com/lumogon/core/draft-01/schema#1",
  "generated": "2017-05-09 07:59:24.287008012 +0000 UTC",
  "owner": "default",
  "group": [
    "default"
  ],
  "client_version": {
    "BuildVersion": "development",
    "BuildTime": "2017-05-09 06:56:22 UTC",
    "BuildSHA": "9e8f684432ff12b04b5b5d594caa0ebcce86b844"
  },
  "reportid": "c73a79dc-8612-4af8-8bd8-22e32ea11e38",
  "containers": {
    "5982d3f16bbbf9530ae09915b22a0d189044e3b953e5e417e2783b90de579034": {
      "$schema": "http://puppet.com/lumogon/containerreport/draft-01/schema#1",
      "generated": "2017-05-09 07:59:03.513739277 +0000 UTC",
      "container_report_id": "8d17e541-11b3-4f25-b145-4ad9d3045995",
      "container_id": "5982d3f16bbbf9530ae09915b22a0d189044e3b953e5e417e2783b90de579034",
      "container_name": "/fixtures_alpine_1",
      "capabilities": {
        "apk": {
          "$schema": "http://puppet.com/lumogon/capability/label/draft-01/schema#1",
          "title": "Packages (APK)",
          "type": "dockerapi",
          "harvestid": "3a5bf0d4-36d8-440b-af81-615b5493fe98",
          "payload": {
            "alpine-baselayout": "3.0.3-r0",
            "alpine-keys": "1.1-r0",
            "apk-tools": "2.6.7-r0",
            "busybox": "1.24.2-r9",
            "libc-utils": "0.7-r0",
            "libcrypto1.0": "1.0.2h-r1",
            "libssl1.0": "1.0.2h-r1",
            "musl": "1.1.14-r10",
            "musl-utils": "1.1.14-r10",
            "scanelf": "1.1.6-r0",
            "zlib": "1.2.8-r2"
          }
        },
        "dpkg": {
          "$schema": "http://puppet.com/lumogon/capability/label/draft-01/schema#1",
          "title": "Packages (DPKG)",
          "type": "dockerapi",
          "harvestid": "bdee3efe-70cf-4684-9eb6-cfbfeeb96b9c"
        },
        "host": {
          "$schema": "http://puppet.com/lumogon/capability/host/draft-01/schema#1",
          "title": "Host Information",
          "type": "attached",
          "harvestid": "53d1961c-e8e9-4b52-8620-6bac37a69664",
          "payload": {
            "hostname": "365cfca386ec",
            "kernelversion": "4.9.21-moby",
            "os": "linux",
            "platform": "alpine",
            "platformfamily": "alpine",
            "platformversion": "3.4.0",
            "procs": "61",
            "uptime": "248396",
            "virtualizationrole": "guest",
            "virtualizationsystem": "docker"
          }
        },
        "label": {
          "$schema": "http://puppet.com/lumogon/capability/label/draft-01/schema#1",
          "title": "Labels",
          "type": "dockerapi",
          "harvestid": "50a3f846-3580-4190-9b00-27c3011f1516",
          "payload": {
            "com.docker.compose.config-hash": "70e9897635135adc7e9bd0af535fef48ae8e26c8e0debbf8f40e0d67938a9884",
            "com.docker.compose.container-number": "1",
            "com.docker.compose.oneoff": "False",
            "com.docker.compose.project": "fixtures",
            "com.docker.compose.service": "alpine",
            "com.docker.compose.version": "1.11.2"
          }
        },
        "rpm": {
          "$schema": "http://puppet.com/lumogon/capability/label/draft-01/schema#1",
          "title": "Packages (RPM)",
          "type": "dockerapi",
          "harvestid": "1c2976f2-802c-4138-a6b7-e7a814340fea"
        }
      }
    }
  }
}

Since Lumogon's output is valid JSON, you can slice and dice it with jq, or pass it along to any other tool you use that can accept JSON input:

docker run --rm  -v /var/run/docker.sock:/var/run/docker.sock puppet/lumogon scan | jq -r  '.containers[] | .container_name + "      " + .capabilities.host.payload.platform + "     " + .capabilities.host.payload.platformversion'

/fixtures_debian-jessie_1      debian     8.7
/fixtures_alpine_1      alpine     3.4.0
/fixtures_centos7_1      centos     7.3.1611
/fixtures_fedora_1      fedora     25
/fixtures_centos6_1      centos     6.8
/fixtures_ubuntu-trusty_1      ubuntu     14.04
/fixtures_debian-wheezy_1      debian     7.11
/fixtures_ubuntu-xenial_1      ubuntu     16.04

Sending reports to a backend service

Lumogon provides the ability to submit gathered reports to an optional endpoint of your choosing.

NOTE The Puppet provided reporter backend service and all data has been decommissioned as of May 2018.

docker run --rm -v /var/run/docker.sock:/var/run/docker.sock puppet/lumogon report --endpoint https://my-reporter-service.domain.com/

The report command generates the same data as scan, but sends it to the configured reporting endpoint.

More ways to use Lumogon

The examples directory provides more thorough examples of how to use the data provided by Lumogon to test and build your images and containers.

Lumogon command options

Let's get the usage for the Lumogon client:

docker run --rm  -v /var/run/docker.sock:/var/run/docker.sock puppet/lumogon --help
Lumogon is a tool for inspecting, reporting on, and analyzing your container applications.

Usage:
  lumogon [command]

Available Commands:
  help        Help about any command
  report      Scan one or more containers and send the collected information to the Lumogon service
  scan        Scan one or more containers and print the collected information
  version     Show the Lumogon version information

Flags:
  -d, --debug               Print debug logging
  -k, --keep-harvesters     Keeps harvester containers instead of automatically deleting

Feel free to explore those command-line options. Of note:

  • The --keep-harvesters flag will preserve temporary containers created on the fly to explore your other containers. You can use docker logs <containerid> to see more of what they found while running.
  • You can specify scan to collect data on all your running containers, or you can target a specific container by passing scan <containerid>.
  • --debug will generate verbose debugging output so you can see how Lumogon explores your containers.

Building the client from source

If you're making changes to Lumogon, or just interested in seeing how it works under the hood, you might want to try building from source. For this you'll need a few more things:

  • Install Go, version 1.8 or later
  • Docker Docker, version 17.05 or later
  • Download the Lumogon source code
  • Build the Docker image

The terminal commands to do this are:

export GOPATH="${HOME}/go"
go get -d -u github.com/puppetlabs/lumogon
cd $GOPATH/src/github.com/puppetlabs/lumogon
make image

This will build the client and package it in the puppet/lumogon image.

More Repositories

1

razor-server

Razor is next generation provisioning software that handles bare metal hardware and virtual server provisioning
Ruby
512
star
2

puppetlabs-aws

Puppet module for managing AWS resources to build out infrastructure
Ruby
188
star
3

wash

Wide Area SHell: a cloud-native shell for bringing remote infrastructure to your terminal.
Go
180
star
4

puppet-in-docker

Dockerfiles and build toolchain for Puppet software
Ruby
144
star
5

puppet-in-docker-examples

Examples to accompany the Puppet-in-Docker images
Ruby
136
star
6

puppetlabs-cloud_provisioner

Puppet Cloudpack
Ruby
105
star
7

puppet-module-tool

DEPRECATED: the tool has been moved into core as of Puppet 2.7.12 and will no longer be maintained here. Raise bugs for the new tool in the project below under the category 'module tool'.
Ruby
101
star
8

puppetlabs-openstack

Puppet Labs Reference and Testing Deployment Module for OpenStack (master tracks Kilo)
Puppet
91
star
9

puppetlabs-dsc

Puppet module for PowerShell Desired State Configuration (DSC) integration
C#
69
star
10

puppetlabs-image_build

Build Docker images from Puppet code
Ruby
67
star
11

libral

A native Resource Abstraction Layer
C++
59
star
12

geppetto

Geppetto is an integrated toolset for developing Puppet modules and manifests.
Java
58
star
13

puppetlabs-git

module for installing git
Ruby
48
star
14

puppetlabs-razor

Puppet module to install Razor.
Puppet
46
star
15

puppet-quest-guide

Quest Guide for the Puppet Learning VM
Ruby
44
star
16

puppetlabs-ruby

Ruby
38
star
17

razor-el-mk

The discovery kernel for razor-server
Ruby
37
star
18

puppetlabs-certregen

Regenerate expiring Puppet certificates
Ruby
35
star
19

puppetcpp

A prototype Puppet compiler written in C++
C++
34
star
20

puppetlabs-cloudformation

CoudFormation template for installing PE
Ruby
32
star
21

pe-razor-vagrant-stack

This is a vagrant stack for testing Razor in PE
Puppet
27
star
22

puppetlabs-passenger

Puppet Labs Module for Passenger
Puppet
27
star
23

puppetlabs-libvirt

libvirt Puppet Module
Ruby
24
star
24

puppetlabs-activemq

Puppet ActiveMQ Module
Shell
24
star
25

puppetlabs-opennebula

OpenNebula Puppet Module
Ruby
24
star
26

puppetlabs-node_openstack

puppet cloud provisioner support for openstack
Ruby
23
star
27

puppetlabs-remote_resource

A simple way of providing dependencies on remote resources
Ruby
23
star
28

quest

Quest-driven learning with RSpec
Ruby
21
star
29

pct

Puppet Content Templates
Go
20
star
30

puppetlabs-dism

Ruby
18
star
31

rspec-system-serverspec

Couplings for rspec-system and serverspec
Ruby
17
star
32

razor-client

Command line client for razor-server
Ruby
17
star
33

pltraining-classroom

Classroom module for Puppetlabs Training courses. Not intended for general use.
Puppet
17
star
34

ultipro-soap-python

Python wrapper for the UltiPro SOAP API
Python
17
star
35

puppetlabs-stunnel

A stunnel module.
Puppet
16
star
36

puppetlabs-havana

Multi-node deployment for OpenStack Havana
Puppet
16
star
37

puppetlabs-shell

Puppet Shell - this tool is pre-release - use at your own risk!
Ruby
16
star
38

puppetlabs-mount_providers

New mount types/providers splitting fstab and actual mounts into separate types.
Ruby
16
star
39

py-awsaudit

Custom Python library that we use to audit our EC2 usage
Python
16
star
40

puppetlabs-vcenter

VMware vCenter management
Ruby
16
star
41

puppetlabs-netscaler

Puppet module for automating the configuration of Citrix Netscaler devices
Ruby
16
star
42

puppetlabs-gce_compute

native types for managing google compute instances
Ruby
16
star
43

puppetlabs-tftp

Ruby
15
star
44

puppetlabs-catalog_preview

A Puppet module providing catalog preview and migration features
Ruby
15
star
45

puppet-webhooks

Sinatra service for GitHub WebHooks
Ruby
15
star
46

Naginator

A Ruby parser and generator for Nagios
Ruby
15
star
47

puppetlabs-rpmbuilder

Puppet module to quickly and painlessly equip a host to build RPM packages
HTML
15
star
48

puppetlabs-netapp

Ruby
14
star
49

puppetlabs-limits

Module for managing pam limits in /etc/security/limits.conf
Puppet
14
star
50

puppetlabs-debbuilder

Module to build a debian package builder
Puppet
14
star
51

puppetlabs-inventory

outputs a data structure describing properties of the system on which it's run
Ruby
12
star
52

puppetlabs-rancher

Puppet module for installing Rancher Server and Agent
Ruby
12
star
53

lein-ubersource

A leiningen plugin that attempts to download all of the source code for all of a project's (transitive) dependencies
Clojure
12
star
54

puppetlabs-package_updates

Package update discovery Puppet Face and custom Facter fact
Ruby
12
star
55

pdk-planning

A repository of roadmaps, feature proposals, and other planning resources for the Puppet Development Kit
PowerShell
11
star
56

puppetlabs-sqlite

SQLite module to manage sqlite installation and database management
Puppet
10
star
57

puppetlabs-logentries

Installs the logentries agent
Puppet
9
star
58

puppetlabs-azure

Types and Providers to manage Azure resources with Puppet
Ruby
9
star
59

cljs-dashboard-widgets

A library of clojurescript widgets and utility code, intended for use in building developer / metrics dashboards.
Clojure
8
star
60

vmpooler-client

Python
7
star
61

beaker-testmode_switcher

run your puppet module tests in master/agent, apply or local mode
Ruby
7
star
62

crossfader

Project to provide pre-compiled ruby versions for developers
C
7
star
63

puppetdb-javaclient

new Java client for PuppetDB
Java
6
star
64

puppetlabs-cve20113872

Puppet Module to help fix and migrate a Puppet deployment (CVE-2011-3872)
Ruby
6
star
65

puppetlabs-vswitch

RedHat-OpenStack VSwitch Module
Ruby
6
star
66

puppetlabs-ldap_entry

Manages the creation, deletion, and synchronization of entries in an LDAP database.
Ruby
6
star
67

mcollective-zeromq-connector

0MQ connector for MCollective
Ruby
5
star
68

puppetlabs-openstack_admin

Administrative wrapper for the openstack module
Puppet
5
star
69

trapperkeeper-ruby

Ruby
5
star
70

puppetlabs-denyhosts

A module to provide basic DenyHosts capability
HTML
5
star
71

puppetlabs-apacheds

Puppet
5
star
72

puppet_community_data

Metrics and Graphs for Puppet Community Pull Requests: http://pullrequestmetrics.herokuapp.com/
JavaScript
5
star
73

mq

A simple clojure library to embed an ActiveMQ instance in your application
Clojure
5
star
74

puppetwash

A Wash plugin for puppet
Ruby
4
star
75

puppet-reporter

A web-based reports application for Puppet
JavaScript
4
star
76

puppetlabs-tempest

Module for configuring the OpenStack test suite Tempest
Puppet
4
star
77

maintainers

A gem for maintaining MAINTAINERS files
Ruby
4
star
78

action-litmus_spec

JavaScript
4
star
79

puppetlabs-windows_puppet_certificates

A Puppet module to import the puppet certificates into the machine certificate store in Windows
PowerShell
4
star
80

puppetlabs-pe_bulk_agent_install

A module for bulk installation of puppet agents on Linux and Windows hosts
Ruby
3
star
81

boltwash

Navigate your Bolt inventory in Wash
Ruby
3
star
82

trapperkeeper-lein-template

Clojure
3
star
83

vmwr

Ruby
3
star
84

horsehead

Useful libraries for Go projects
Go
3
star
85

pltraining-bootstrap

Bootstrap files for Puppetlabs Training VMs
Shell
3
star
86

pl-clojure-style

Emacs Lisp
3
star
87

puppet-cloud_connection

A type for storing cloud credential information in the catalog.
Ruby
3
star
88

puppetserver-memmeasure

Clojure
3
star
89

clamps

Ruby
3
star
90

puppetlabs-ldconfig

ldconfig Puppet module. Provides ability to model ldconfig configuration files
3
star
91

prm

Puppet Runtime Manager
Go
3
star
92

trapperkeeper-rpc

RPC service and implementation library for TrapperKeeper services.
Clojure
3
star
93

velocity_puppet_workshop_2009

Velocity Puppet Workshop 2009
Ruby
3
star
94

puppetlabs-puppetserver_gem

This module provides management of Ruby gems for Puppet Server.
Ruby
3
star
95

puppetlabs-azure_agent

The Azure module installs and configures the Windows Azure Linux agent
Ruby
2
star
96

rust-kitchensink

Rust
2
star
97

bdcisco-module-evpn_vxlan

Puppet
2
star
98

chloride

Simple abstraction layer around NetSSH: For all of your SSH-in-a-for-loop needs!
Ruby
2
star
99

openrobby

Robby helps you find people and places
Elixir
2
star
100

detect_wannacry

PowerShell
2
star