Skip to content
This repository has been archived by the owner on Oct 3, 2023. It is now read-only.

Commit

Permalink
Add resource to protocol
Browse files Browse the repository at this point in the history
Signed-off-by: Fabian Reinartz <freinartz@google.com>
  • Loading branch information
Fabian Reinartz committed Oct 12, 2018
1 parent 5f7f863 commit aed419b
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
13 changes: 13 additions & 0 deletions src/opencensus/proto/agent/common/v1/common.proto
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,9 @@ message Node {
// Additional attributes.
map<string, string> attributes = 4;

// Default resource for all signals sent by the node.
Resource resource = 5;

// TODO(songya): Add more identifiers in the future as needed, like cloud
// identifiers.
}
Expand Down Expand Up @@ -96,3 +99,13 @@ message ServiceInfo {

// TODO(songya): add more fields as needed.
}

// Resource information.
message Resource {

// Type identifier for the resource.
string type = 1;

// Set of labels that describe the resource.
map<string,string> = 2;
}
4 changes: 4 additions & 0 deletions src/opencensus/proto/agent/metrics/v1/metrics_service.proto
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,10 @@ message ExportMetricsServiceRequest {

// A list of metrics that belong to the last received Node.
repeated opencensus.proto.metrics.v1.Metric metrics = 2;

// The resource for the metrics in this message. If unset, the resource of the
// most recent node applies.
opencensus.proto.agent.common.v1.Resource resource = 3;
}

message ExportMetricsServiceResponse {
Expand Down

0 comments on commit aed419b

Please sign in to comment.