Created
July 29, 2022 18:26
-
-
Save jangaraj/19ee5e6c4002dfae39d6a37b8b765741 to your computer and use it in GitHub Desktop.
Promtheus python proto files
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- coding: utf-8 -*- | |
# Generated by the protocol buffer compiler. DO NOT EDIT! | |
# source: remote.proto | |
"""Generated protocol buffer code.""" | |
from google.protobuf.internal import builder as _builder | |
from google.protobuf import descriptor as _descriptor | |
from google.protobuf import descriptor_pool as _descriptor_pool | |
from google.protobuf import symbol_database as _symbol_database | |
# @@protoc_insertion_point(imports) | |
_sym_db = _symbol_database.Default() | |
import types_pb2 as types__pb2 | |
from gogoproto import gogo_pb2 as gogoproto_dot_gogo__pb2 | |
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x0cremote.proto\x12\nprometheus\x1a\x0btypes.proto\x1a\x14gogoproto/gogo.proto\"z\n\x0cWriteRequest\x12\x30\n\ntimeseries\x18\x01 \x03(\x0b\x32\x16.prometheus.TimeSeriesB\x04\xc8\xde\x1f\x00\x12\x32\n\x08metadata\x18\x03 \x03(\x0b\x32\x1a.prometheus.MetricMetadataB\x04\xc8\xde\x1f\x00J\x04\x08\x02\x10\x03\"\xae\x01\n\x0bReadRequest\x12\"\n\x07queries\x18\x01 \x03(\x0b\x32\x11.prometheus.Query\x12\x45\n\x17\x61\x63\x63\x65pted_response_types\x18\x02 \x03(\x0e\x32$.prometheus.ReadRequest.ResponseType\"4\n\x0cResponseType\x12\x0b\n\x07SAMPLES\x10\x00\x12\x17\n\x13STREAMED_XOR_CHUNKS\x10\x01\"8\n\x0cReadResponse\x12(\n\x07results\x18\x01 \x03(\x0b\x32\x17.prometheus.QueryResult\"\x8f\x01\n\x05Query\x12\x1a\n\x12start_timestamp_ms\x18\x01 \x01(\x03\x12\x18\n\x10\x65nd_timestamp_ms\x18\x02 \x01(\x03\x12*\n\x08matchers\x18\x03 \x03(\x0b\x32\x18.prometheus.LabelMatcher\x12$\n\x05hints\x18\x04 \x01(\x0b\x32\x15.prometheus.ReadHints\"9\n\x0bQueryResult\x12*\n\ntimeseries\x18\x01 \x03(\x0b\x32\x16.prometheus.TimeSeries\"]\n\x13\x43hunkedReadResponse\x12\x31\n\x0e\x63hunked_series\x18\x01 \x03(\x0b\x32\x19.prometheus.ChunkedSeries\x12\x13\n\x0bquery_index\x18\x02 \x01(\x03\x42\x08Z\x06prompbb\x06proto3') | |
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, globals()) | |
_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'remote_pb2', globals()) | |
if _descriptor._USE_C_DESCRIPTORS == False: | |
DESCRIPTOR._options = None | |
DESCRIPTOR._serialized_options = b'Z\006prompb' | |
_WRITEREQUEST.fields_by_name['timeseries']._options = None | |
_WRITEREQUEST.fields_by_name['timeseries']._serialized_options = b'\310\336\037\000' | |
_WRITEREQUEST.fields_by_name['metadata']._options = None | |
_WRITEREQUEST.fields_by_name['metadata']._serialized_options = b'\310\336\037\000' | |
_WRITEREQUEST._serialized_start=63 | |
_WRITEREQUEST._serialized_end=185 | |
_READREQUEST._serialized_start=188 | |
_READREQUEST._serialized_end=362 | |
_READREQUEST_RESPONSETYPE._serialized_start=310 | |
_READREQUEST_RESPONSETYPE._serialized_end=362 | |
_READRESPONSE._serialized_start=364 | |
_READRESPONSE._serialized_end=420 | |
_QUERY._serialized_start=423 | |
_QUERY._serialized_end=566 | |
_QUERYRESULT._serialized_start=568 | |
_QUERYRESULT._serialized_end=625 | |
_CHUNKEDREADRESPONSE._serialized_start=627 | |
_CHUNKEDREADRESPONSE._serialized_end=720 | |
# @@protoc_insertion_point(module_scope) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- coding: utf-8 -*- | |
# Generated by the protocol buffer compiler. DO NOT EDIT! | |
# source: types.proto | |
"""Generated protocol buffer code.""" | |
from google.protobuf.internal import builder as _builder | |
from google.protobuf import descriptor as _descriptor | |
from google.protobuf import descriptor_pool as _descriptor_pool | |
from google.protobuf import symbol_database as _symbol_database | |
# @@protoc_insertion_point(imports) | |
_sym_db = _symbol_database.Default() | |
from gogoproto import gogo_pb2 as gogoproto_dot_gogo__pb2 | |
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x0btypes.proto\x12\nprometheus\x1a\x14gogoproto/gogo.proto\"\xf8\x01\n\x0eMetricMetadata\x12\x33\n\x04type\x18\x01 \x01(\x0e\x32%.prometheus.MetricMetadata.MetricType\x12\x1a\n\x12metric_family_name\x18\x02 \x01(\t\x12\x0c\n\x04help\x18\x04 \x01(\t\x12\x0c\n\x04unit\x18\x05 \x01(\t\"y\n\nMetricType\x12\x0b\n\x07UNKNOWN\x10\x00\x12\x0b\n\x07\x43OUNTER\x10\x01\x12\t\n\x05GAUGE\x10\x02\x12\r\n\tHISTOGRAM\x10\x03\x12\x12\n\x0eGAUGEHISTOGRAM\x10\x04\x12\x0b\n\x07SUMMARY\x10\x05\x12\x08\n\x04INFO\x10\x06\x12\x0c\n\x08STATESET\x10\x07\"*\n\x06Sample\x12\r\n\x05value\x18\x01 \x01(\x01\x12\x11\n\ttimestamp\x18\x02 \x01(\x03\"U\n\x08\x45xemplar\x12\'\n\x06labels\x18\x01 \x03(\x0b\x32\x11.prometheus.LabelB\x04\xc8\xde\x1f\x00\x12\r\n\x05value\x18\x02 \x01(\x01\x12\x11\n\ttimestamp\x18\x03 \x01(\x03\"\x8f\x01\n\nTimeSeries\x12\'\n\x06labels\x18\x01 \x03(\x0b\x32\x11.prometheus.LabelB\x04\xc8\xde\x1f\x00\x12)\n\x07samples\x18\x02 \x03(\x0b\x32\x12.prometheus.SampleB\x04\xc8\xde\x1f\x00\x12-\n\texemplars\x18\x03 \x03(\x0b\x32\x14.prometheus.ExemplarB\x04\xc8\xde\x1f\x00\"$\n\x05Label\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t\"1\n\x06Labels\x12\'\n\x06labels\x18\x01 \x03(\x0b\x32\x11.prometheus.LabelB\x04\xc8\xde\x1f\x00\"\x82\x01\n\x0cLabelMatcher\x12+\n\x04type\x18\x01 \x01(\x0e\x32\x1d.prometheus.LabelMatcher.Type\x12\x0c\n\x04name\x18\x02 \x01(\t\x12\r\n\x05value\x18\x03 \x01(\t\"(\n\x04Type\x12\x06\n\x02\x45Q\x10\x00\x12\x07\n\x03NEQ\x10\x01\x12\x06\n\x02RE\x10\x02\x12\x07\n\x03NRE\x10\x03\"|\n\tReadHints\x12\x0f\n\x07step_ms\x18\x01 \x01(\x03\x12\x0c\n\x04\x66unc\x18\x02 \x01(\t\x12\x10\n\x08start_ms\x18\x03 \x01(\x03\x12\x0e\n\x06\x65nd_ms\x18\x04 \x01(\x03\x12\x10\n\x08grouping\x18\x05 \x03(\t\x12\n\n\x02\x62y\x18\x06 \x01(\x08\x12\x10\n\x08range_ms\x18\x07 \x01(\x03\"\x8b\x01\n\x05\x43hunk\x12\x13\n\x0bmin_time_ms\x18\x01 \x01(\x03\x12\x13\n\x0bmax_time_ms\x18\x02 \x01(\x03\x12(\n\x04type\x18\x03 \x01(\x0e\x32\x1a.prometheus.Chunk.Encoding\x12\x0c\n\x04\x64\x61ta\x18\x04 \x01(\x0c\" \n\x08\x45ncoding\x12\x0b\n\x07UNKNOWN\x10\x00\x12\x07\n\x03XOR\x10\x01\"a\n\rChunkedSeries\x12\'\n\x06labels\x18\x01 \x03(\x0b\x32\x11.prometheus.LabelB\x04\xc8\xde\x1f\x00\x12\'\n\x06\x63hunks\x18\x02 \x03(\x0b\x32\x11.prometheus.ChunkB\x04\xc8\xde\x1f\x00\x42\x08Z\x06prompbb\x06proto3') | |
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, globals()) | |
_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'types_pb2', globals()) | |
if _descriptor._USE_C_DESCRIPTORS == False: | |
DESCRIPTOR._options = None | |
DESCRIPTOR._serialized_options = b'Z\006prompb' | |
_EXEMPLAR.fields_by_name['labels']._options = None | |
_EXEMPLAR.fields_by_name['labels']._serialized_options = b'\310\336\037\000' | |
_TIMESERIES.fields_by_name['labels']._options = None | |
_TIMESERIES.fields_by_name['labels']._serialized_options = b'\310\336\037\000' | |
_TIMESERIES.fields_by_name['samples']._options = None | |
_TIMESERIES.fields_by_name['samples']._serialized_options = b'\310\336\037\000' | |
_TIMESERIES.fields_by_name['exemplars']._options = None | |
_TIMESERIES.fields_by_name['exemplars']._serialized_options = b'\310\336\037\000' | |
_LABELS.fields_by_name['labels']._options = None | |
_LABELS.fields_by_name['labels']._serialized_options = b'\310\336\037\000' | |
_CHUNKEDSERIES.fields_by_name['labels']._options = None | |
_CHUNKEDSERIES.fields_by_name['labels']._serialized_options = b'\310\336\037\000' | |
_CHUNKEDSERIES.fields_by_name['chunks']._options = None | |
_CHUNKEDSERIES.fields_by_name['chunks']._serialized_options = b'\310\336\037\000' | |
_METRICMETADATA._serialized_start=50 | |
_METRICMETADATA._serialized_end=298 | |
_METRICMETADATA_METRICTYPE._serialized_start=177 | |
_METRICMETADATA_METRICTYPE._serialized_end=298 | |
_SAMPLE._serialized_start=300 | |
_SAMPLE._serialized_end=342 | |
_EXEMPLAR._serialized_start=344 | |
_EXEMPLAR._serialized_end=429 | |
_TIMESERIES._serialized_start=432 | |
_TIMESERIES._serialized_end=575 | |
_LABEL._serialized_start=577 | |
_LABEL._serialized_end=613 | |
_LABELS._serialized_start=615 | |
_LABELS._serialized_end=664 | |
_LABELMATCHER._serialized_start=667 | |
_LABELMATCHER._serialized_end=797 | |
_LABELMATCHER_TYPE._serialized_start=757 | |
_LABELMATCHER_TYPE._serialized_end=797 | |
_READHINTS._serialized_start=799 | |
_READHINTS._serialized_end=923 | |
_CHUNK._serialized_start=926 | |
_CHUNK._serialized_end=1065 | |
_CHUNK_ENCODING._serialized_start=1033 | |
_CHUNK_ENCODING._serialized_end=1065 | |
_CHUNKEDSERIES._serialized_start=1067 | |
_CHUNKEDSERIES._serialized_end=1164 | |
# @@protoc_insertion_point(module_scope) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment