artdaq_ganglia_plugin  v1_02_14a
send_gmetric.h File Reference
#include <stdio.h>
#include <stdlib.h>
#include <string.h>

Go to the source code of this file.

Functions

int init_gmetric (const char *conf)
 Initialize Ganglia. More...
 
void destroy_gmetric ()
 Close connection to gmond.
 
int send_gmetric (const char *name, const char *value, const char *type, const char *units, const char *slope, int tmax, int dmax, const char *group, const char *cluster, const char *desc, const char *title)
 Send a metric to gmond. More...
 

Detailed Description

This file serves as the library entry point for the libgmetric library.

Definition in file send_gmetric.h.

Function Documentation

int init_gmetric ( const char *  conf)

Initialize Ganglia.

Parameters
confString containing path to Gmond configuration file
Returns
0 on success

Definition at line 18 of file send_gmetric.c.

int send_gmetric ( const char *  name,
const char *  value,
const char *  type,
const char *  units,
const char *  slope,
int  tmax,
int  dmax,
const char *  group,
const char *  cluster,
const char *  desc,
const char *  title 
)

Send a metric to gmond.

Parameters
nameName of the metric
valueValue of the metric
typeType of the metric. Either string|int8|uint8|int16|uint16|int32|uint32|float|double
unitsUnits of the metric
slopeFor RRD, slope to use. Usually "both"
tmaxThe maximum time in seconds between gmetric calls
dmaxThe lifetime in seconds of this metric
groupGroup of the metric
clusterCluster for the metric
descDescription of the metric
titleTitle of the metric
Returns
0 on success

Definition at line 53 of file send_gmetric.c.