libprom  1.2.0
C based libraries to expose metrics in Promtheus exposition format
prom_metric_sample_histogram.h
Go to the documentation of this file.
1 /*
2 Copyright 2019-2020 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 
23 #ifndef PROM_METRIC_SAMPLE_HISOTGRAM_H
24 #define PROM_METRIC_SAMPLE_HISOTGRAM_H
25 
26 struct pms_histogram;
30 typedef struct pms_histogram pms_histogram_t;
31 
40 int pms_histogram_observe(pms_histogram_t *self, double value);
41 
42 #endif // PROM_METRIC_SAMPLE_HISOTGRAM_H
pms_histogram_observe
int pms_histogram_observe(pms_histogram_t *self, double value)
Find the bucket for the given value in the given prom sample metric histogram and increment the sampl...
pms_histogram_t
struct pms_histogram pms_histogram_t
A histogram metric sample.
Definition: prom_metric_sample_histogram.h:30