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

tmpnet: Enable collection of logs and metrics #2820

Merged
merged 14 commits into from
Mar 18, 2024
Merged

Commits on Mar 18, 2024

  1. tmpnet: Write config enabling metrics collection by prometheus

    Temporary networks used for testing previously lacked an easy way to
    enable metrics collection. This PR ensures that prometheus has what it
    needs to scrape the metrics endpoints of a temporary network and
    enables scraping of CI jobs using temporary networks.
    
    - Write prometheus configuration to ~/.tmpnet/prometheus/file_sd_configs for
      each node on startup and remove it on shutdown. This enables scraping
      of all nodes in a network no matter when they are started.
    
      Ref: https://prometheus.io/docs/guides/file-sd/
    
    - Add script to scrape temporary networks with agent-mode
      prometheus. Works locally and in CI
    marun committed Mar 18, 2024
    Configuration menu
    Copy the full SHA
    a0f75c3 View commit details
    Browse the repository at this point in the history
  2. fixup: Add links to metrics

    marun committed Mar 18, 2024
    Configuration menu
    Copy the full SHA
    2496a58 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    50b7e23 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    c99de8a View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    0783d59 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    90191fc View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    e88b83d View commit details
    Browse the repository at this point in the history
  8. fixup: Fix shellcheck error

    marun committed Mar 18, 2024
    Configuration menu
    Copy the full SHA
    d78c0cc View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    6d73484 View commit details
    Browse the repository at this point in the history
  10. Configuration menu
    Copy the full SHA
    bbeb4b3 View commit details
    Browse the repository at this point in the history
  11. fixup: More promtail cleanup

    marun committed Mar 18, 2024
    Configuration menu
    Copy the full SHA
    9380137 View commit details
    Browse the repository at this point in the history
  12. Configuration menu
    Copy the full SHA
    fbd8386 View commit details
    Browse the repository at this point in the history
  13. Configuration menu
    Copy the full SHA
    4d72be9 View commit details
    Browse the repository at this point in the history
  14. Configuration menu
    Copy the full SHA
    762032e View commit details
    Browse the repository at this point in the history