prometheus-client-c: promhttp/include/promhttp.h Source File

prometheus-client-c 0.1.1 Prometheus client for the C programming language

promhttp.h
Go to the documentation of this file.
1 /*
2 Copyright 2019-2020 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
26 #include <string.h>
27
28 #include "microhttpd.h"
29 #include "prom_collector_registry.h"
30
37 void promhttp_set_active_collector_registry(prom_collector_registry_t *active_registry);
38
47 struct MHD_Daemon *promhttp_start_daemon(unsigned int flags, unsigned short port, MHD_AcceptPolicyCallback apc,
48 void *apc_cls);
prom_collector_registry_t
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
promhttp_set_active_collector_registry
void promhttp_set_active_collector_registry(prom_collector_registry_t *active_registry)
Sets the active registry for metric scraping.
promhttp_start_daemon
struct MHD_Daemon * promhttp_start_daemon(unsigned int flags, unsigned short port, MHD_AcceptPolicyCallback apc, void *apc_cls)
Starts a daemon in the background and returns a pointer to an HMD_Daemon.
prom_collector_registry.h
The collector registry registers collectors for metric exposition.