Eunomia  0.1.0
A lightweight eBPF-based CloudNative Monitor tool for Container Security and Observability
prometheus_server.h
Go to the documentation of this file.
1 /* SPDX-License-Identifier: GPL-2.0 OR BSD-3-Clause
2  *
3  * Copyright (c) 2022, 郑昱笙,濮雯旭,张典典(牛校牛子队)
4  * All rights reserved.
5  */
6 
7 #ifndef EUNOMIA_PROMETHEUS_SERVER_H
8 #define EUNOMIA_PROMETHEUS_SERVER_H
9 
10 #include <array>
11 #include <chrono>
12 #include <cstdlib>
13 #include <memory>
14 #include <string>
15 #include <thread>
16 
17 #include "prometheus/exposer.h"
18 #include "prometheus/registry.h"
19 #include "model/event_handler.h"
20 #include "container_manager.h"
21 
23 {
24  prometheus_server(std::string bind_address, container_manager& cm);
26  prometheus::Exposer exposer;
27  std::shared_ptr<prometheus::Registry> registry;
29 };
30 
31 #endif
prometheus_server::registry
std::shared_ptr< prometheus::Registry > registry
Definition: prometheus_server.h:27
event_handler.h
prometheus_server::prometheus_server
prometheus_server(std::string bind_address, container_manager &cm)
Definition: promethues_server.cpp:20
container_manager.h
prometheus_server::start_prometheus_server
int start_prometheus_server()
Definition: promethues_server.cpp:27
container_manager
manager all container or k8s info
Definition: container_manager.h:21
prometheus_server::core_container_manager_ref
const container_manager & core_container_manager_ref
Definition: prometheus_server.h:25
prometheus_server::exposer
prometheus::Exposer exposer
Definition: prometheus_server.h:26
prometheus_server
Definition: prometheus_server.h:22