Photon Server API
Public Member Functions | List of all members
ExitGames.Diagnostics.Monitoring.Protocol.InfluxDB090.Graphite.Text.GraphiteTextWriter Class Reference

Graphite text protocol writer http://graphite.wikidot.com/getting-your-data-into-graphite metric_path value timestamp
More...

Inheritance diagram for ExitGames.Diagnostics.Monitoring.Protocol.InfluxDB090.Graphite.Text.GraphiteTextWriter:
ExitGames.Diagnostics.Monitoring.Protocol.Graphite.Text.GraphiteTextWriter ExitGames.Diagnostics.Monitoring.Protocol.PhotonBinaryWriterBase ExitGames.Diagnostics.Monitoring.Protocol.ICounterSampleWriter

Public Member Functions

 GraphiteTextWriter (int maxQueueLength, ISocketSender socket)
 
 GraphiteTextWriter (char separator, int maxQueueLength, ISocketSender socket)
 
 GraphiteTextWriter (char separator, int minPayloadSize, int maxPayloadSize, int serializationBufferSize, int maxQueueLength, ISocketSender socket)
 
 GraphiteTextWriter (InfluxDB090TextWriterSettings s)
 
override void Start (CounterSampleSenderBase sender)
 Start writing. Stop is handled by IDisposable implementation. Can be called once. More...
 
override string GetKey (CounterSampleCollection c)
 
- Public Member Functions inherited from ExitGames.Diagnostics.Monitoring.Protocol.Graphite.Text.GraphiteTextWriter
 GraphiteTextWriter (int maxQueueLength, ISocketSender socket)
 
 GraphiteTextWriter (int minPayloadSize, int maxPayloadSize, int serializationBufferSize, int maxQueueLength, ISocketSender socket)
 
 GraphiteTextWriter (PacketWriterSettings s)
 
override void Publish (CounterSampleCollection[] packages)
 Called by CounterSampleSenderBase to write samples out to some storage. More...
 
virtual void Serialize (StreamWriter w, string key, CounterSample s)
 
- Public Member Functions inherited from ExitGames.Diagnostics.Monitoring.Protocol.PhotonBinaryWriterBase
void Dispose ()
 
void EnqueueData (byte[] data)
 

Additional Inherited Members

- Static Public Member Functions inherited from ExitGames.Diagnostics.Monitoring.Protocol.Graphite.Text.GraphiteTextWriter
static TimeSpan GetUnixTimestamp (DateTime dt)
 
- Static Public Member Functions inherited from ExitGames.Diagnostics.Monitoring.Protocol.PhotonBinaryWriterBase
static ISocketSender CreateSender (CounterSampleSenderSettings s)
 
- Public Attributes inherited from ExitGames.Diagnostics.Monitoring.Protocol.Graphite.Text.GraphiteTextWriter
const char Separator = '.'
 
- Public Attributes inherited from ExitGames.Diagnostics.Monitoring.Protocol.PhotonBinaryWriterBase
const int DefaultMaxQueueLength = 120
 
readonly int MaxQueueLength = DefaultMaxQueueLength
 Gets a value indicating how many packages should be enqueued for republishing if an error occurred during publishing. The default value is 120. More...
 
readonly LinkedList< byte[]> SendQueue = new LinkedList<byte[]>()
 
- Static Public Attributes inherited from ExitGames.Diagnostics.Monitoring.Protocol.Graphite.Text.GraphiteTextWriter
static readonly DateTime Epoch = new DateTime(1970, 1, 1)
 
- Protected Member Functions inherited from ExitGames.Diagnostics.Monitoring.Protocol.PhotonBinaryWriterBase
 PhotonBinaryWriterBase (int maxQueueLength, ISocketSender socket)
 
 PhotonBinaryWriterBase (CounterSampleSenderSettings s)
 
virtual void Dispose (bool disposing)
 
- Properties inherited from ExitGames.Diagnostics.Monitoring.Protocol.PhotonBinaryWriterBase
int QueuedDataSize [get]
 Gets the size of the queued data in bytes. More...
 
bool Ready [get]
 
string SenderId [get]
 
- Properties inherited from ExitGames.Diagnostics.Monitoring.Protocol.ICounterSampleWriter
bool Ready [get]
 Is writer ready to publish any data. IsConnected status is subset of this status. Default implementation is writer started and connected. More...
 

Detailed Description

Graphite text protocol writer http://graphite.wikidot.com/getting-your-data-into-graphite metric_path value timestamp

InfluxDB 0.9.0 awaits in the following format: ex: region.us-west.hostname.server01.cpu -> tags -> region: us-west, hostname: server01, point name -> cpu use senderId = "CloudType.{#CloudType#}.PrivateCloud.{#PrivateCloud#}.Region.{#Region#}.Cluster.{#Cluster#}.Machine.{0}"

Constructor & Destructor Documentation

ExitGames.Diagnostics.Monitoring.Protocol.InfluxDB090.Graphite.Text.GraphiteTextWriter.GraphiteTextWriter ( int  maxQueueLength,
ISocketSender  socket 
)
inline
ExitGames.Diagnostics.Monitoring.Protocol.InfluxDB090.Graphite.Text.GraphiteTextWriter.GraphiteTextWriter ( char  separator,
int  maxQueueLength,
ISocketSender  socket 
)
inline
ExitGames.Diagnostics.Monitoring.Protocol.InfluxDB090.Graphite.Text.GraphiteTextWriter.GraphiteTextWriter ( char  separator,
int  minPayloadSize,
int  maxPayloadSize,
int  serializationBufferSize,
int  maxQueueLength,
ISocketSender  socket 
)
inline
ExitGames.Diagnostics.Monitoring.Protocol.InfluxDB090.Graphite.Text.GraphiteTextWriter.GraphiteTextWriter ( InfluxDB090TextWriterSettings  s)
inline

Member Function Documentation

override string ExitGames.Diagnostics.Monitoring.Protocol.InfluxDB090.Graphite.Text.GraphiteTextWriter.GetKey ( CounterSampleCollection  c)
inlinevirtual
override void ExitGames.Diagnostics.Monitoring.Protocol.InfluxDB090.Graphite.Text.GraphiteTextWriter.Start ( CounterSampleSenderBase  sender)
inlinevirtual

Start writing. Stop is handled by IDisposable implementation. Can be called once.

Reimplemented from ExitGames.Diagnostics.Monitoring.Protocol.PhotonBinaryWriterBase.