package
0.0.0-20190227035732-d56806e5335b
Repository: https://github.com/dcos/dcos-metrics.git
Documentation: pkg.go.dev

# README

Printer plugin for DC/OS Metrics

This plugin simply prints all metrics available on a node to stdout.

It is intended as an example of how to write a metrics plugin. You should not run it in production.

Usage

Build this plugin (requires a Golang environment)

  1. go get -u github.com/dcos/dcos-metrics
  2. cd $(go env GOPATH)/src/github.com/dcos/dcos-metrics
  3. make && make plugins

Plugin is available in the build directory:

 tree build
build
├── collector
│   └── dcos-metrics-collector-1.0.0-rc7
└── plugins
    └── dcos-metrics-stdout-plugin-1.0.0-rc7

Upload the plugin to your node via scp or similar, then simply run

./dcos-metrics-stdout-plugin --dcos-role=agent

The plugin will log every message it receives to stdout.