Skip to content
No description, website, or topics provided.
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
nuspec/nuget
src
tools
.appveyor.yml
.editorconfig
.gitattributes
.gitignore
GitReleaseManager.yaml
LICENSE
NuGet.Config
README.md
build.ps1
build.sh
recipe.cake

README.md

Cake.Graphite

Cake.Graphite is a set of aliases for Cake to help with sending metrics to Graphite as part of a build.

License

Information

Stable Pre-release
GitHub Release - GitHub release
NuGet NuGet NuGet

Build Status

Develop Master
Build status Build status

Code Coverage

Coverage Status

Chat Room

Come join in the conversation about Cake.Graphite in our Gitter Chat Room

Join the chat at https://gitter.im/cake-contrib/Lobby

Build

To build this package we are using Cake.

On Windows PowerShell run:

./build

Example

#addin nuget:?package=Cake.Graphite&loaddependencies=true
///////////////////////////////////////////////////////////////////////////////
// ARGUMENTS
///////////////////////////////////////////////////////////////////////////////

var target = Argument("target", "Default");
var configuration = Argument("configuration", "Release");

///////////////////////////////////////////////////////////////////////////////
// SETUP / TEARDOWN
///////////////////////////////////////////////////////////////////////////////

public class BuildData
{
    public Graphite Graphite { get; }

    public BuildData(Graphite graphite)
    {
       Graphite = graphite;
    }
}

Setup(setupContext  =>
{
   // Executed BEFORE the first task.
   Information("Running tasks...");

   var graphiteClient = Graphite(new GraphiteSettings{
      Host = "localhost"
   });

   return new BuildData(graphiteClient);
});

Teardown(ctx =>
{
   // Executed AFTER the last task.
   Information("Finished running tasks.");
});

///////////////////////////////////////////////////////////////////////////////
// TASKS
///////////////////////////////////////////////////////////////////////////////

Task("Default")
.Does<BuildData>(data => {
   data.Graphite.Send("example", 3);
});

RunTarget(target);
You can’t perform that action at this time.