Skip to content

Commit

Permalink
Merge pull request #247 from carverauto/updates/k8s_demo
Browse files Browse the repository at this point in the history
updated renaming from mfreeman451 to carverauto, fixed sweeper test a…
  • Loading branch information
mfreeman451 authored Feb 25, 2025
2 parents 8381388 + 0abc8c5 commit d1a678b
Show file tree
Hide file tree
Showing 82 changed files with 288 additions and 245 deletions.
2 changes: 1 addition & 1 deletion .github/.testcoverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ profile: cover.out

# (optional; but recommended to set)
# When specified reported file paths will not contain local prefix in the output
local-prefix: "github.com/mfreeman451/serviceradar"
local-prefix: "github.com/carverauto/serviceradar"

# Holds coverage thresholds percentages, values should be in range [0-100]
threshold:
Expand Down
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -186,3 +186,6 @@ serviceradar-snmp-checker_*
tls/client.csr
tls/root.csr
tls/server.csr

# Ko build system for Go
.kodata
8 changes: 4 additions & 4 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ nfpms:
builds:
- agent
vendor: ServiceRadar
homepage: https://github.com/mfreeman451/serviceradar
homepage: https://github.com/carverauto/serviceradar
maintainer: Michael Freeman <[email protected]>
description: ServiceRadar Agent Component
license: MIT
Expand All @@ -86,7 +86,7 @@ nfpms:
builds:
- poller
vendor: ServiceRadar
homepage: https://github.com/mfreeman451/serviceradar
homepage: https://github.com/carverauto/serviceradar
maintainer: Michael Freeman <[email protected]>
description: ServiceRadar Poller Component
license: MIT
Expand All @@ -110,7 +110,7 @@ nfpms:
builds:
- serviceradar-cloud
vendor: ServiceRadar
homepage: https://github.com/mfreeman451/serviceradar
homepage: https://github.com/carverauto/serviceradar
maintainer: Michael Freeman <[email protected]>
description: ServiceRadar Cloud Component
license: MIT
Expand Down Expand Up @@ -139,7 +139,7 @@ nfpms:
builds:
- dusk-checker
vendor: ServiceRadar
homepage: https://github.com/mfreeman451/serviceradar
homepage: https://github.com/carverauto/serviceradar
maintainer: Michael Freeman <[email protected]>
description: ServiceRadar Dusk Checker Component
license: MIT
Expand Down
17 changes: 14 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -107,10 +107,15 @@ kodata-prep: build-web ## Prepare kodata directories

.PHONY: container-build
container-build: kodata-prep ## Build container images with ko
@echo "$(COLOR_BOLD)Building container images with ko (broken on arm64)$(COLOR_RESET)"
@echo "$(COLOR_BOLD)Building container images with ko$(COLOR_RESET)"
@cd cmd/agent && KO_DOCKER_REPO=$(KO_DOCKER_REPO)/serviceradar-agent GOFLAGS="-tags=containers" ko build --platform=$(PLATFORMS) --tags=$(VERSION) --bare .
@cd cmd/poller && KO_DOCKER_REPO=$(KO_DOCKER_REPO)/serviceradar-poller GOFLAGS="-tags=containers" ko build --platform=$(PLATFORMS) --tags=$(VERSION) --bare .
@cd cmd/cloud && KO_DOCKER_REPO=$(KO_DOCKER_REPO)/serviceradar-cloud GOFLAGS="-tags=containers" CGO_ENABLED=1 ko build --platform=$(PLATFORMS) --tags=$(VERSION) --bare --builder=docker .
@echo "$(COLOR_BOLD)Building cloud container with CGO using Docker (amd64 only)$(COLOR_RESET)"
@docker buildx build --platform=linux/amd64 -f Dockerfile.build \
-t $(KO_DOCKER_REPO)/serviceradar-cloud:$(VERSION) \
--build-arg VERSION=$(VERSION) \
--build-arg BUILD_TAGS=containers \
--push .
@cd cmd/checkers/dusk && KO_DOCKER_REPO=$(KO_DOCKER_REPO)/serviceradar-dusk-checker GOFLAGS="-tags=containers" ko build --platform=$(PLATFORMS) --tags=$(VERSION) --bare .
@cd cmd/checkers/snmp && KO_DOCKER_REPO=$(KO_DOCKER_REPO)/serviceradar-snmp-checker GOFLAGS="-tags=containers" ko build --platform=$(PLATFORMS) --tags=$(VERSION) --bare .

