syslog-ng source
stats-prometheus.h File Reference
#include "syslog-ng.h"
#include "stats-cluster.h"
Include dependency graph for stats-prometheus.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define PROMETHEUS_METRIC_PREFIX   "syslogng_"
 

Typedefs

typedef void(* StatsPrometheusRecordFunc) (const char *record, gpointer user_data)
 

Functions

GString * stats_prometheus_format_counter (StatsCluster *sc, gint type, StatsCounterItem *counter)
 
void stats_generate_prometheus (StatsPrometheusRecordFunc process_record, gpointer user_data, gboolean with_legacy, gboolean without_orphaned, gboolean *cancelled)
 

Macro Definition Documentation

◆ PROMETHEUS_METRIC_PREFIX

#define PROMETHEUS_METRIC_PREFIX   "syslogng_"

Typedef Documentation

◆ StatsPrometheusRecordFunc

typedef void(* StatsPrometheusRecordFunc) (const char *record, gpointer user_data)

Function Documentation

◆ stats_generate_prometheus()

void stats_generate_prometheus ( StatsPrometheusRecordFunc  process_record,
gpointer  user_data,
gboolean  with_legacy,
gboolean  without_orphaned,
gboolean *  cancelled 
)

◆ stats_prometheus_format_counter()

GString* stats_prometheus_format_counter ( StatsCluster sc,
gint  type,
StatsCounterItem counter 
)