Commit Graph

10 Commits

Author SHA1 Message Date
justin 2836e1ae10 Refactor to prometheus_client, JSON logging, and codebase cleanup
- Replace file-based metrics and HTTP server with prometheus_client
  (Gauge + start_http_server), eliminating file I/O race conditions
- Fix ThreadProbe and thread restart lambda bugs
- Switch logging from RotatingFileHandler to JSON stdout for fluentd/Loki
- Add PYTHONUNBUFFERED=1 to Dockerfile for immediate container log output
- Upgrade base image from python:3.12.3-slim to python:3.13-slim
- Upgrade pyvmomi to 9.0.0.0; pin pydantic>=2.9.0 and typing_extensions>=4.12.2
  to use pre-built Python 3.13 wheels (removes Rust toolchain from build)
- Remove unused packages: boto3, botocore, s3transfer, jmespath, redis,
  docopt, pyflakes, posthog
- Remove unused imports (Posthog, CaseInsensitiveDict) and dead variables
  (callhomestats, local_site_info, lastStats)
- Fix service_profile() NameError (siteidentifier -> serviceProfileIdentifier)
- Remove bare print() in zvma.py __authhandler__, replace with self.log.info()
- Remove all commented-out PostHog blocks from zvma10/zvma.py
- Delete legacy zvma9_7/ module and app/logs/ directory
- Remove deprecated 'version: 3.3' from docker-compose.yml

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-02-20 19:05:45 -05:00
justin 21f32e5a31 updates for docker environments 2023-12-21 12:57:30 -05:00
justin 57a18385f3 Update docker-compose.yml 2023-12-21 11:23:53 -05:00
justin 94a3822353 multi-site readiness and VRA CPU and Memory
Added Site ID and Site Name to every metric. Moved all VRA metrics to a separate thread and started collecting VRA CPU and Memory usage from vCenter API.
2023-03-23 08:01:21 -04:00
justin a6e42d3a73 fixing logging 2023-03-20 20:13:26 -04:00
justin f73bc74a65 more commits 2023-01-05 00:42:20 +00:00
justin 50405203a5 ransomware api tracking
start tracking metrics for ransomware. No normalizing of the per 10 second metric yet, just testing that the right APIs are called and values are returned.
2022-11-21 15:31:18 -05:00
justin 445e3328ba fixed ssl verify bool 2022-05-06 20:20:47 -04:00
justin ad64df1c25 switched to docker env variables
Switched hard coded variables to ones that can be set in the docker-compose file.
2022-05-06 17:48:22 -04:00
hmdhszd 799ae0dfd3 added docker-compose.yml 2022-01-27 11:06:16 +03:30