Expand All @@ -119,7 +124,13 @@ container-push: kodata-prep ## Build and push container images with ko
@echo "$(COLOR_BOLD)Building and pushing container images with ko$(COLOR_RESET)"
@cd cmd/agent && KO_DOCKER_REPO=$(KO_DOCKER_REPO)/serviceradar-agent GOFLAGS="-tags=containers" ko build --platform=$(PLATFORMS) --tags=$(VERSION),latest --bare .
@cd cmd/poller && KO_DOCKER_REPO=$(KO_DOCKER_REPO)/serviceradar-poller GOFLAGS="-tags=containers" ko build --platform=$(PLATFORMS) --tags=$(VERSION),latest --bare .
@cd cmd/cloud && KO_DOCKER_REPO=$(KO_DOCKER_REPO)/serviceradar-cloud GOFLAGS="-tags=containers" ko build --platform=$(PLATFORMS) --tags=$(VERSION),latest --bare .
@echo "$(COLOR_BOLD)Building and pushing cloud container with CGO using Docker (amd64 only)$(COLOR_RESET)"
@docker buildx build --platform=linux/amd64 -f Dockerfile.build \
-t $(KO_DOCKER_REPO)/serviceradar-cloud:$(VERSION) \
-t $(KO_DOCKER_REPO)/serviceradar-cloud:latest \
--build-arg VERSION=$(VERSION) \
--build-arg BUILD_TAGS=containers \
--push .
@cd cmd/checkers/dusk && KO_DOCKER_REPO=$(KO_DOCKER_REPO)/serviceradar-dusk-checker GOFLAGS="-tags=containers" ko build --platform=$(PLATFORMS) --tags=$(VERSION),latest --bare .
@cd cmd/checkers/snmp && KO_DOCKER_REPO=$(KO_DOCKER_REPO)/serviceradar-snmp-checker GOFLAGS="-tags=containers" ko build --platform=$(PLATFORMS) --tags=$(VERSION),latest --bare .

Expand Down
28 changes: 14 additions & 14 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
# ServiceRadar

