blob: 1fb3d9f0f5955c1a23d7d66e53921978da2da203 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
#pragma once
#include <Server/HTTP/HTTPRequestHandler.h>
#include "PrometheusMetricsWriter.h"
namespace DB
{
class IServer;
class PrometheusRequestHandler : public HTTPRequestHandler
{
private:
IServer & server;
const PrometheusMetricsWriter & metrics_writer;
public:
explicit PrometheusRequestHandler(IServer & server_, const PrometheusMetricsWriter & metrics_writer_)
: server(server_)
, metrics_writer(metrics_writer_)
{
}
void handleRequest(HTTPServerRequest & request, HTTPServerResponse & response) override;
};
}
|