mirror of
https://github.com/netdata/netdata.git
synced 2025-04-22 04:31:08 +00:00

* Add Prometheus remote write backend prototype * Fix autotools issues * Send HTTP POST request * Add parameters to HTTP header * Discard HTTP responce 200 * Update CMake build configuration * Fix Codacy issue * Check for C++ binary * Fix compilation without remote write backend * Add options to the installer script * Fix configure script warning * Fix make dist * Downgrade to ByteSize for better compatibility * Integrate remote write more tightly into the existing backends code * Cleanup * Fix build error * Parse host tags * Fix Codacy issue * Fix counters for buffered data * Rename preprocessor symbol * Better error handling * Cleanup * Update the documentation
29 lines
522 B
Protocol Buffer
29 lines
522 B
Protocol Buffer
syntax = "proto3";
|
|
package prometheus;
|
|
|
|
option cc_enable_arenas = true;
|
|
|
|
import "google/protobuf/descriptor.proto";
|
|
|
|
message WriteRequest {
|
|
repeated TimeSeries timeseries = 1 [(nullable) = false];
|
|
}
|
|
|
|
message TimeSeries {
|
|
repeated Label labels = 1 [(nullable) = false];
|
|
repeated Sample samples = 2 [(nullable) = false];
|
|
}
|
|
|
|
message Label {
|
|
string name = 1;
|
|
string value = 2;
|
|
}
|
|
|
|
message Sample {
|
|
double value = 1;
|
|
int64 timestamp = 2;
|
|
}
|
|
|
|
extend google.protobuf.FieldOptions {
|
|
bool nullable = 65001;
|
|
}
|