Skip to content

feat: monitoring agent for Docker images (F15), Elasticsearch collector, vuln fixes - #36

Merged
yakari007 merged 5 commits into
masterfrom
feat/agent
Oct 26, 2026
Merged

yakari007 merged 5 commits into
masterfrom
feat/agent

Conversation

@yakari007

Copy link
Copy Markdown
Contributor

Summary

  • New cmd/agent: one static binary added to any Docker image (COPY --from=registry.plusclouds.com/monitoring-agent /agent ..., ENTRYPOINT ["agent","run","--", ...]) or run as a sidecar. Collectors: host/container, Docker engine, tcp/http/process, redis, postgres, nginx, php-fpm, elasticsearch, node.js. Guide: docs/agent.md, decision: ADR-0016.
  • Server: host.agent ingester, unique agent_id (migration 00026, deploy the server before agents post), usage weight 2 (TBD with billing), Grafana dashboard.
  • CI builds and pushes monitoring-agent on v* tags.
  • Includes the pending elasticsearch.cluster collector work.
  • Vulnerabilities: golang.org/x/net v0.60.0, go 1.27.3. govulncheck reports 0 affected; one x/crypto advisory has no fix and is not called.

Test plan

  • go test -race ./... (incl. TestHostAgent), golangci-lint, go mod tidy, licenses, fuzz
  • agent check / agent run against real redis, postgres, nginx and Docker containers
  • After merge: tag v0.15.0, confirm CI pushes monitoring and monitoring-agent, deploy server (migration 00026)

🤖 Generated with Claude Code

…or, vuln fixes

Agent (cmd/agent): one static binary to COPY into any image
(agent run -- <cmd>) or run as a sidecar. Collectors: host (cgroup-aware),
docker, tcp/http/process, redis, postgres, nginx, php-fpm, elasticsearch,
node.js. Server side: host.agent ingester, unique agent_id (migration 00026),
usage weight, Grafana dashboard, Dockerfile.agent and CI image
monitoring-agent. See docs/agent.md and ADR-0016.

Also: elasticsearch.cluster collector with docs and dashboard, and
golang.org/x/net v0.60.0 + go 1.27.3 to clear govulncheck findings.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@gitguardian

gitguardian Bot commented Oct 25, 2026

Copy link
Copy Markdown

⚠️ GitGuardian has uncovered 1 secret following the scan of your pull request.

Please consider investigating the findings and remediating the incidents. Failure to do so may lead to compromising the associated services or software components.

🔎 Detected hardcoded secret in your pull request
GitGuardian id GitGuardian status Secret Commit Filename
38973390 Triggered Generic Password e86871a internal/agent/collectors/services/services_test.go View secret
🛠 Guidelines to remediate hardcoded secrets
  1. Understand the implications of revoking this secret by investigating where it is used in your code.
  2. Replace and store your secret safely. Learn here the best practices.
  3. Revoke and rotate this secret.
  4. If possible, rewrite git history. Rewriting git history is not a trivial act. You might completely break other contributing developers' workflow and you risk accidentally deleting legitimate data.

To avoid such incidents in the future consider


🦉 GitGuardian detects secrets in your source code to help developers and security teams secure the modern development process. You are seeing this because you or someone else with access to this repository has authorized GitGuardian to scan your pull request.

yakari007 and others added 4 commits October 25, 2026 15:33
A global index let one tenant block, or probe for, another tenant's agent IDs.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@yakari007
yakari007 merged commit eab5e4c into master Oct 26, 2026
@yakari007
yakari007 deleted the feat/agent branch October 26, 2026 08:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant