Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adapt charm to support COS integration (#127)
* Add public interface * Remove promtail prefix from fcts * Fix license header * Merge install and config into start * Add interface to log metrics * Add grafana_dashboard lib * Move logging of event to metrics module * Introduce charm state * Update attrs doc * Implement COS integration * Remove grafana_dashboard * Change proxy server settings in test_charm * Ignore whitelist in pylintrc * Add missing newlines * Exclude woke.yaml from license check * Add final newline to .woke.yaml * Remove usage of requests.session in metrics * Pin pydantic more specifically * Fix type hint/doc string in ProxyConfig * Pin pydantic * Rename NotCompleteError * Remove hardcoding of promtail arch * Remove hardcoding of promtail arch * Rename -> download_info * promtail.start -> promtail.setup * handle non-happy case first in metrics * Remove group * Adapt promtail.yaml.j2 * Introduce constant in test_charm * Move issue_metrics to RunnerManagerConfig * Fix promtail.service.j2 * Capture time only when needed * Narrow the exception catch * Introduce constants in Promtail * Retry Promtail health check and raise error * Use Path.write_bytes in promtail * set unit status to Blocked for unhealthy promtail * Fix integration test Breaking change in latest Pygithub version * Lint * Catch RequestException * Drop Promtail and call Loki directly * Add unit test for charm state * Switch to cos_agent integration * Adapt integration test * Fix integration test * Simplify integration test * Fix issue_event * Add code to set up logrotate * Update grafana dashboard * Cleanup * Remove status in wait_for_idle * Small fixes * Dont keep charm inside state * Update src-docs * Dont use mutable default value * Compute event name on instantiation * Raise LogrotateSetupError * Reuse _create_runner func * Check that metrics log is empty * Fix docstring in Event * Lint * app_no_runner -> app
- Loading branch information