GithubHelp home page GithubHelp logo

tas50 / chef-graphite_powershell_functions Goto Github PK

View Code? Open in Web Editor NEW
6.0 1.0 3.0 54 KB

Chef cookbook to install the graphite_powershell_functions script for perfmon counter polling into Graphite

License: Apache License 2.0

Ruby 20.78% PowerShell 76.32% HTML 2.90%

chef-graphite_powershell_functions's Introduction

graphite_powershell_functions Cookbook

Build Status Cookbook Version

A cookbook to install the Graphite PowerShell Function (https://github.com/MattHodge/Graphite-PowerShell-Functions) script using Chef. Sets up the script as a Windows service using the Non-Sucky Service Manager (http://nssm.cc/) as outlined in Matt Hodge's documentation for Graphite PowerShell Functions.

Requirements

Chef

  • Chef 12.1+

Platforms

  • Windows

Cookbooks

  • Windows

Attributes

  • default['graphite_powershell_functions']['CarbonServer'] FQDN of the carbon host. Required
  • default['graphite_powershell_functions']['CarbonServerPort'] port of the carbon host (default: 2003).
  • default['graphite_powershell_functions']['MetricPath'] Path to prefix on the collected metrics (default: powershell.).
  • default['graphite_powershell_functions']['MetricSendIntervalSeconds'] Interval to grab metrics (default: 30).
  • default['graphite_powershell_functions']['TimeZoneOfGraphiteServer'] Timezone of the Graphite server (default UTC).
  • default['graphite_powershell_functions']['PerformanceCounters'] Array of performance counters to collect
  • default['graphite_powershell_functions']['MetricFilter'] Array of Metrics to filter
  • default['graphite_powershell_functions']['nssm_archive'] URL of the Non-Sucky Service Manager zip archive
  • default['graphite_powershell_functions']['nssm_archive_checksum'] shasum for the zip archive
  • default['graphite_powershell_functions']['install_dir'] directory to install to
  • default['graphite_powershell_functions']['service_name'] name of the service
  • `default['graphite_powershell_functions']['service_description'] description of the service

License & Authors

Copyright:: 2014-2016, Limelight Networks, Inc.

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

    http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

chef-graphite_powershell_functions's People

Contributors

docwhat avatar stefanwb avatar tas50 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

chef-graphite_powershell_functions's Issues

gsub string in ['MetricPath'] removing any last char

When altering the 'MetricPath' attribute , the gsub function at the end of the template assignment is removing any last char.

I attempted to change the path and it kept removing the last '.' delimiter.
I also found that when the path string was the word "environ"
it printed "enviro" in to the file.

the Ugly hack I did to fix it was add an extra ' ' at the end , but it is not a good way to fix the string manipulation.

Collectd attributes cause NoMethodError

Thank you so much for contributing this cookbook!

I've encountered an issue with node['collectd'] inside attributes/default.rb. I'm including graphite_powershell_functions from another cookbook and even though I am overriding CarbonServer, CarbonServerPort and MetricPath I'm getting a NoMethodError during compile time. Since graphite_powershell_functions doesn't depend on collectd, would you consider removing node['collectd'] from the default attributes?

c:/chef/cache/cookbooks/graphite_powershell_functions/attributes/default.rb:18:in `from_file'
NoMethodError: undefined method `[]' for nil:NilClass

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.