Go Metrics
script
Go Metrics | script | |
---|---|---|
3 | 16 | |
3,476 | 6,458 | |
0.3% | 9.9% | |
0.0 | 6.5 | |
over 1 year ago | 2 months ago | |
Go | Go | |
GNU General Public License v3.0 or later | MIT License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
Go Metrics
-
Sliding Window Implementation for go-metrics
Hello! I'm not sure if anyone else out there has struggled with out of date data in the default exponential decay sampling method in the go-metrics library, but if you have I just open sourced a sliding window implementation that should help ease the pain. More details on the rationale in the README.
- High performance / low overhead metrics/instrumentation library?
-
How do you do Error reporting?
Second method of make app level changes to emit metrics, something sort of a metric library .But this takes considerable dev efforts and coverage of all errors is gradual but meaningful
script
- Shell-ish scripting in Go with ease
- Script: Making it easy to write shell-like scripts in Go
- Making it easy to write shell-like scripts in Go
- Go is my hammer, and everything is a nail
-
Using ARG in a Dockerfile – beware the gotcha
That's why I plan on migrating all my shell scripts to Golang programs f.ex. using https://github.com/bitfield/script -- it already has a number of simulations of shell commands and I'd contribute others if I had the time.
sh / bash / zsh scripts are just fragile and that's the inconvenient truth. People who devised the shell interpreters had good intentions but ultimately their creations grew to a scope 1000x bigger than they intended, hence all the "do X but if Y flag is set then do Z... unless flag A is also set in which case do Y and part of Z".
It's horrendous and I seriously don't get what's so difficult in just coding these scripts in a programming language that provides single statically linked binaries (like Golang) and just distribute it with your images -- or run them in CI/CD and have init containers and never include them in the images in the first place.
Inertia, of course. But I'll be actively working against it until I retire.
-
GNU Parallel, where have you been all my life?
I use Go. You can run scripts with go run directly, and this package makes shell tasks easy: https://github.com/bitfield/script
-
Scripting with Go: A Modest Proposal
If you're not deeply familiar with Go there is one detail missing from this post (though it's in the script README) - what a complete program looks like. Here's the example from https://github.com/bitfield/script#a-realistic-use-case
package main
- 'script' is for writing shell-like pipelines in Go
- script
-
Some Useful Patterns for Go's os/exec
Imho also worth mentioning: https://github.com/bitfield/script
What are some alternatives?
bosun - Time Series Alerting Framework
Gitea - Git with a cup of tea! Painless self-hosted all-in-one software development service, including Git hosting, code review, team collaboration, package registry and CI/CD
GVM - Go Version Manager
Gogs - Gogs is a painless self-hosted Git service
go-selfupdate - Enable your Go applications to self update
webhook - webhook is a lightweight incoming webhook server to run shell commands