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

Add build information to the metrics/queries #34

Merged
merged 10 commits into from
May 9, 2023
Merged

Add build information to the metrics/queries #34

merged 10 commits into from
May 9, 2023

Conversation

gagbo
Copy link
Member

@gagbo gagbo commented Apr 21, 2023

This allows use cases where we can see and query the changes in metrics
after a version change in the code base.

Ref: autometrics-dev/autometrics-rs#69
Ref: https://github.com/orgs/autometrics-dev/discussions/10

gagbo added 2 commits April 21, 2023 11:25
This allows use cases where we can see and query the changes in metrics
after a version change in the code base.

Ref: autometrics-dev/autometrics-rs#69
Ref: https://github.com/orgs/autometrics-dev/discussions/10
pkg/autometrics/prometheus/prometheus.go Outdated Show resolved Hide resolved
README.md Show resolved Hide resolved
@gagbo
Copy link
Member Author

gagbo commented Apr 24, 2023

I'll add a recipe to modify the build information stuff within a dockerfile, it will make the PR significantly larger as the examples have not been set up to work with a build script (mostly to avoid issues with docker contexts)

@gagbo
Copy link
Member Author

gagbo commented Apr 28, 2023

I'm also switching command line argument parsing a bit to use go-arg, it helps make leaner code in the parsing phase, and auto-generates a good help message

image

The Autometrics v0.3.1-6-g323548f (Built on Fri Apr 28 10:32:02 UTC 2023) line is also the output of autometrics --version

Breaking change: the long flags in autometrics now take the long form
arguments starting with --

Also removes the unused `am-alertsgen` binary. Even though for the time
being we are using sloth to generate the alerts, at some point we might
want to change, and adding extra code/friction to do the change seems
unwarranted for now.
cmd/autometrics/main.go Show resolved Hide resolved
examples/otel/configs/alertmanager.yml Show resolved Hide resolved
examples/web/README.md Show resolved Hide resolved
examples/web/cmd/main.go Outdated Show resolved Hide resolved
internal/autometrics/prometheus_link_gen.go Outdated Show resolved Hide resolved
pkg/autometrics/global_state.go Outdated Show resolved Hide resolved
pkg/autometrics/main.go Show resolved Hide resolved
pkg/autometrics/main.go Show resolved Hide resolved
README.md Show resolved Hide resolved
cmd/autometrics/main.go Show resolved Hide resolved
examples/otel/configs/alertmanager.yml Show resolved Hide resolved
examples/web/cmd/main.go Show resolved Hide resolved
internal/autometrics/prometheus_link_gen.go Outdated Show resolved Hide resolved
pkg/autometrics/main.go Show resolved Hide resolved
pkg/autometrics/prometheus/prometheus.go Outdated Show resolved Hide resolved
internal/build/build.go Outdated Show resolved Hide resolved
gagbo added 3 commits May 4, 2023 14:45
There is little reason to add a different name in the docs now that
there is a single import again
@gagbo gagbo merged commit 7550614 into main May 9, 2023
@gagbo gagbo deleted the build_info branch May 9, 2023 06:39
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.

3 participants