Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions internal/openshiftmetrics/openshiftmetrics.go
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,7 @@ func (o *OpenShiftMetrics) CollectMetrics(ctx context.Context, versionData Metri
payload := &ompb.OpenshiftMetricsPayload{
Version: versionData.PayloadVersion,
AgentVersion: versionData.AgentVersion,
ScanTimestamp: tspb.Now(),
}
logger := log.CtxLogger(ctx)
logger.Debugw("Base metric payload", "payload", payload)
Expand Down
5 changes: 4 additions & 1 deletion protos/openshiftmetrics/openshiftmetrics.proto
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,8 @@ message OpenshiftMetricsPayload {
ResourceListContainer nodes = 13;
// The cloud credential config of the Openshift cluster.
CloudCredentialConfig cloud_credential_config = 14;
// The UTC timestamp when the metric payload was generated.
google.protobuf.Timestamp scan_timestamp = 15;
}

// General container for K8 resources.
Expand Down Expand Up @@ -342,7 +344,8 @@ message Affinity {
}
}

// Reference: https://docs.redhat.com/en/documentation/openshift_container_platform/4.10/html/authentication_and_authorization/managing-cloud-provider-credentials
// Reference:
// https://docs.redhat.com/en/documentation/openshift_container_platform/4.20/html/authentication_and_authorization/managing-cloud-provider-credentials
message CloudCredentialConfig {
ResourceMetadata metadata = 1;
Spec spec = 2;
Expand Down