Skip to content

Commit

Permalink
Documentation fixes
Browse files Browse the repository at this point in the history
Group certain pages and fix up MkDocs config
  • Loading branch information
jaingaurav committed Dec 12, 2015
1 parent 020a265 commit 4b87b1f
Show file tree
Hide file tree
Showing 14 changed files with 38 additions and 52 deletions.
37 changes: 12 additions & 25 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,52 +1,39 @@
[![Build Status](https://travis-ci.org/python-diamond/Diamond.svg?branch=master)](https://travis-ci.org/python-diamond/Diamond)
About
=====

Diamond is a python daemon that collects system metrics and publishes them to
[Graphite](https://github.com/python-diamond/Diamond/wiki/handler-GraphiteHandler)
(and [others](https://github.com/python-diamond/Diamond/wiki/Handlers)). It is
capable of collecting cpu, memory, network, i/o, load and disk metrics. Additionally,
it features an API for implementing custom collectors for gathering metrics from almost any source.
# Diamond

The documentation can be found on our [wiki](https://github.com/python-diamond/Diamond/wiki). For your
convenience the wiki is setup as a submodule of this checkout. You can get it via running
[![Build Status](https://travis-ci.org/python-diamond/Diamond.svg?branch=master)](https://travis-ci.org/python-diamond/Diamond)

git submodule init
git submodule update
Diamond is a python daemon that collects system metrics and publishes them to [Graphite](handlers/GraphiteHandler) (and others).
It is capable of collecting cpu, memory, network, i/o, load and disk metrics.
Additionally, it features an API for implementing custom collectors for gathering metrics from almost any source.

Getting Started
=====
## Getting Started

Steps to getting started:

* Read the [documentation on the Wiki](https://github.com/python-diamond/Diamond/wiki)
* Read the [documentation](http://diamond.readthedocs.org)
* Install via "pip install diamond". The releases on github are not recommended for use. Use
"pypi-install diamond" on Debian/Ubuntu systems with python-stdeb installed to build packages.
* Copy the "diamond.conf.example" file to "diamond.conf".
* Optional: Run "diamond-setup" to help set collectors in "diamond.conf".
* Modify "diamond.conf" for your needs.
* Run diamond with one of: "diamond" or "initctl start diamond" or "/etc/init.d/diamond restart".

Success Stories
=====
## Success Stories

* Diamond has successfully been deployed to a cluster of 1000 machines pushing [3 million points per minute](https://answers.launchpad.net/graphite/+question/178969).
* Have a story? Please share!

Repos
=====
## Repos

Historically Diamond was a brightcove project and hosted at [BrightcoveOS](https://github.com/brightcoveos/Diamond).
However none of the active developers are brightcove employees and so the development
has moved to [python-diamond](https://github.com/python-diamond/Diamond). We request
that any new pull requests and issues be cut against python-diamond. We will keep
BrightcoveOS updated and still honor issues/tickets cut on that repo.

Diamond Related Projects
=====
* [Related Projects](https://github.com/python-diamond/Diamond/wiki/Related-Projects)
## Diamond Related Projects
* [Related Projects](Related-Projects)

Contact
=====
## Contact
* IRC [#python-diamond](irc://chat.freenode.net:6667/%23python-diamond) on [freenode](http://www.freenode.net). [Webchat](http://webchat.freenode.net/?channels=python-diamond)
* Mailing List [[email protected]](mailto:[email protected]) - Email the list and you will automatically subscribe. [Archive](http://librelist.com/browser/diamond/)
Original file line number Diff line number Diff line change
@@ -1,11 +1,14 @@
# Coding Standards

## Current
## General

* Collector default configuration should be in the get_default_config method of the class
* All collectors should verify before doing. For example, if the collector requires the existence of a file, check to verify that it exists and is readable before opening.
* Unit tests are highly recommended
* PEP-8
* Documentation should be done docstr style at the start of the collector. This is how we generate the wiki
* use small high-resolution units as default (such as bits or bytes). this gives you most options afterwards. note that graphite will show k/M/G etc prefixes by default if needed.
* The use of positional arguments for functions is strongly discouraged.

## Collectors

* Collector default configuration should be in the get_default_config method of the class
* All collectors should verify before doing. For example, if the collector requires the existence of a file, check to verify that it exists and is readable before opening.
* use small high-resolution units as default (such as bits or bytes). this gives you most options afterwards. note that graphite will show k/M/G etc prefixes by default if needed.
6 changes: 2 additions & 4 deletions docs/FAQ.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
FAQ
=====
# FAQ

Why am I missing metrics?
-------------------------
## Why am I missing metrics?

Graphite has a configuration variable called `MAX_CREATES_PER_MINUTE`, which
prevents the carbon server from creating too many whisper files at once.
Expand Down
16 changes: 7 additions & 9 deletions docs/Configuration.md → docs/Getting-Started/Configuration.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
Configuration
=====
# Configuration

## Configuration File

If you've installed diamond via a package, a example configuration file is /etc/diamond/diamond.conf.example.
Please copy this to /etc/diamond/diamond.conf and configure at will. By default, diamond
Expand All @@ -19,8 +20,7 @@ We also have diamond-setup. It will walk you though setting up diamond and it's

If you have any questions at all, please feel free to stop by and talk to us on irc, [#python-diamond](irc://chat.freenode.net:6667/%23python-diamond) on [freenode](http://www.freenode.net). [Webchat](http://webchat.freenode.net/?channels=python-diamond)

Logging
=====
## Logging

Diamond defaults to logging at /var/log/diamond/diamond.log

Expand Down Expand Up @@ -62,8 +62,7 @@ format = [%(asctime)s] [%(threadName)s] %(message)s
datefmt =
```

Collector Settings
=====
## Collector Settings

Every collector has some default options

Expand All @@ -83,8 +82,7 @@ Every collector has some default options
* uname_rev = uname -r in reverse (com.example.www)
* none = no hostname autodetection. just use the statically defined hostname

Enable / Disable Collector
===
## Enable / Disable Collector

Diamond collectors that require a separate configuration file should place a
.conf file in /etc/diamond/collectors/.
Expand Down Expand Up @@ -113,4 +111,4 @@ diamond-setup -C HttpdCollector

You can add more settings for the Collector in the same file.

Make sure to restart diamond daemon and wait at least 3 collection cycles.
Make sure to restart diamond daemon and wait at least 3 collection cycles.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
5 changes: 0 additions & 5 deletions docs/Home.md

This file was deleted.

8 changes: 5 additions & 3 deletions docs/Related-Projects.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
Diamond Related Projects
=====
# Related Projects

## Integrations

* [puppet-diamond](https://github.com/vimeo/puppet-diamond) - diamond module for puppet
* [chef-diamond](https://github.com/CBarraford/diamond_cookbook) - diamond cookbook for chef (Reported Broken)
* [chef-diamond](https://github.com/damm/diamond) - Alternative diamond cookbook for chef (Reported Broken)
* [graph-explorer](https://github.com/Dieterbe/graph-explorer) - graphite dashboard that comes with templates for diamond plugins
* [graph-index](https://github.com/huoxy/graph-index) - index of graphs for diamond
* [graph-index](https://github.com/huoxy/graph-index) - index of graphs for diamond
1 change: 1 addition & 0 deletions docs/index.md
2 changes: 0 additions & 2 deletions docs/mkdocs.yml

This file was deleted.

4 changes: 4 additions & 0 deletions mkdocs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
site_name: Diamond
repo_url: https://github.com/python-diamond/diamond
include_next_prev: false
theme: mkdocs

0 comments on commit 4b87b1f

Please sign in to comment.