{"id":31704415,"url":"https://github.com/middleware-labs/mw-agent","last_synced_at":"2026-01-23T12:37:41.607Z","repository":{"id":179044876,"uuid":"661966727","full_name":"middleware-labs/mw-agent","owner":"middleware-labs","description":"Middleware Agent for Linux, Kubernetes, Docker, Windows \u0026 macOS","archived":false,"fork":false,"pushed_at":"2026-01-15T06:26:21.000Z","size":130425,"stargazers_count":75,"open_issues_count":4,"forks_count":7,"subscribers_count":5,"default_branch":"master","last_synced_at":"2026-01-15T12:41:09.587Z","etag":null,"topics":["golang","hacktoberfest","kubernetes"],"latest_commit_sha":null,"homepage":"https://middleware.io","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":"middleware-labs/agent-host-go","license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/middleware-labs.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":".github/CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2023-07-04T04:40:14.000Z","updated_at":"2026-01-02T13:36:10.000Z","dependencies_parsed_at":"2025-12-11T15:19:46.563Z","dependency_job_id":null,"html_url":"https://github.com/middleware-labs/mw-agent","commit_stats":null,"previous_names":["tejaskokje-mw/agent-host-go","middleware-labs/mw-agent"],"tags_count":183,"template":false,"template_full_name":null,"purl":"pkg:github/middleware-labs/mw-agent","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/middleware-labs%2Fmw-agent","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/middleware-labs%2Fmw-agent/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/middleware-labs%2Fmw-agent/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/middleware-labs%2Fmw-agent/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/middleware-labs","download_url":"https://codeload.github.com/middleware-labs/mw-agent/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/middleware-labs%2Fmw-agent/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28479409,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-16T11:59:17.896Z","status":"ssl_error","status_checked_at":"2026-01-16T11:55:55.838Z","response_time":107,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["golang","hacktoberfest","kubernetes"],"created_at":"2025-10-08T22:53:07.802Z","updated_at":"2026-01-16T15:43:12.546Z","avatar_url":"https://github.com/middleware-labs.png","language":"Go","funding_links":[],"categories":["Observability \u0026 Monitoring"],"sub_categories":[],"readme":"# mw-agent (Middleware Agent)\n\n[![made-with-Go](https://img.shields.io/badge/Made%20with-Go-1f425f.svg)](https://go.dev/)\n[![Go Report Card](https://goreportcard.com/badge/github.com/middleware-labs/mw-agent)](https://goreportcard.com/report/github.com/middleware-labs/mw-agent)\n[![License](https://img.shields.io/badge/License-Apache_2.0-blue.svg)](https://opensource.org/licenses/Apache-2.0)\n![OpenTelemetry](https://img.shields.io/static/v1?label=Powered%20By\u0026message=OpenTelemetry\u0026labelColor=5c5c5c\u0026color=1182c3\u0026logo=opentelemetry\u0026logoColor=white)\n\n[![Linux](https://img.shields.io/badge/Linux-FCC624?logo=linux\u0026logoColor=black)](#)\n[![Kubernetes](https://img.shields.io/badge/Kubernetes-326CE5?logo=kubernetes\u0026logoColor=fff)](#)\n[![Windows](https://custom-icon-badges.demolab.com/badge/Windows-0078D6?logo=windows11\u0026logoColor=white)](#)\n[![macOS](https://img.shields.io/badge/macOS-000000?logo=apple\u0026logoColor=F0F0F0)](#)\n[![Docker](https://img.shields.io/badge/Docker-2496ED?logo=docker\u0026logoColor=fff)](#)\n\n## Overview\n\nThe Middleware Agent (`mw-agent`) collects and processes various types of monitoring data. It supports multiple deployment environments and provides comprehensive monitoring capabilities.\n\n## Components\n\nThe agent consists of three main components:\n\n1. **Host Agent** (`cmd/host-agent/`)\n   - Designed for Linux, Windows \u0026 macOS environments\n   - Collects system-level metrics and logs\n   - Monitors Docker containers and applications\n\n2. **Kubernetes Agent** (`cmd/kube-agent/`)\n   - Specifically designed for Kubernetes environments\n   - Collects cluster-level metrics and logs\n   - Monitors pods, services, and other Kubernetes resources\n   - Deployed as a daemonset \u0026 deployment\n\n3. **Kubernetes Config Updater** (`cmd/kube-config-updater/`)\n   - Manages configuration updates for Kubernetes deployments and daemonset\n   - Ensures seamless configuration management in Kubernetes environments\n   - Supports automated configuration updates\n\n## Features\n\n- **Multi-environment Support**: Deploy on Linux, Windows, or macOS\n- **Comprehensive Monitoring**:\n  - Metrics collection\n  - Log aggregation\n  - Trace collection\n  - Synthetic monitoring\n- **Flexible Configuration**: Support for environment variables, CLI flags, and configuration files\n- **Docker Integration**: Native support for Docker container monitoring\n- **Custom Tagging**: Ability to add custom tags to hosts and resources\n- **Automated Configuration Management**: Seamless configuration updates in Kubernetes environments\n\n## Installation\n\nCheck out various installation option available [here](https://docs.middleware.io/agent-installation/overview).\n\n## Building from Source\n\nThe project includes a comprehensive Makefile for building different components:\n\n```bash\n# Build host agent for different platforms\nmake build-linux      # Linux\nmake build-windows    # Windows\nmake build-darwin-amd64  # macOS (Intel)\nmake build-darwin-arm64  # macOS (Apple Silicon)\n\n# Build Kubernetes components\nmake build-kube              # Kubernetes agent\nmake build-kube-config-updater  # Kubernetes config updater\n\n# Package components\nmake package-windows    # Windows installer\nmake package-linux-deb  # Debian package\nmake package-linux-rpm  # RPM package\nmake package-linux-docker  # Docker image\nmake package-kube-config-updater  # Kubernetes config updater image\n```\n\n## Configuration\n\nThe agent can be configured using:\n- Environment variables\n- Command-line flags\n- Configuration file (YAML)\n\nFor detailed configuration options, see [Configuration Guide](docs/configuration.md).\n\n### Basic Configuration Example\n\n```yaml\napi-key: YOUR_API_KEY\ntarget: https://app.middleware.io\nconfig-check-interval: 60s\ndocker-endpoint: unix:///var/run/docker.sock\nhost-tags: tag1=value1,tag2=value2\n```\n\n## Documentation\n\n- [Installation Guide](https://docs.middleware.io/agent-installation/overview)\n- [Configuration Guide](docs/configuration.md)\n\n## License\n\nThis project is licensed under the Apache License 2.0 - see the [LICENSE](LICENSE) file for details.\n\n## Contributing\n\nContributions are welcome! Please feel free to submit a Pull Request.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmiddleware-labs%2Fmw-agent","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmiddleware-labs%2Fmw-agent","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmiddleware-labs%2Fmw-agent/lists"}