From 7a2047309974ce561cd2d6ded5bef100eb5022e2 Mon Sep 17 00:00:00 2001 From: Demitri Swan Date: Tue, 8 Sep 2020 08:34:47 -0700 Subject: Release v0.1.2 --- VERSION | 2 +- docs/prom__collector__registry_8h_source.html | 4 ++-- docs/prom__histogram__buckets_8h_source.html | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/VERSION b/VERSION index 6da28dd..d917d3e 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -0.1.1 \ No newline at end of file +0.1.2 diff --git a/docs/prom__collector__registry_8h_source.html b/docs/prom__collector__registry_8h_source.html index 7d029de..b5f3d03 100644 --- a/docs/prom__collector__registry_8h_source.html +++ b/docs/prom__collector__registry_8h_source.html @@ -68,7 +68,7 @@ $(function() {
prom_collector_registry.h
-Go to the documentation of this file.
1 /*
2 Copyright 2019 DigitalOcean Inc.
3 
4 Licensed under the Apache License, Version 2.0 (the "License");
5 you may not use this file except in compliance with the License.
6 You may obtain a copy of the License at
7 
8  http://www.apache.org/licenses/LICENSE-2.0
9 
10 Unless required by applicable law or agreed to in writing, software
11 distributed under the License is distributed on an "AS IS" BASIS,
12 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 See the License for the specific language governing permissions and
14 limitations under the License.
15 */
16 
22 #ifndef PROM_REGISTRY_H
23 #define PROM_REGISTRY_H
24 
25 #include "prom_collector.h"
26 #include "prom_metric.h"
27 
31 typedef struct prom_collector_registry prom_collector_registry_t;
32 
38 
44 
51 
58 
65 
78 
89 
97 
108 
121  const char *metric_name);
122 
123 #endif // PROM_H
struct prom_collector prom_collector_t
A prometheus collector calls collect to prepare metrics and return them to the registry to which it i...
Definition: prom_collector.h:32
+Go to the documentation of this file.
1 /*
2 Copyright 2019 DigitalOcean Inc.
3 
4 Licensed under the Apache License, Version 2.0 (the "License");
5 you may not use this file except in compliance with the License.
6 You may obtain a copy of the License at
7 
8  http://www.apache.org/licenses/LICENSE-2.0
9 
10 Unless required by applicable law or agreed to in writing, software
11 distributed under the License is distributed on an "AS IS" BASIS,
12 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 See the License for the specific language governing permissions and
14 limitations under the License.
15 */
16 
22 #ifndef PROM_REGISTRY_H
23 #define PROM_REGISTRY_H
24 
25 #include "prom_collector.h"
26 #include "prom_metric.h"
27 
31 typedef struct prom_collector_registry prom_collector_registry_t;
32 
38 
44 
51 
58 
65 
78 
89 
97 
108 
121  const char *metric_name);
122 
123 #endif // PROM_H
struct prom_collector prom_collector_t
A prometheus collector calls collect to prepare metrics and return them to the registry to which it i...
Definition: prom_collector.h:32
const char * prom_collector_registry_bridge(prom_collector_registry_t *self)
Returns a string in the default metric exposition format.
int prom_collector_registry_destroy(prom_collector_registry_t *self)
Destroy a collector registry.
struct prom_metric prom_metric_t
A prometheus metric.
Definition: prom_metric.h:34
@@ -78,7 +78,7 @@ $(function() {
int prom_collector_registry_enable_process_metrics(prom_collector_registry_t *self)
Enable process metrics on the given collector registry.
struct prom_collector_registry prom_collector_registry_t
A prom_registry_t is responsible for registering metrics and briding them to the string exposition fo...
Definition: prom_collector_registry.h:31
prom_metric_t * prom_collector_registry_must_register_metric(prom_metric_t *metric)
Registers a metric with the default collector on PROM_DEFAULT_COLLECTOR_REGISTRY. ...
-
prom_collector_registry_t * PROM_COLLECTOR_REGISTRY_DEFAULT
Initialize the default registry by calling prom_collector_registry_init within your program...
Definition: prom_collector_registry.h:37
+
prom_collector_registry_t * PROM_COLLECTOR_REGISTRY_DEFAULT
Initialize the default registry by calling prom_collector_registry_init within your program...
Functions for retrieving metric samples from metrics given an ordered set of labels.
int prom_collector_registry_register_metric(prom_metric_t *metric)
Registers a metric with the default collector on PROM_DEFAULT_COLLECTOR_REGISTRY. ...
int prom_collector_registry_validate_metric_name(prom_collector_registry_t *self, const char *metric_name)
Validates that the given metric name complies with the specification:
diff --git a/docs/prom__histogram__buckets_8h_source.html b/docs/prom__histogram__buckets_8h_source.html index 914c830..c2647d0 100644 --- a/docs/prom__histogram__buckets_8h_source.html +++ b/docs/prom__histogram__buckets_8h_source.html @@ -68,7 +68,7 @@ $(function() {
prom_histogram_buckets.h
-Go to the documentation of this file.
1 /*
2 Copyright 2019 DigitalOcean Inc.
3 
4 Licensed under the Apache License, Version 2.0 (the "License");
5 you may not use this file except in compliance with the License.
6 You may obtain a copy of the License at
7 
8  http://www.apache.org/licenses/LICENSE-2.0
9 
10 Unless required by applicable law or agreed to in writing, software
11 distributed under the License is distributed on an "AS IS" BASIS,
12 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 See the License for the specific language governing permissions and
14 limitations under the License.
15 */
16 
22 #include "stdlib.h"
23 
24 #ifndef PROM_HISTOGRAM_BUCKETS_H
25 #define PROM_HISTOGRAM_BUCKETS_H
26 
27 typedef struct prom_histogram_buckets {
28  int count;
29  const double *upper_bounds;
31 
39 prom_histogram_buckets_t* prom_histogram_buckets_new(size_t count, double bucket, ...);
40 
45 
53 prom_histogram_buckets_t* prom_histogram_buckets_linear(double start, double width, size_t count);
54 
64 prom_histogram_buckets_t* prom_histogram_buckets_exponential(double start, double factor, size_t count);
65 
66 
74 
81 
82 #endif // PROM_HISTOGRAM_BUCKETS_H
prom_histogram_buckets_t * prom_histogram_default_buckets
the default histogram buckets: .005, .01, .025, .05, .1, .25, .5, 1, 2.5, 5, 10
Definition: prom_histogram_buckets.h:44
+Go to the documentation of this file.
1 /*
2 Copyright 2019 DigitalOcean Inc.
3 
4 Licensed under the Apache License, Version 2.0 (the "License");
5 you may not use this file except in compliance with the License.
6 You may obtain a copy of the License at
7 
8  http://www.apache.org/licenses/LICENSE-2.0
9 
10 Unless required by applicable law or agreed to in writing, software
11 distributed under the License is distributed on an "AS IS" BASIS,
12 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 See the License for the specific language governing permissions and
14 limitations under the License.
15 */
16 
22 #include "stdlib.h"
23 
24 #ifndef PROM_HISTOGRAM_BUCKETS_H
25 #define PROM_HISTOGRAM_BUCKETS_H
26 
27 typedef struct prom_histogram_buckets {
28  int count;
29  const double *upper_bounds;
31 
39 prom_histogram_buckets_t* prom_histogram_buckets_new(size_t count, double bucket, ...);
40 
45 
53 prom_histogram_buckets_t* prom_histogram_buckets_linear(double start, double width, size_t count);
54 
64 prom_histogram_buckets_t* prom_histogram_buckets_exponential(double start, double factor, size_t count);
65 
66 
74 
81 
82 #endif // PROM_HISTOGRAM_BUCKETS_H
prom_histogram_buckets_t * prom_histogram_default_buckets
the default histogram buckets: .005, .01, .025, .05, .1, .25, .5, 1, 2.5, 5, 10
int count
Number of buckets.
Definition: prom_histogram_buckets.h:28
prom_histogram_buckets_t * prom_histogram_buckets_new(size_t count, double bucket,...)
Construct a prom_histogram_buckets_t*.
const double * upper_bounds
The bucket values.
Definition: prom_histogram_buckets.h:29
-- cgit v1.2.3