Rename repo from forgejo-runner-resource-collector
This commit is contained in:
parent
d0dd209bc9
commit
d713c25fa5
16 changed files with 26 additions and 21 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
|
@ -1,6 +1,7 @@
|
|||
# Binaries (root level only)
|
||||
/resource-collector
|
||||
/collector
|
||||
/receiver
|
||||
|
||||
# Test coverage
|
||||
coverage.out
|
||||
|
|
|
|||
|
|
@ -2,6 +2,10 @@ version: 1
|
|||
|
||||
project_name: resource-collector
|
||||
|
||||
gitea_urls:
|
||||
api: "{{ .Env.GITHUB_SERVER_URL }}/api/v1"
|
||||
download: "{{ .Env.GITHUB_SERVER_URL }}"
|
||||
|
||||
before:
|
||||
hooks:
|
||||
- go mod tidy
|
||||
|
|
|
|||
|
|
@ -10,9 +10,9 @@ import (
|
|||
"syscall"
|
||||
"time"
|
||||
|
||||
"edp.buildth.ing/DevFW-CICD/forgejo-runner-resource-collector/internal/collector"
|
||||
"edp.buildth.ing/DevFW-CICD/forgejo-runner-resource-collector/internal/output"
|
||||
"edp.buildth.ing/DevFW-CICD/forgejo-runner-resource-collector/internal/summary"
|
||||
"edp.buildth.ing/DevFW-CICD/forgejo-runner-optimiser/internal/collector"
|
||||
"edp.buildth.ing/DevFW-CICD/forgejo-runner-optimiser/internal/output"
|
||||
"edp.buildth.ing/DevFW-CICD/forgejo-runner-optimiser/internal/summary"
|
||||
)
|
||||
|
||||
const (
|
||||
|
|
|
|||
|
|
@ -11,7 +11,7 @@ import (
|
|||
"syscall"
|
||||
"time"
|
||||
|
||||
"edp.buildth.ing/DevFW-CICD/forgejo-runner-resource-collector/internal/receiver"
|
||||
"edp.buildth.ing/DevFW-CICD/forgejo-runner-optimiser/internal/receiver"
|
||||
)
|
||||
|
||||
const (
|
||||
|
|
|
|||
2
go.mod
2
go.mod
|
|
@ -1,4 +1,4 @@
|
|||
module edp.buildth.ing/DevFW-CICD/forgejo-runner-resource-collector
|
||||
module edp.buildth.ing/DevFW-CICD/forgejo-runner-optimiser
|
||||
|
||||
go 1.25.6
|
||||
|
||||
|
|
|
|||
|
|
@ -6,9 +6,9 @@ import (
|
|||
"log/slog"
|
||||
"time"
|
||||
|
||||
"edp.buildth.ing/DevFW-CICD/forgejo-runner-resource-collector/internal/metrics"
|
||||
"edp.buildth.ing/DevFW-CICD/forgejo-runner-resource-collector/internal/output"
|
||||
"edp.buildth.ing/DevFW-CICD/forgejo-runner-resource-collector/internal/summary"
|
||||
"edp.buildth.ing/DevFW-CICD/forgejo-runner-optimiser/internal/metrics"
|
||||
"edp.buildth.ing/DevFW-CICD/forgejo-runner-optimiser/internal/output"
|
||||
"edp.buildth.ing/DevFW-CICD/forgejo-runner-optimiser/internal/summary"
|
||||
)
|
||||
|
||||
// Config holds the collector configuration
|
||||
|
|
|
|||
|
|
@ -10,8 +10,8 @@ import (
|
|||
"testing"
|
||||
"time"
|
||||
|
||||
"edp.buildth.ing/DevFW-CICD/forgejo-runner-resource-collector/internal/output"
|
||||
"edp.buildth.ing/DevFW-CICD/forgejo-runner-resource-collector/internal/summary"
|
||||
"edp.buildth.ing/DevFW-CICD/forgejo-runner-optimiser/internal/output"
|
||||
"edp.buildth.ing/DevFW-CICD/forgejo-runner-optimiser/internal/summary"
|
||||
)
|
||||
|
||||
func TestCollector_EmitsSummaryOnShutdown(t *testing.T) {
|
||||
|
|
|
|||
|
|
@ -14,8 +14,8 @@ import (
|
|||
"testing"
|
||||
"time"
|
||||
|
||||
"edp.buildth.ing/DevFW-CICD/forgejo-runner-resource-collector/internal/receiver"
|
||||
"edp.buildth.ing/DevFW-CICD/forgejo-runner-resource-collector/internal/summary"
|
||||
"edp.buildth.ing/DevFW-CICD/forgejo-runner-optimiser/internal/receiver"
|
||||
"edp.buildth.ing/DevFW-CICD/forgejo-runner-optimiser/internal/summary"
|
||||
)
|
||||
|
||||
const (
|
||||
|
|
|
|||
|
|
@ -4,8 +4,8 @@ import (
|
|||
"sort"
|
||||
"time"
|
||||
|
||||
"edp.buildth.ing/DevFW-CICD/forgejo-runner-resource-collector/internal/cgroup"
|
||||
"edp.buildth.ing/DevFW-CICD/forgejo-runner-resource-collector/internal/proc"
|
||||
"edp.buildth.ing/DevFW-CICD/forgejo-runner-optimiser/internal/cgroup"
|
||||
"edp.buildth.ing/DevFW-CICD/forgejo-runner-optimiser/internal/proc"
|
||||
)
|
||||
|
||||
// Aggregator collects and aggregates metrics from processes
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@ import (
|
|||
"log/slog"
|
||||
"os"
|
||||
|
||||
"edp.buildth.ing/DevFW-CICD/forgejo-runner-resource-collector/internal/metrics"
|
||||
"edp.buildth.ing/DevFW-CICD/forgejo-runner-optimiser/internal/metrics"
|
||||
)
|
||||
|
||||
// LogFormat specifies the log output format
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
package output
|
||||
|
||||
import "edp.buildth.ing/DevFW-CICD/forgejo-runner-resource-collector/internal/metrics"
|
||||
import "edp.buildth.ing/DevFW-CICD/forgejo-runner-optimiser/internal/metrics"
|
||||
|
||||
// Writer defines the interface for outputting metrics
|
||||
// This allows for different implementations (logging, HTTP push, etc.)
|
||||
|
|
|
|||
|
|
@ -10,7 +10,7 @@ import (
|
|||
"path/filepath"
|
||||
"testing"
|
||||
|
||||
"edp.buildth.ing/DevFW-CICD/forgejo-runner-resource-collector/internal/summary"
|
||||
"edp.buildth.ing/DevFW-CICD/forgejo-runner-optimiser/internal/summary"
|
||||
)
|
||||
|
||||
func TestHandler_ReceiveMetrics(t *testing.T) {
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@ import (
|
|||
"testing"
|
||||
"time"
|
||||
|
||||
"edp.buildth.ing/DevFW-CICD/forgejo-runner-resource-collector/internal/summary"
|
||||
"edp.buildth.ing/DevFW-CICD/forgejo-runner-optimiser/internal/summary"
|
||||
)
|
||||
|
||||
func TestNewStore(t *testing.T) {
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@
|
|||
// ABOUTME: Defines MetricsPayload combining execution metadata with run summary.
|
||||
package receiver
|
||||
|
||||
import "edp.buildth.ing/DevFW-CICD/forgejo-runner-resource-collector/internal/summary"
|
||||
import "edp.buildth.ing/DevFW-CICD/forgejo-runner-optimiser/internal/summary"
|
||||
|
||||
// ExecutionContext holds GitHub Actions style identifiers for a workflow run
|
||||
type ExecutionContext struct {
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@ import (
|
|||
"sort"
|
||||
"time"
|
||||
|
||||
"edp.buildth.ing/DevFW-CICD/forgejo-runner-resource-collector/internal/metrics"
|
||||
"edp.buildth.ing/DevFW-CICD/forgejo-runner-optimiser/internal/metrics"
|
||||
)
|
||||
|
||||
// containerAccumulator tracks metrics for a single container
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@ import (
|
|||
"testing"
|
||||
"time"
|
||||
|
||||
"edp.buildth.ing/DevFW-CICD/forgejo-runner-resource-collector/internal/metrics"
|
||||
"edp.buildth.ing/DevFW-CICD/forgejo-runner-optimiser/internal/metrics"
|
||||
)
|
||||
|
||||
func TestAccumulator_NoSamples(t *testing.T) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue