Seastar
High performance C++ framework for concurrent servers
scollectd_api.hh
1/*
2 * Copyright 2015 Cloudius Systems
3 */
4
5#pragma once
6
7#ifndef SEASTAR_MODULE
8#include <seastar/core/scollectd.hh>
10#include <seastar/util/modules.hh>
11#include <vector>
12#endif
13
14namespace seastar {
15
16namespace scollectd {
17
18SEASTAR_MODULE_EXPORT_BEGIN
19
20using collectd_value = seastar::metrics::impl::metric_value;
21
22std::vector<collectd_value> get_collectd_value(
23 const scollectd::type_instance_id& id);
24
25std::vector<scollectd::type_instance_id> get_collectd_ids();
26
27sstring get_collectd_description_str(const scollectd::type_instance_id&);
28
29bool is_enabled(const scollectd::type_instance_id& id);
36
37
38metrics::impl::value_map get_value_map();
39
40SEASTAR_MODULE_EXPORT_END
41
42}
43
44}
A helper class that used to return metrics value.
Definition: metrics.hh:294
Definition: scollectd.hh:303
header file for metric API layer (like prometheus or collectd)
void enable(const scollectd::type_instance_id &id, bool enable)
Seastar API namespace.
Definition: abort_on_ebadf.hh:26