src/artdaq-ganglia-plugin/send_gmetric.h File Reference

#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.

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:
conf String 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:
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
Returns:
0 on success

Definition at line 53 of file send_gmetric.c.


Generated on 7 Jun 2018 for artdaq_ganglia_plugin by  doxygen 1.6.1