Skip to content

Prometheus server. #385

Answered by yanc0
Yaa101 asked this question in Q&A
May 23, 2022 · 4 comments · 1 reply
Discussion options

You must be logged in to vote

Litestream exports metrics on -addr. Usually, applications don't interact with prometheus, it's prometheus that scrapes applications.

https://pkg.go.dev/github.com/prometheus/client_golang/prometheus

litestream replicate [arguments] DB_PATH REPLICA_URL [REPLICA_URL...]
Arguments:
[...]
        -addr BIND_ADDR
            Starts an HTTP server that reports prometheus metrics and provides
            an endpoint for live read replication. (e.g. ":9090")
[...]

Replies: 4 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Answer selected by Yaa101
Comment options

You must be logged in to vote
1 reply
@yanc0
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants