Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Stream agent logs remotely #1774

Draft
wants to merge 30 commits into
base: main
Choose a base branch
from
Draft

Stream agent logs remotely #1774

wants to merge 30 commits into from

Commits on Nov 27, 2023

  1. add agent log streaming

    remove follow flag and nested stream
    
    forward log range req to delegate
    
    fix log client request
    
    store agent logs in mem map fs
    Janelle Law committed Nov 27, 2023
    Configuration menu
    Copy the full SHA
    47f8f33 View commit details
    Browse the repository at this point in the history
  2. add proto handler tests

    Janelle Law committed Nov 27, 2023
    Configuration menu
    Copy the full SHA
    c5ad6b4 View commit details
    Browse the repository at this point in the history
  3. follow logs with nested streaming

    Janelle Law committed Nov 27, 2023
    Configuration menu
    Copy the full SHA
    7913bef View commit details
    Browse the repository at this point in the history
  4. configure plugin loggers with agent id

    Janelle Law committed Nov 27, 2023
    Configuration menu
    Copy the full SHA
    cffdfaa View commit details
    Browse the repository at this point in the history
  5. ensure atomic writes

    Janelle Law committed Nov 27, 2023
    Configuration menu
    Copy the full SHA
    e116eca View commit details
    Browse the repository at this point in the history
  6. attempt to fix data race

    Janelle Law committed Nov 27, 2023
    Configuration menu
    Copy the full SHA
    be5de83 View commit details
    Browse the repository at this point in the history
  7. fix plugin logger forwarding

    Janelle Law committed Nov 27, 2023
    Configuration menu
    Copy the full SHA
    0f25210 View commit details
    Browse the repository at this point in the history
  8. forward plugin logs without hclog

    silence non-opni logs
    share plugin file lock with agent logger
    Janelle Law committed Nov 27, 2023
    Configuration menu
    Copy the full SHA
    5cf5963 View commit details
    Browse the repository at this point in the history
  9. fix lock synchronization

    Janelle Law committed Nov 27, 2023
    Configuration menu
    Copy the full SHA
    82bf9c0 View commit details
    Browse the repository at this point in the history
  10. add command flag completion

    Janelle Law committed Nov 27, 2023
    Configuration menu
    Copy the full SHA
    f868eab View commit details
    Browse the repository at this point in the history
  11. remove plugin loggers outside plugins

    Janelle Law committed Nov 27, 2023
    Configuration menu
    Copy the full SHA
    16a3628 View commit details
    Browse the repository at this point in the history
  12. fix plugin name colors

    Janelle Law committed Nov 27, 2023
    Configuration menu
    Copy the full SHA
    dbcf761 View commit details
    Browse the repository at this point in the history
  13. setup context plugin logger

    Janelle Law committed Nov 27, 2023
    Configuration menu
    Copy the full SHA
    f68af02 View commit details
    Browse the repository at this point in the history
  14. move aiops plugin lg to ctx

    Janelle Law committed Nov 27, 2023
    Configuration menu
    Copy the full SHA
    53bf78e View commit details
    Browse the repository at this point in the history
  15. move alerting plugin lg to ctx

    Janelle Law committed Nov 27, 2023
    Configuration menu
    Copy the full SHA
    213d660 View commit details
    Browse the repository at this point in the history
  16. move logging plugin lg to ctx

    Janelle Law committed Nov 27, 2023
    Configuration menu
    Copy the full SHA
    702efce View commit details
    Browse the repository at this point in the history
  17. move metrics plugin lg to ctx

    Janelle Law committed Nov 27, 2023
    Configuration menu
    Copy the full SHA
    e50be00 View commit details
    Browse the repository at this point in the history
  18. move slo plugin lg to ctx

    Janelle Law committed Nov 27, 2023
    Configuration menu
    Copy the full SHA
    61ab617 View commit details
    Browse the repository at this point in the history
  19. move topology plugin lg to ctx

    Janelle Law committed Nov 27, 2023
    Configuration menu
    Copy the full SHA
    bea0d56 View commit details
    Browse the repository at this point in the history
  20. move remaining plugin lg to ctx

    Janelle Law committed Nov 27, 2023
    Configuration menu
    Copy the full SHA
    9822a82 View commit details
    Browse the repository at this point in the history
  21. init plugin loggers with module name instead of agent id

    fix plugin log interleaving
    
    prevent duplicate file writing in subprocesses
    
    create plugin logger without storing writer in context
    Janelle Law committed Nov 27, 2023
    Configuration menu
    Copy the full SHA
    5743999 View commit details
    Browse the repository at this point in the history
  22. store mode in plugin context

    pass mode to real plugin loader
    Janelle Law committed Nov 27, 2023
    Configuration menu
    Copy the full SHA
    31256e2 View commit details
    Browse the repository at this point in the history
  23. separate test plugin logs by agent id

    pass agent id to real cluster plugin loggers
    Janelle Law committed Nov 27, 2023
    Configuration menu
    Copy the full SHA
    5ab672e View commit details
    Browse the repository at this point in the history
  24. group related functions together

    fixup error handling
    
    fix lint
    
    fixup after rebase
    Janelle Law committed Nov 27, 2023
    Configuration menu
    Copy the full SHA
    def5fd0 View commit details
    Browse the repository at this point in the history
  25. set otel tracing logger to error level

    Janelle Law committed Nov 27, 2023
    Configuration menu
    Copy the full SHA
    e2e7aa0 View commit details
    Browse the repository at this point in the history
  26. share lock among log file writers

    run linter
    
    remove unused file desciptors
    Janelle Law committed Nov 27, 2023
    Configuration menu
    Copy the full SHA
    a389903 View commit details
    Browse the repository at this point in the history

Commits on Nov 28, 2023

  1. attempt to fix web test data race

    Janelle Law committed Nov 28, 2023
    Configuration menu
    Copy the full SHA
    9e6a6a5 View commit details
    Browse the repository at this point in the history

Commits on Nov 29, 2023

  1. fixup ctx data races

    Janelle Law committed Nov 29, 2023
    Configuration menu
    Copy the full SHA
    84223d0 View commit details
    Browse the repository at this point in the history
  2. init global gateway plugin loggers without streaming

    Janelle Law committed Nov 29, 2023
    Configuration menu
    Copy the full SHA
    8a04996 View commit details
    Browse the repository at this point in the history
  3. close log streaming file on agent restart

    Janelle Law committed Nov 29, 2023
    Configuration menu
    Copy the full SHA
    a1b1fb5 View commit details
    Browse the repository at this point in the history