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

feat: write out parsed configs #707

Merged
merged 4 commits into from
Jun 9, 2023
Merged

feat: write out parsed configs #707

merged 4 commits into from
Jun 9, 2023

Conversation

kentquirk
Copy link
Contributor

@kentquirk kentquirk commented Jun 8, 2023

Which problem is this PR solving?

We have often been asked for the ability to see what refinery thinks its configurations are. We support this with a debug command, but it requires a running refinery configured to allow debug queries, and a configuration that allows connecting to it.

This PR adds command-line switches to read the configs, apply defaults and environment variables, and write the data back out to a file. If you use this feature, refinery doesn't start, it just writes the file and exits.

Short description of the changes

  • Add function to write YAML out
  • Add cmdline parameters to control it

Dependent on #706

@kentquirk kentquirk requested a review from a team as a code owner June 8, 2023 02:22
@kentquirk kentquirk added this to the v2.0 milestone Jun 8, 2023
Base automatically changed from kent.validation_integration to main June 9, 2023 00:56
@kentquirk kentquirk force-pushed the kent.dump_configs branch from 237012e to e8c925f Compare June 9, 2023 01:07
@kentquirk kentquirk merged commit 1d82214 into main Jun 9, 2023
@kentquirk kentquirk deleted the kent.dump_configs branch June 9, 2023 02:12
kentquirk added a commit that referenced this pull request Jun 9, 2023
Depends on #707

## Which problem is this PR solving?

- Adds the new [EMA Throughput
sampler](https://github.com/honeycombio/dynsampler-go/blob/main/emathroughput.go)
to the set of supported samplers.

## Short description of the changes

- Add EMAThroughput sampler
- Add it to configuration and validation data
- Regen doc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants