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

Merge main into dev.frontend-receiver #1362

Merged

Commits on Jan 11, 2022

  1. Operator: fix bug where /-/ready and /-/healthy always returned 404 (g…

    …rafana#1252)
    
    * operator: fix bug where /-/ready and /-/healthy always returned 404
    
    controller-runtime must have at least one ready/healthy check for the endpoints to exist
    
    * fix lint error, use healthz.Ping
    rfratto committed Jan 11, 2022
    Configuration menu
    Copy the full SHA
    41cf32c View commit details
    Browse the repository at this point in the history

Commits on Jan 12, 2022

  1. Make scraping-svc use the new metrics: key (grafana#1259)

    Signed-off-by: Paschalis Tsilias <paschalis.tsilias@grafana.com>
    tpaschalis committed Jan 12, 2022
    Configuration menu
    Copy the full SHA
    d151094 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    2dbe3a3 View commit details
    Browse the repository at this point in the history

Commits on Jan 13, 2022

  1. Configuration menu
    Copy the full SHA
    bf17aee View commit details
    Browse the repository at this point in the history
  2. Use RELEASE_TAG to choose between :main and :latest docker tags (g…

    …rafana#1264)
    
    * Use RELEASE_TAG to choose between `:main` and `:latest` docker tags
    
    Signed-off-by: Paschalis Tsilias <paschalis.tsilias@grafana.com>
    
    * Use :main tag for images in smoke test
    
    Signed-off-by: Paschalis Tsilias <paschalis.tsilias@grafana.com>
    
    * Set IMAGE_BRANCH_TAG env var in drone and actions pipelines
    
    Signed-off-by: Paschalis Tsilias <paschalis.tsilias@grafana.com>
    
    * Remove quotes from Makefile variable
    
    Signed-off-by: Paschalis Tsilias <paschalis.tsilias@grafana.com>
    
    * Remove force_release action
    
    Signed-off-by: Paschalis Tsilias <paschalis.tsilias@grafana.com>
    tpaschalis committed Jan 13, 2022
    Configuration menu
    Copy the full SHA
    d2031d3 View commit details
    Browse the repository at this point in the history
  3. prepare for v0.22.0 release (grafana#1266)

    * prepare for v0.22.0 release
    
    * remove E2E pipeline
    rlankfo committed Jan 13, 2022
    Configuration menu
    Copy the full SHA
    6240e64 View commit details
    Browse the repository at this point in the history

Commits on Jan 14, 2022

  1. Add basic testing framework for operator (grafana#1268)

    * remove dedicated go.mod for e2e/
    
    * move e2e/k8s to pkg/util/k8s
    
    * Migrate operator tests to pkg/util/k8s
    
    * remove dedicated e2e tests
    
    * allow skipping TestCluster in pkg/util/k8s
    
    * remove e2e/
    
    * fix bad merge
    
    * fix order of make env args for windows
    
    * actually declare referenced docker volume
    
    * introduce pkg/util/subset for asserting subset of objects
    
    * refactor operator so it's testable
    
    * define basic integration test for operator
    
    * fix lint errors
    
    * fix invalid address in operator test config
    rfratto committed Jan 14, 2022
    Configuration menu
    Copy the full SHA
    bb4174c View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    e1df94f View commit details
    Browse the repository at this point in the history
  3. Set scrape User-Agent header during init (grafana#1274)

    Signed-off-by: Paschalis Tsilias <paschalis.tsilias@grafana.com>
    tpaschalis committed Jan 14, 2022
    Configuration menu
    Copy the full SHA
    e319f18 View commit details
    Browse the repository at this point in the history

Commits on Jan 18, 2022

  1. Upgrade to Go 1.17 (grafana#1278)

    * Upgrade to 1.17.6 in go.mod and Dockerfiles
    
    * Update CHANGELOG.md to mention the update
    
    * Update Go version in drone/actions pipelines
    
    * Update go.mod, go.sum files via
    
    * Re-sign drone.yml
    
    * Remove leading newline causing drone build to fail
    
    * Bump golangci-lint image to a version using Go 1.17
    
    * Re-attempt to solve linter issue with new golangci-lint image
    
    * Remove suffix of exclude rules
    
    * Clean previous Go version before unpacking Go 1.17
    
    * Also clean up previous Go versions in other steps
    tpaschalis committed Jan 18, 2022
    Configuration menu
    Copy the full SHA
    8bebf94 View commit details
    Browse the repository at this point in the history
  2. fix typo (grafana#1284)

    alexrudd2 committed Jan 18, 2022
    Configuration menu
    Copy the full SHA
    d74f94a View commit details
    Browse the repository at this point in the history

Commits on Jan 19, 2022

  1. Use custom Go version in agent-operator Dockerfile (grafana#1286)

    Signed-off-by: Paschalis Tsilias <paschalis.tsilias@grafana.com>
    tpaschalis committed Jan 19, 2022
    Configuration menu
    Copy the full SHA
    ec42e23 View commit details
    Browse the repository at this point in the history
  2. pkg/operator: refactor resource hierarchy discovery (grafana#1271)

    * pkg/operator: refactor resource hierarchy discovery
    
    This commit moves common logic related to discovering the resource
    hierarchy to pkg/operator/hierarchy. This new package requires less
    boilerplate, which the reconciler is updated to take advantage of.
    
    * remove unused code
    
    * test construction of resource hierarchy
    
    * add missing build constraints
    
    * small extra cleanup to use pointer package
    
    * review feedback
    rfratto committed Jan 19, 2022
    Configuration menu
    Copy the full SHA
    8fc3423 View commit details
    Browse the repository at this point in the history
  3. update agent-build-image for go 1.17 (grafana#1287)

    (also use a consistent base image tag instead of latest)
    rfratto committed Jan 19, 2022
    Configuration menu
    Copy the full SHA
    b890ef9 View commit details
    Browse the repository at this point in the history

Commits on Jan 21, 2022

  1. Skip non-ready entries when listing instances (grafana#1289)

    * Skip non-ready instances in LoadInstances()
    
    Signed-off-by: Paschalis Tsilias <paschalis.tsilias@grafana.com>
    
    * Add changelog entry
    
    Co-authored-by: Robert Fratto <robertfratto@gmail.com>
    tpaschalis and rfratto committed Jan 21, 2022
    Configuration menu
    Copy the full SHA
    9beca9e View commit details
    Browse the repository at this point in the history

Commits on Jan 24, 2022

  1. Fix panic in prom_sd_processor when address is empty (grafana#1279)

    * Fix panic in prom_sd_processor when address is empty
    
    * Fix panic in prom_sd_processor when address is empty
    
    * Fix docs
    
    * Add test case
    
    * Lint
    
    * Move to unreleased
    mapno committed Jan 24, 2022
    Configuration menu
    Copy the full SHA
    0759ad3 View commit details
    Browse the repository at this point in the history
  2. Operator: generate proxy_url for remote_write (grafana#1298)

    * operator: generate proxy_url for remote_write
    
    * fix weird indentation in test
    rfratto committed Jan 24, 2022
    Configuration menu
    Copy the full SHA
    59ffd8b View commit details
    Browse the repository at this point in the history

Commits on Jan 25, 2022

  1. Use log format in traces subsystem (grafana#1272)

    * Use log format in traces subsystem
    
    * Changelog
    
    * Undo unwanted change
    
    * Fix changelog entry
    mapno committed Jan 25, 2022
    Configuration menu
    Copy the full SHA
    b2c1fda View commit details
    Browse the repository at this point in the history
  2. integrations-next: Add extra_labels to inject extra labels for an int…

    …egration (grafana#1312)
    
    * integrations-next: Add extra_labels to inject extra labels for an integration.
    
    * separate tests
    rfratto committed Jan 25, 2022
    Configuration menu
    Copy the full SHA
    459b277 View commit details
    Browse the repository at this point in the history

Commits on Jan 26, 2022

  1. Fix anchor link on operator docs (grafana#1302)

    Signed-off-by: Paschalis Tsilias <paschalis.tsilias@grafana.com>
    tpaschalis committed Jan 26, 2022
    Configuration menu
    Copy the full SHA
    7b1ac6f View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    25b8896 View commit details
    Browse the repository at this point in the history

Commits on Jan 27, 2022

  1. Configuration menu
    Copy the full SHA
    78b3a5a View commit details
    Browse the repository at this point in the history

Commits on Jan 28, 2022

  1. Allow remote_write URL credentials (grafana#1329)

    * Bypass Prometheus password redaction
    
    Signed-off-by: Paschalis Tsilias <paschalis.tsilias@grafana.com>
    
    * Add inline secret in existing test
    
    Signed-off-by: Paschalis Tsilias <paschalis.tsilias@grafana.com>
    
    * Add changelog entry
    
    * Add to scrubbed testcase as well
    
    Signed-off-by: Paschalis Tsilias <paschalis.tsilias@grafana.com>
    tpaschalis committed Jan 28, 2022
    Configuration menu
    Copy the full SHA
    c7c309d View commit details
    Browse the repository at this point in the history
  2. Stop appending duplicate exemplars (grafana#1316)

    * Add memExemplar in stripeSeries as first iteration
    
    Signed-off-by: Paschalis Tsilias <paschalis.tsilias@grafana.com>
    
    * Add test for skipped duplicate exemplars; Simplify conditional
    
    Signed-off-by: Paschalis Tsilias <paschalis.tsilias@grafana.com>
    
    * Add changelog entry; discard test errors
    
    * Move changelog entry
    
    Signed-off-by: Paschalis Tsilias <paschalis.tsilias@grafana.com>
    
    * Add Benchmark for AppendExemplar
    
    Signed-off-by: Paschalis Tsilias <paschalis.tsilias@grafana.com>
    
    * Discard error on added benchmark
    
    Signed-off-by: Paschalis Tsilias <paschalis.tsilias@grafana.com>
    
    * Use original exemplar struct instead of custom memExemplar
    
    Signed-off-by: Paschalis Tsilias <paschalis.tsilias@grafana.com>
    
    * Surround benchmark loop with start/stop timers and close test storage
    
    Signed-off-by: Paschalis Tsilias <paschalis.tsilias@grafana.com>
    
    * Add comment about prepopulating exemplars on WAL startup
    
    Signed-off-by: Paschalis Tsilias <paschalis.tsilias@grafana.com>
    
    * Wire in the totalAppendedExemplars metric
    
    Signed-off-by: Paschalis Tsilias <paschalis.tsilias@grafana.com>
    
    * Make comment more discoverable
    
    Signed-off-by: Paschalis Tsilias <paschalis.tsilias@grafana.com>
    
    * Make sure we're recording exemplars for non-nil series ref only
    
    Signed-off-by: Paschalis Tsilias <paschalis.tsilias@grafana.com>
    tpaschalis committed Jan 28, 2022
    Configuration menu
    Copy the full SHA
    8cc3f43 View commit details
    Browse the repository at this point in the history
  3. integrations-next: wait for integrations to exit after stopping them (g…

    …rafana#1318)
    
    * integrations-next: wait for integrations to exit after stopping them
    
    * fix lint errors
    
    * minor refactor
    
    * integrations-next: stop holding config mutex for entire reload
    
    * make controller.run authoritative over running integrations
    
    * fix log line
    
    * move running integrations into a dedicated worker pool
    rfratto committed Jan 28, 2022
    Configuration menu
    Copy the full SHA
    9d61761 View commit details
    Browse the repository at this point in the history

Commits on Feb 1, 2022

  1. operator/hierarchy: stop using field selector when listing Secrets & …

    …ConfigMaps (grafana#1340)
    
    The initial implementation of hierarchy.KeySelector injected a
    FieldSelector when listing Secrets and ConfigMaps to immediately return
    the single object being queried for.
    
    This causes a problem with the client generated by the
    controller-runtime framework, where the client is wrapped in a cache and
    field indexer (where only the namespace is indexed by default).
    
    This commit avoids using the field selector and the index lookup. The
    resulting behavior aligns more closely with discovering other resources
    in the hierarchy (i.e., ServiceMonitors), where the List call is also
    insufficient and needs post-processing via Matches to find the final
    list of resources.
    
    Given the controller-runtime client uses an informer for reads, all
    relevant Secrets and ConfigMaps are already in-memory anyway, and using
    the index for a faster List is a bit of an over-optimization at the
    moment.
    rfratto committed Feb 1, 2022
    Configuration menu
    Copy the full SHA
    f2c5526 View commit details
    Browse the repository at this point in the history

Commits on Feb 2, 2022

  1. Add dependabot to update go modules and github actions. (grafana#1217)

    Signed-off-by: Tom Wilkie <tom.wilkie@gmail.com>
    tomwilkie committed Feb 2, 2022
    Configuration menu
    Copy the full SHA
    2662a17 View commit details
    Browse the repository at this point in the history
  2. smoke framework refactor (grafana#1326)

    * Agent smoke test (grafana#1291)
    
    * convert smoke script to go program
    
    * update build for agent-smoke
    
    * fix pr comments
    
    * use existing log helper package
    
    * refactor context cancel
    
    * update exit codes
    
    * use ticker
    
    * prefer oklog/run instead of errgroup
    
    * use nop logger
    
    * refactor task interface
    
    * remove functional options
    
    * log.With for task loggers
    
    * move smoke to tools
    
    * build smoke image, push to internal registry
    
    * move crow to tools
    
    * add gcr_admin secret
    
    * fix link to crow
    
    * add smoke libsonnet and use in local k3d smoke test
    
    * add deletePodBySelectorTask
    
    * scale smoke-test replica down after local test
    
    * refactor smoke Options to Config
    
    * update duration usage message
    
    * add some basic unit tests
    
    * newlines
    
    * pass mutation frequency and chaos frequency from smoke script
    
    * pull crow image from gcr
    
    * update smoke script
    
    * move monitoring to smoke libsonnet
    
    * move additional smoke resources needed in deployment tools
    
    * reference libsonnet files from grafana-agent dep
    
    * make drone
    
    * fix images in smoke script
    
    * get rid of extVars
    
    * update k3d example environment to reference etcd from new location
    
    * update smoke docker builds to use go1.17
    
    * use pointer.Int64
    
    * refactor smoke jsonnet (grafana#1296)
    
    * add policy rule for list and delete pods (grafana#1319)
    
    * refactor smoke.new function to take config object (grafana#1327)
    
    * Apply suggestions from code review
    
    * Update production/tanka/grafana-agent/smoke/crow/main.libsonnet
    
    * Update production/tanka/grafana-agent/smoke/main.libsonnet
    
    * Update example/k3d/scripts/smoke-test.bash
    
    Co-authored-by: Robert Lankford <robert.lankford@grafana.com>
    
    * readme update (grafana#1338)
    
    Co-authored-by: Robert Fratto <robert.fratto@grafana.com>
    rlankfo and rfratto committed Feb 2, 2022
    Configuration menu
    Copy the full SHA
    568e509 View commit details
    Browse the repository at this point in the history
  3. Correct link to the configuration (grafana#1036)

    Co-authored-by: Robert Fratto <robert.fratto@grafana.com>
    josephwoodward and rfratto committed Feb 2, 2022
    Configuration menu
    Copy the full SHA
    abec116 View commit details
    Browse the repository at this point in the history
  4. Add stale check Github Action (grafana#1345)

    * Add a stale check GH action to run every 24 hours
    
    * remove old stale.yml file
    
    * add permissions to action
    
    * update the stale message to clarify when the stale label will get
    removed
    
    * Update .github/workflows/stale.yml
    rfratto committed Feb 2, 2022
    Configuration menu
    Copy the full SHA
    00bb7fa View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    fa93d3b View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    df6a62a View commit details
    Browse the repository at this point in the history
  7. Add K8s Events integration (grafana#1330)

    * Add K8s eventhandler integration (grafana#1310)
    * Add docs and sample manifests to eventhandler integration (grafana#1328)
    * Wait for cache to flush before returning
    * Clarify eventhandler docs (grafana#1334)
    * Clarify docs
    * Update CHANGELOG.md
    * Review changes (grafana#1349)
    hjet committed Feb 2, 2022
    Configuration menu
    Copy the full SHA
    ebacc56 View commit details
    Browse the repository at this point in the history

Commits on Feb 3, 2022

  1. Configuration menu
    Copy the full SHA
    e14ac86 View commit details
    Browse the repository at this point in the history

Commits on Feb 4, 2022

  1. update withVolumesMixin for agent jsonnet (grafana#1358)

    Signed-off-by: Robbie Lankford <robert.lankford@grafana.com>
    rlankfo committed Feb 4, 2022
    Configuration menu
    Copy the full SHA
    a8bfd47 View commit details
    Browse the repository at this point in the history
  2. Configure cluster label using logs client external_labels param (graf…

    …ana#1357)
    
    * Configure cluster label using logs client external_labels param
    * Update CHANGELOG.md
    hjet committed Feb 4, 2022
    Configuration menu
    Copy the full SHA
    3c8e6f5 View commit details
    Browse the repository at this point in the history
  3. add password file and basic auth round tripper in crow (grafana#1361)

    * add password file and basic auth round tripper in crow
    
    * add ca-certificates in crow image
    
    * add orgID flag
    
    * update help text
    rlankfo committed Feb 4, 2022
    Configuration menu
    Copy the full SHA
    15a8aa5 View commit details
    Browse the repository at this point in the history

Commits on Feb 5, 2022

  1. Configuration menu
    Copy the full SHA
    4d56bf2 View commit details
    Browse the repository at this point in the history
  2. fix compilation errors

    rfratto committed Feb 5, 2022
    Configuration menu
    Copy the full SHA
    e2b4a6f View commit details
    Browse the repository at this point in the history
  3. go mod tidy

    rfratto committed Feb 5, 2022
    Configuration menu
    Copy the full SHA
    b59dab8 View commit details
    Browse the repository at this point in the history