Giter VIP home page Giter VIP logo

firehose-plugin's Introduction

nozzle-plugin

Build Status

Installation

cf add-plugin-repo CF-Community http://plugins.cloudfoundry.org/
cf install-plugin "Firehose Plugin" -r CF-Community

Usage

User must be logged in as admin

Options

The entire firehose for CF.

NAME:
   nozzle - Displays messages from the firehose

USAGE:
   cf nozzle

OPTIONS:
   -debug                 -d, enable debugging
   -filter                -f, specify message filter such as LogMessage, ValueMetric, CounterEvent, HttpStartStop
   -no-filter             -n, no firehose filter. Display all messages
   -subscription-id       -s, specify subscription id for distributing firehose output between clients

All logs, metrics and events for a given app. This differs from cf logs APP_NAME because it provides other information like container metrics that are related to the app.

NAME:
   app-nozzle - Displays messages from the firehose for a given app

USAGE:
   cf app-nozzle APP_NAME

OPTIONS:
   -debug           -d, enable debugging
   -filter          -f, specify message filter such as LogMessage, ValueMetric, CounterEvent, HttpStartStop
   -no-filter       -n, no filter. Display all messages

With Interactive Prompt

cf nozzle
cf app-nozzle APP_NAME

Without Interactive Prompt

Error message will be displayed for unrecognized filter type

# For debug
cf nozzle --debug
cf app-nozzle APP_NAME --debug

# For all messages
cf nozzle --no-filter
cf app-nozzle APP_NAME --no-filter

# For Log Messages
cf nozzle --filter LogMessage
cf app-nozzle APP_NAME --filter LogMessage

# For HttpStartStop
cf nozzle --filter HttpStartStop
cf app-nozzle APP_NAME --filter HttpStartStop

# For ValueMetric
cf nozzle --filter ValueMetric
cf app-nozzle APP_NAME --filter ValueMetric

# For CounterEvent
cf nozzle --filter CounterEvent
cf app-nozzle APP_NAME --filter CounterEvent

# For ContainerMetric
cf nozzle --filter ContainerMetric
cf app-nozzle APP_NAME --filter ContainerMetric

# For Error
cf nozzle --filter Error
cf app-nozzle APP_NAME --filter Error

Subscription ID

In order to distribute the firehose data evenly among multiple CLI sessions, the user must specify the same subscription ID to each of the client connections.

cf nozzle --no-filter --subscription-id myFirehose

Uninstall

cf uninstall-plugin FirehosePlugin

Testing

Run tests

./scripts/test.sh

If you want to install the plugin locally and test it manually

./scripts/install.sh

Releasing

In order to create a new release, follow these steps

  1. Create local tag and binaries
./scripts/build-all.sh release VERSION_NUMBER #(e.g. 0.7.0)
  1. Copy the output of the previous command from the first line (should be '- name: Firehose Plugin' to the last checksum line (should be something like checksum: fde5fd52c40ea4c34330426c09c143a76a77a8db)
  2. Push the tag git push --follow-tags
  3. On github, create new release based on new tag here
  4. Upload the three binaries from the ./bin folders to the release (Linux, OSX and Win64)
  5. Fork this repo and clone it locally
  6. Edit the repo-index.yml to override the existing section about the firehose plugin with the text previously copied in Step 2.
  7. Run go run sort/main.go repo-index.yml in the cli-plugin-repo to alphabetize the properties
  8. Run BINARY_VALIDATION=true go test
  9. Push the change to your fork
  10. Create a PR against the original repo

firehose-plugin's People

Contributors

jtuchscherer avatar roxtar avatar wfernandes avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Forkers

blgm vchrisb

firehose-plugin's Issues

Quotas in `containerMetrics` no longer have named indices

Hi! I've been asking for help on this in CF Slack #loggregator today, and was advised the problem might be fixable by changing how this plugin gets its sonde-go. I don't understand the rest of the related stack too well just yet!

The issue is that previously, cf app-nozzle my-app -f ContainerMetric gave output where each event included a containerMetric object whose named keys included memoryBytesQuota and diskBytesQuota.

Now it seems like the same numbers are there inside containerMetric, but the keys are now just 6 and 7 - e.g. containerMetric:<applicationId:"11.." ... 6:1073741824 7:2147483648 >

This is the current behaviour after pulling the stable cf-cli to a brand new Ubuntu 16.04 LTS instance and running cf install-plugin 'Firehose Plugin' -r CF-Community -f.

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.