feat: Implement aggregator for agent metrics (#7259)

This commit is contained in:
Marcin Tojek
2023-04-27 12:34:00 +02:00
committed by GitHub
parent b6666cf1cf
commit bb0a38b161
12 changed files with 714 additions and 74 deletions
+4
View File
@@ -38,6 +38,8 @@ import (
"cdr.dev/slog"
"github.com/coder/coder/buildinfo"
"github.com/coder/coder/codersdk/agentsdk"
// Used for swagger docs.
_ "github.com/coder/coder/coderd/apidoc"
"github.com/coder/coder/coderd/audit"
@@ -146,6 +148,8 @@ type Options struct {
SSHConfig codersdk.SSHConfigResponse
HTTPClient *http.Client
UpdateAgentMetrics func(ctx context.Context, username, workspaceName, agentName string, metrics []agentsdk.AgentMetric)
}
// @title Coder API