Giter Site home page Giter Site logo

modular-magician / puppet-google-logging Goto Github PK

View Code? Open in Web Editor NEW

This project forked from googlecloudplatform/google-cloud-ops-agents-puppet

0.0 1.0 0.0 14 KB

Managed Google Stackdriver Logging Agent via Puppet

License: Apache License 2.0

Puppet 100.00%

puppet-google-logging's Introduction

Google Stackdriver Logging Puppet Module

Overview

This module will install the Google Stackdriver Logging Agent. This application is required for using Stackdriver Monitoring with a VM.

The Monitoring agent is a collectd-based daemon that gathers system and application metrics from virtual machine instances and sends them to Stackdriver Monitoring. By default, the Monitoring agent collects disk, CPU, network, and process metrics.

Setup

To install this module on your Puppet Master (or Puppet Client/Agent), use the Puppet module installer:

puppet module install google-glogging

Optionally you can install support to all Google Cloud Platform products at once by installing our "bundle" [google-cloud][bundle-forge] module:

puppet module install google-cloud

Usage

To install the Google Stackdriver Logging Agent, add the following class to your Puppet manifest.

include glogging::agent

Permissions Required

Each GCP machine requires the https://www.googleapis.com/auth/logging.write scope in order to write logs.

Using the gcompute_instance resource, you can add the following:

gcompute_instance { 'my-vm':
  ...
  service_accounts   => {
    ...
    scopes => [
        ...
        # Enable Stackdriver Logging API access
        'https://www.googleapis.com/auth/logging.write',
        ...
    ],
  }
}

For more information on how to use the gcompute_instance please visit the google-gcompute module documentation.

Viewing Logs

Please go to the Google Cloud console to view the Stackdriver logs.

puppet-google-logging's People

Contributors

nelsonjr avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.