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