#include <stdio.h>
#include <stdlib.h>
#include <string.h>
Go to the source code of this file.
Defines | |
#define | SEND_GMETRIC_H 1 |
Functions | |
int | init_gmetric (const char *conf) |
Initialize Ganglia. | |
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. |
This file serves as the library entry point for the libgmetric library.
Definition in file send_gmetric.h.
int init_gmetric | ( | const char * | conf | ) |
Initialize Ganglia.
conf | String containing path to Gmond configuration file |
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.
name | Name of the metric | |
value | Value of the metric | |
type | Type of the metric. Either string|int8|uint8|int16|uint16|int32|uint32|float|double | |
units | Units of the metric | |
slope | For RRD, slope to use. Usually "both" | |
tmax | The maximum time in seconds between gmetric calls | |
dmax | The lifetime in seconds of this metric | |
group | Group of the metric | |
cluster | Cluster for the metric | |
desc | Description of the metric | |
title | Title of the metric |
Definition at line 53 of file send_gmetric.c.