Prometheus and versioning #14
No reviewers
Labels
No labels
consider soon
documentation
good first issue
hacktoberfest
help wanted
priority: blocker
priority: high
priority: low
priority: medium
type: bug
type: discussion
type: improvement
type: new feature
type: refactor
type: task
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: LBRYCommunity/herald.go#14
Loading…
Add table
Reference in a new issue
No description provided.
Delete branch "prometheus-and-versioning"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
This PR is pulling in the changes I made for versioning that are in the old branch that has diverged too much from master, as well as the beginning of the code for prometheus metrics.
i recommend against putting
sudo
in scripts. at least for me, i have docker set up to run without sudoyour build_and_push.sh script doesnt use sudo
typo in help text:
@ -55,2 +55,4 @@
```
go get google.golang.org/protobuf/cmd/protoc-gen-go google.golang.org/grpc/cmd/protoc-gen-go-grpc
pip install grpcio grpcio-tools github3.py
```
what's the python for?
@ -0,0 +1,345 @@
import argparse
why a python script in a go repo?
plz sort the imports with the builtins at the top. if you're using GoLand, you can turn on the
go imports
file watcher and it will sort them on save for youi don't think our version should be returning today's date all the time. that's not right. it should return the date of when the last version (or commit or build) was made.
for one approach to do that, look at the
version
var in https://github.com/lbryio/internal-apis/blob/master/app/meta/meta.go. that gets set at build time here https://github.com/lbryio/internal-apis/blob/master/build.sh#L36. you could do the same with the build date.Agreed, that's why I'm getting rid of this one.
@ -55,2 +55,4 @@
```
go get google.golang.org/protobuf/cmd/protoc-gen-go google.golang.org/grpc/cmd/protoc-gen-go-grpc
pip install grpcio grpcio-tools github3.py
```
A couple things, one the protobufs need to be able to build into python files as well for the sdk, and I'm using a python script to do versioning tags and releases on github.
@ -0,0 +1,345 @@
import argparse
I copied Lex's python script for doing versioning and releases and edited it to fix the date ver thing we're doing for this repo, Python has really nice libraries for automating github tags and stuff. Could probably figure out how to do it in Go, but this is much faster development wise.