libprom  @VERSION@
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
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.