23 lines
430 B
C++
23 lines
430 B
C++
//
|
|
// Created by Мустафаев Селим Мустафаевич on 01.01.2024.
|
|
//
|
|
|
|
#ifndef ALIENCAT_EXPORTER_DNSMASQSOURCE_H
|
|
#define ALIENCAT_EXPORTER_DNSMASQSOURCE_H
|
|
|
|
#include <prometheus/counter.h>
|
|
#include <fstream>
|
|
#include <vector>
|
|
|
|
class DnsmasqSource {
|
|
private:
|
|
std::ifstream _leases;
|
|
|
|
public:
|
|
DnsmasqSource();
|
|
std::vector<prometheus::Labels> readLeases();
|
|
};
|
|
|
|
|
|
#endif //ALIENCAT_EXPORTER_DNSMASQSOURCE_H
|