[![releases](https://github.com/mfreeman451/serviceradar/actions/workflows/release.yml/badge.svg)](https://github.com/mfreeman451/serviceradar/actions/workflows/release.yml)
[![linter](https://github.com/mfreeman451/serviceradar/actions/workflows/golangci-lint.yml/badge.svg)](https://github.com/mfreeman451/serviceradar/actions/workflows/golangci-lint.yml)
[![tests](https://github.com/mfreeman451/serviceradar/actions/workflows/tests.yml/badge.svg)](https://github.com/mfreeman451/serviceradar/actions/workflows/tests.yml)
[![coverage](https://github.com/mfreeman451/serviceradar/actions/workflows/go-coverage.yml/badge.svg)](https://github.com/mfreeman451/serviceradar/actions/workflows/go-coverage.yml)
<a href="https://cla-assistant.io/mfreeman451/serviceradar"><img src="https://cla-assistant.io/readme/badge/mfreeman451/serviceradar" alt="CLA assistant" /></a>
[![releases](https://github.com/carverauto/serviceradar/actions/workflows/release.yml/badge.svg)](https://github.com/carverauto/serviceradar/actions/workflows/release.yml)
[![linter](https://github.com/carverauto/serviceradar/actions/workflows/golangci-lint.yml/badge.svg)](https://github.com/carverauto/serviceradar/actions/workflows/golangci-lint.yml)
[![tests](https://github.com/carverauto/serviceradar/actions/workflows/tests.yml/badge.svg)](https://github.com/carverauto/serviceradar/actions/workflows/tests.yml)
[![coverage](https://github.com/carverauto/serviceradar/actions/workflows/go-coverage.yml/badge.svg)](https://github.com/carverauto/serviceradar/actions/workflows/go-coverage.yml)
<a href="https://cla-assistant.io/carverauto/serviceradar"><img src="https://cla-assistant.io/readme/badge/carverauto/serviceradar" alt="CLA assistant" /></a>

ServiceRadar is a distributed network monitoring system designed for infrastructure and services in hard to reach places or constrained environments.
It provides real-time monitoring of internal services, with cloud-based alerting capabilities to ensure you stay informed even during network or power outages.
Expand Down Expand Up @@ -47,30 +47,30 @@ ServiceRadar can be installed via direct downloads from GitHub releases.
Install these components on your monitored host:
```bash
# Download and install core components
curl -LO https://github.com/mfreeman451/serviceradar/releases/download/1.0.19/serviceradar-agent_1.0.19.deb \
-O https://github.com/mfreeman451/serviceradar/releases/download/1.0.19/serviceradar-poller_1.0.19.deb
curl -LO https://github.com/carverauto/serviceradar/releases/download/1.0.19/serviceradar-agent_1.0.19.deb \
-O https://github.com/carverauto/serviceradar/releases/download/1.0.19/serviceradar-poller_1.0.19.deb

sudo dpkg -i serviceradar-agent_1.0.19.deb serviceradar-poller_1.0.19.deb
```

On a separate machine (recommended) or the same host:
```bash
# Download and install cloud service
curl -LO https://github.com/mfreeman451/serviceradar/releases/download/1.0.19/serviceradar-cloud_1.0.19.deb
curl -LO https://github.com/carverauto/serviceradar/releases/download/1.0.19/serviceradar-cloud_1.0.19.deb
sudo dpkg -i serviceradar-cloud_1.0.19.deb
```

#### Optional: SNMP Polling
Download and install the SNMP checker to collect and visualize metrics:
```bash
curl -LO https://github.com/mfreeman451/serviceradar/releases/download/1.0.19/serviceradar-snmp-checker_1.0.19.deb
curl -LO https://github.com/carverauto/serviceradar/releases/download/1.0.19/serviceradar-snmp-checker_1.0.19.deb
sudo dpkg -i serviceradar-snmp-checker_1.0.19.deb
```

#### Optional: Dusk Node Monitoring
If you're running a [Dusk](https://dusk.network/) node and want specialized monitoring:
```bash
curl -LO https://github.com/mfreeman451/serviceradar/releases/download/1.0.19/serviceradar-dusk-checker_1.0.19.deb
curl -LO https://github.com/carverauto/serviceradar/releases/download/1.0.19/serviceradar-dusk-checker_1.0.19.deb
sudo dpkg -i serviceradar-dusk-checker_1.0.19.deb
```

Expand All @@ -79,19 +79,19 @@ For larger deployments where components run on different hosts:

1. On monitored hosts:
```bash
curl -LO https://github.com/mfreeman451/serviceradar/releases/download/1.0.19/serviceradar-agent_1.0.19.deb
curl -LO https://github.com/carverauto/serviceradar/releases/download/1.0.19/serviceradar-agent_1.0.19.deb
sudo dpkg -i serviceradar-agent_1.0.19.deb
```

2. On monitoring host:
```bash
curl -LO https://github.com/mfreeman451/serviceradar/releases/download/1.0.19/serviceradar-poller_1.0.19.deb
curl -LO https://github.com/carverauto/serviceradar/releases/download/1.0.19/serviceradar-poller_1.0.19.deb
sudo dpkg -i serviceradar-poller_1.0.19.deb
```

3. On cloud host:
```bash
curl -LO https://github.com/mfreeman451/serviceradar/releases/download/1.0.19/serviceradar-cloud_1.0.19.deb
curl -LO https://github.com/carverauto/serviceradar/releases/download/1.0.19/serviceradar-cloud_1.0.19.deb
sudo dpkg -i serviceradar-cloud_1.0.19.deb
```

Expand Down Expand Up @@ -170,7 +170,7 @@ ServiceRadar components are distributed as Debian packages. Each component has i

1. Clone the repository:
```bash
git clone https://github.com/mfreeman451/serviceradar.git
git clone https://github.com/carverauto/serviceradar.git
cd serviceradar
```

Expand Down
10 changes: 5 additions & 5 deletions cmd/agent/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@ import (
"fmt"
"log"

"github.com/mfreeman451/serviceradar/pkg/agent"
"github.com/mfreeman451/serviceradar/pkg/config"
"github.com/mfreeman451/serviceradar/pkg/grpc"
"github.com/mfreeman451/serviceradar/pkg/lifecycle"
"github.com/mfreeman451/serviceradar/proto"
"github.com/carverauto/serviceradar/pkg/agent"
"github.com/carverauto/serviceradar/pkg/config"
"github.com/carverauto/serviceradar/pkg/grpc"
"github.com/carverauto/serviceradar/pkg/lifecycle"
"github.com/carverauto/serviceradar/proto"
)

func main() {
Expand Down
10 changes: 5 additions & 5 deletions cmd/checkers/dusk/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@ import (
"fmt"
"log"

"github.com/mfreeman451/serviceradar/pkg/checker/dusk"
"github.com/mfreeman451/serviceradar/pkg/config"
"github.com/mfreeman451/serviceradar/pkg/grpc"
"github.com/mfreeman451/serviceradar/pkg/lifecycle"
"github.com/mfreeman451/serviceradar/proto"
"github.com/carverauto/serviceradar/pkg/checker/dusk"
"github.com/carverauto/serviceradar/pkg/config"
"github.com/carverauto/serviceradar/pkg/grpc"
"github.com/carverauto/serviceradar/pkg/lifecycle"
"github.com/carverauto/serviceradar/proto"
)

var (
Expand Down
10 changes: 5 additions & 5 deletions cmd/checkers/snmp/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@ import (
"log"
"time"

"github.com/mfreeman451/serviceradar/pkg/checker/snmp"
"github.com/mfreeman451/serviceradar/pkg/config"
"github.com/mfreeman451/serviceradar/pkg/grpc"
"github.com/mfreeman451/serviceradar/pkg/lifecycle"
"github.com/mfreeman451/serviceradar/proto"
"github.com/carverauto/serviceradar/pkg/checker/snmp"
"github.com/carverauto/serviceradar/pkg/config"
"github.com/carverauto/serviceradar/pkg/grpc"
"github.com/carverauto/serviceradar/pkg/lifecycle"
"github.com/carverauto/serviceradar/proto"
)

const (
Expand Down
10 changes: 5 additions & 5 deletions cmd/cloud/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@ import (
"flag"
"log"

"github.com/mfreeman451/serviceradar/pkg/cloud"
"github.com/mfreeman451/serviceradar/pkg/cloud/api"
"github.com/mfreeman451/serviceradar/pkg/grpc"
"github.com/mfreeman451/serviceradar/pkg/lifecycle"
"github.com/mfreeman451/serviceradar/proto"
"github.com/carverauto/serviceradar/pkg/cloud"
"github.com/carverauto/serviceradar/pkg/cloud/api"
"github.com/carverauto/serviceradar/pkg/grpc"
"github.com/carverauto/serviceradar/pkg/lifecycle"
"github.com/carverauto/serviceradar/proto"
)

func main() {
Expand Down
10 changes: 5 additions & 5 deletions cmd/poller/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@ import (
"flag"
"log"

"github.com/mfreeman451/serviceradar/pkg/config"
"github.com/mfreeman451/serviceradar/pkg/grpc"
"github.com/mfreeman451/serviceradar/pkg/lifecycle"
"github.com/mfreeman451/serviceradar/pkg/poller"
"github.com/mfreeman451/serviceradar/proto"
"github.com/carverauto/serviceradar/pkg/config"
"github.com/carverauto/serviceradar/pkg/grpc"
"github.com/carverauto/serviceradar/pkg/lifecycle"
"github.com/carverauto/serviceradar/pkg/poller"
"github.com/carverauto/serviceradar/proto"
)

func main() {
Expand Down
16 changes: 8 additions & 8 deletions docs/docs/installation.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,15 @@ Install these components on your monitored host:

```bash
# Download and install core components
curl -LO https://github.com/mfreeman451/serviceradar/releases/download/1.0.19/serviceradar-agent_1.0.19.deb
curl -LO https://github.com/mfreeman451/serviceradar/releases/download/1.0.19/serviceradar-poller_1.0.19.deb
curl -LO https://github.com/carverauto/serviceradar/releases/download/1.0.19/serviceradar-agent_1.0.19.deb
curl -LO https://github.com/carverauto/serviceradar/releases/download/1.0.19/serviceradar-poller_1.0.19.deb
sudo dpkg -i serviceradar-agent_1.0.19.deb serviceradar-poller_1.0.19.deb
```

On a separate machine (recommended) or the same host for the cloud service:

```bash
curl -LO https://github.com/mfreeman451/serviceradar/releases/download/1.0.19/serviceradar-cloud_1.0.19.deb
curl -LO https://github.com/carverauto/serviceradar/releases/download/1.0.19/serviceradar-cloud_1.0.19.deb
sudo dpkg -i serviceradar-cloud_1.0.19.deb
```

Expand All @@ -32,7 +32,7 @@ sudo dpkg -i serviceradar-cloud_1.0.19.deb
For collecting and visualizing metrics:

```bash
curl -LO https://github.com/mfreeman451/serviceradar/releases/download/1.0.19/serviceradar-snmp-checker_1.0.19.deb
curl -LO https://github.com/carverauto/serviceradar/releases/download/1.0.19/serviceradar-snmp-checker_1.0.19.deb
sudo dpkg -i serviceradar-snmp-checker_1.0.19.deb
```

Expand All @@ -41,7 +41,7 @@ sudo dpkg -i serviceradar-snmp-checker_1.0.19.deb
For specialized monitoring of Dusk nodes:

```bash
curl -LO https://github.com/mfreeman451/serviceradar/releases/download/1.0.19/serviceradar-agent_1.0.19.deb
curl -LO https://github.com/carverauto/serviceradar/releases/download/1.0.19/serviceradar-agent_1.0.19.deb
sudo dpkg -i serviceradar-agent_1.0.19.deb
```

Expand All @@ -52,20 +52,20 @@ For larger deployments, install components on separate hosts:
1. On monitored hosts:

```bash
curl -LO https://github.com/mfreeman451/serviceradar/releases/download/1.0.19/serviceradar-agent_1.0.19.deb
curl -LO https://github.com/carverauto/serviceradar/releases/download/1.0.19/serviceradar-agent_1.0.19.deb
sudo dpkg -i serviceradar-agent_1.0.19.deb
```

2. On monitoring host:

```bash
curl -LO https://github.com/mfreeman451/serviceradar/releases/download/1.0.19/serviceradar-poller_1.0.19.deb
curl -LO https://github.com/carverauto/serviceradar/releases/download/1.0.19/serviceradar-poller_1.0.19.deb
sudo dpkg -i serviceradar-poller_1.0.19.deb
```

3. On cloud host:

```bash
curl -LO https://github.com/mfreeman451/serviceradar/releases/download/1.0.19/serviceradar-cloud_1.0.19.deb
curl -LO https://github.com/carverauto/serviceradar/releases/download/1.0.19/serviceradar-cloud_1.0.19.deb
sudo dpkg -i serviceradar-cloud_1.0.19.deb
```
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module github.com/mfreeman451/serviceradar
module github.com/carverauto/serviceradar

go 1.24

Expand Down
7 changes: 6 additions & 1 deletion k8s/demo/base/configmap.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,12 @@ data:
"timeout": "10s"
}
snmp-checker.json: |
external.json: |
{
"enabled": true
}
snmp.json: |
{
"node_address": "localhost:50051",
"listen_addr": ":50054",
Expand Down
Loading

0 comments on commit d1a678b

Please sign in to comment.