mirror of
https://github.com/mii443/prometheus-android-exporter.git
synced 2025-08-23 15:48:11 +00:00
add proto file
This commit is contained in:
@ -5,6 +5,7 @@ data class RemoteWriteConfiguration(
|
|||||||
val remote_write_endpoint : String,
|
val remote_write_endpoint : String,
|
||||||
)
|
)
|
||||||
|
|
||||||
class RemoteWrite {
|
class RemoteWrite(config : RemoteWriteConfiguration) {
|
||||||
|
|
||||||
//TODO implement this thing
|
//TODO implement this thing
|
||||||
}
|
}
|
||||||
|
27
remote-write.proto
Normal file
27
remote-write.proto
Normal file
@ -0,0 +1,27 @@
|
|||||||
|
syntax = "proto3";
|
||||||
|
|
||||||
|
message WriteRequest {
|
||||||
|
repeated TimeSeries timeseries = 1;
|
||||||
|
// Cortex uses this field to determine the source of the write request.
|
||||||
|
// We reserve it to avoid any compatibility issues.
|
||||||
|
reserved 2;
|
||||||
|
|
||||||
|
// Prometheus uses this field to send metadata, but this is
|
||||||
|
// omitted from v1 of the spec as it is experimental.
|
||||||
|
reserved 3;
|
||||||
|
}
|
||||||
|
|
||||||
|
message TimeSeries {
|
||||||
|
repeated Label labels = 1;
|
||||||
|
repeated Sample samples = 2;
|
||||||
|
}
|
||||||
|
|
||||||
|
message Label {
|
||||||
|
string name = 1;
|
||||||
|
string value = 2;
|
||||||
|
}
|
||||||
|
|
||||||
|
message Sample {
|
||||||
|
double value = 1;
|
||||||
|
int64 timestamp = 2;
|
||||||
|
}
|
Reference in New Issue
Block a user