mirror of
https://github.com/mii443/prometheus-android-exporter.git
synced 2025-08-22 15:15:35 +00:00
protobuf generate
This commit is contained in:
@ -1,12 +1,14 @@
|
|||||||
# Makefile for protobuf generation for remote write prometheus protocol
|
# Makefile for protobuf generation for "remote write" prometheus protocol
|
||||||
|
#
|
||||||
|
# Input: 'proto' folder
|
||||||
|
# Output: 'protogen' package
|
||||||
|
|
||||||
.PHONY: protobuf
|
.PHONY: protobuf
|
||||||
|
|
||||||
SRC_DIR_PROTO=app/src/main/java/com/birdthedeveloper/prometheus/android/prometheus/android/exporter/proto
|
SRC_DIR_PROTO=app/src/main/java/com/birdthedeveloper/prometheus/android/prometheus/android/exporter/proto
|
||||||
DST_DIR_PROTO=../proto-gen/
|
DST_DIR_PROTO=app/src/main/java/com/birdthedeveloper/prometheus/android/prometheus/android/exporter
|
||||||
|
|
||||||
protobuf:
|
protobuf:
|
||||||
mkdir -p $(DST_DIR_PROTO)
|
mkdir -p $(DST_DIR_PROTO)
|
||||||
protoc -I=$(SRC_DIR_PROTO) --kotlin_out=$(DST_DIR_PROTO) $(SRC_DIR_PROTO)/remote-write.proto
|
protoc -I=$(SRC_DIR_PROTO) --kotlin_out=$(DST_DIR_PROTO) $(SRC_DIR_PROTO)/remote-write.proto
|
||||||
|
|
||||||
#TODO
|
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
syntax = "proto3";
|
syntax = "proto3";
|
||||||
|
|
||||||
package proto;
|
package protogen;
|
||||||
|
|
||||||
message WriteRequest {
|
message WriteRequest {
|
||||||
repeated TimeSeries timeseries = 1;
|
repeated TimeSeries timeseries = 1;
|
||||||
|
Reference in New Issue
Block a user