github.com/kaydxh/golang@v0.0.131/pkg/monitor/opentelemetry/opentelemetry.proto (about)

     1  syntax = "proto3";
     2  
     3  package go.pkg.monitor.opentelemetry;
     4  
     5  import "google/protobuf/duration.proto";
     6  
     7  option go_package = "github.com/kaydxh/golang/pkg/monitor/opentelemetry;opentelemetry";
     8  
     9  message Monitor {
    10    OpenTelemetry open_telemetry = 3;
    11  
    12    message OpenTelemetry {
    13      bool enabled = 1;
    14  
    15      google.protobuf.Duration metric_collect_duration = 2;
    16      OtelTraceExporterType otel_trace_exporter_type = 3;
    17      OtelMetricExporterType otel_metric_exporter_type = 4;
    18      OtelLogExporterType otel_log_exporter_type = 5;
    19  
    20      OtelMetricExporter otel_metric_exporter = 6;
    21      OtelTraceExporter otel_trace_exporter = 7;
    22  
    23      Resource resource = 10;
    24      message Resource {
    25        string service_name = 1;  // default use process name
    26        map<string, string> attrs = 2;
    27      }
    28  
    29      message OtelMetricExporter {
    30        Prometheus prometheus = 1;
    31        Stdout stdout = 2;
    32        message Prometheus {
    33          string url = 1;
    34        }
    35        message Stdout {
    36          bool pretty_print = 1;
    37        }
    38      }
    39  
    40      message OtelTraceExporter {
    41        Jaeger jaeger = 1;
    42        Stdout stdout = 2;
    43        message Jaeger {
    44          string url = 1;
    45        }
    46        message Stdout {
    47          bool pretty_print = 1;
    48        }
    49      }
    50  
    51      enum OtelTraceExporterType {
    52        trace_none = 0;
    53        trace_stdout = 1;
    54        trace_otlp = 2;
    55        trace_jaeger = 3;
    56        trace_zipkin = 4;
    57      }
    58  
    59      enum OtelMetricExporterType {
    60        metric_none = 0;
    61        metric_stdout = 1;
    62        metric_otlp = 2;
    63        metric_prometheus = 3;
    64      }
    65  
    66      enum OtelLogExporterType {
    67        log_none = 0;
    68        log_otlp = 1;
    69      }
    70    }
    71  }