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