libprom @VERSION@
C based libraries to expose metrics in Promtheus exposition format
Loading...
Searching...
No Matches
prom.h
Go to the documentation of this file.
1/*
2Copyright 2019 DigitalOcean Inc.
3Copyright 2021 Jens Elkner <jel+libprom@cs.uni-magdeburg.de>
4
5Licensed under the Apache License, Version 2.0 (the "License");
6you may not use this file except in compliance with the License.
7You may obtain a copy of the License at
8
9 http://www.apache.org/licenses/LICENSE-2.0
10
11Unless required by applicable law or agreed to in writing, software
12distributed under the License is distributed on an "AS IS" BASIS,
13WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14See the License for the specific language governing permissions and
15limitations under the License.
16*/
17
206#ifndef PROM_INCLUDED
207#define PROM_INCLUDED
208
209#include "prom_alloc.h"
210#include "prom_collector.h"
212#include "prom_counter.h"
213#include "prom_gauge.h"
214#include "prom_histogram.h"
216#include "prom_linked_list.h"
217#include "prom_map.h"
218#include "prom_metric.h"
219#include "prom_metric_sample.h"
221
222#endif // PROM_INCLUDED
memory management
A prom_collector is used to collect metrics.
The collector registry registers collectors for metric exposition.
https://prometheus.io/docs/concepts/metric_types/#counter
https://prometheus.io/docs/concepts/metric_types/#gauge
https://prometheus.io/docs/concepts/metric_types/#histogram
https://prometheus.io/docs/concepts/metric_types/#histogram
Functions for retrieving metric samples from metrics given an ordered set of labels.
Functions for interfacting with metric samples directly.
Functions for interacting with histogram metric samples directly.