Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
K
k3s
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Jacklull
k3s
Commits
a0874620
Commit
a0874620
authored
Dec 05, 2017
by
Joe Betz
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Improve etcd-version-monitor metrics proxying, add etcd 3.1 gprc metric support
parent
305d6443
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
186 additions
and
69 deletions
+186
-69
BUILD
cluster/images/etcd-version-monitor/BUILD
+2
-0
Makefile
cluster/images/etcd-version-monitor/Makefile
+1
-1
README.md
cluster/images/etcd-version-monitor/README.md
+11
-3
etcd-version-monitor.go
cluster/images/etcd-version-monitor/etcd-version-monitor.go
+172
-65
No files found.
cluster/images/etcd-version-monitor/BUILD
View file @
a0874620
...
@@ -19,6 +19,8 @@ go_library(
...
@@ -19,6 +19,8 @@ go_library(
deps = [
deps = [
"//vendor/github.com/golang/glog:go_default_library",
"//vendor/github.com/golang/glog:go_default_library",
"//vendor/github.com/prometheus/client_golang/prometheus:go_default_library",
"//vendor/github.com/prometheus/client_golang/prometheus:go_default_library",
"//vendor/github.com/prometheus/client_golang/prometheus/promhttp:go_default_library",
"//vendor/github.com/prometheus/client_model/go:go_default_library",
"//vendor/github.com/prometheus/common/expfmt:go_default_library",
"//vendor/github.com/prometheus/common/expfmt:go_default_library",
"//vendor/github.com/spf13/pflag:go_default_library",
"//vendor/github.com/spf13/pflag:go_default_library",
],
],
...
...
cluster/images/etcd-version-monitor/Makefile
View file @
a0874620
...
@@ -20,7 +20,7 @@
...
@@ -20,7 +20,7 @@
ARCH
:=
amd64
ARCH
:=
amd64
GOLANG_VERSION
?=
1.8.3
GOLANG_VERSION
?=
1.8.3
REGISTRY
?=
gcr.io/google-containers
REGISTRY
?=
gcr.io/google-containers
TAG
?=
0.1.
0
TAG
?=
0.1.
1
IMAGE
:=
$(REGISTRY)
/etcd-version-monitor:
$(TAG)
IMAGE
:=
$(REGISTRY)
/etcd-version-monitor:
$(TAG)
CURRENT_DIR
:=
$(pwd)
CURRENT_DIR
:=
$(pwd)
TEMP_DIR
:=
$(
shell
mktemp
-d
)
TEMP_DIR
:=
$(
shell
mktemp
-d
)
...
...
cluster/images/etcd-version-monitor/README.md
View file @
a0874620
# etcd-version-monitor
# etcd-version-monitor
This is a tool for exporting metrics related to etcd version, like etcd
This is a tool for exporting etcd metrics and supplementing them with etcd
server's binary version, cluster version, and counts of different kinds of
server binary version and cluster version. These metrics are in
gRPC calls (which is a characteristic of v3), etc. These metrics are in
prometheus format and can be scraped by a prometheus server.
prometheus format and can be scraped by a prometheus server.
The metrics are exposed at the http://localhost:9101/metrics endpoint.
The metrics are exposed at the http://localhost:9101/metrics endpoint.
For etcd 3.1+, the
[
go-grpc-prometheus
](
https://github.com/grpc-ecosystem/go-grpc-prometheus
)
metrics format, which backward incompatibly replaces the 3.0 legacy grpc metric
format, is exposed in both the 3.1 format and in the 3.0. This preserves
backward compatiblity.
For etcd 3.1+, the
`--metrics=extensive`
must be set on etcd for grpc request
latency metrics (
`etcd_grpc_unary_requests_duration_seconds`
) to be exposed.
**RUNNING THE TOOL**
**RUNNING THE TOOL**
To run this tool as a docker container:
To run this tool as a docker container:
...
...
cluster/images/etcd-version-monitor/etcd-version-monitor.go
View file @
a0874620
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment