Sign inSign up

to4kin/webapp-sidecar

By to4kin

Updated almost 5 years ago

Sidecar service on Go for webapp which expose some metrics in Prometheus format

Image
0

2.3K

to4kin/webapp-sidecar repository overview

ci-build made-with-Go GitHub go.mod Go version of a Go module GitHub release codecov

WebApp Sidecar

Sidecar service on Go for webapp which expose some metrics in Prometheus format.

GitHub
Docker

Precondition

  • Go 1.17+
Start via Docker

Default location for custom file metrics is /upload

docker run -it --rm -p 3000:3000 -v `pwd`/upload:/upload --name webapp-sidecar to4kin/webapp-sidecar:latest
Usage
Sidecar for WebApp to provide Prometheus metrics

Usage:
  webapp-sidecar [command]

Available Commands:
  help        Help about any command
  start       Start WebApp Sidecar
  version     Print version

Flags:
  -h, --help   help for webapp-sidecar

Use "webapp-sidecar [command] --help" for more information about a command.
Start sidecar
Start WebApp Sidecar with config file
Simply execute webapp-sidecar start -c path/to/config/file.toml
or skip this flag to use default path

Usage:
  webapp-sidecar start [flags]

Flags:
  -c, --config-path string   path to config file (default "configs/webappsidecar.toml")
  -h, --help                 help for start
Config file
bind_addr = ":3000"
upload_folder = "upload"
check_folder_interval = 2
metrics_path = "/metrics"
Exposed custom metrics
# HELP files_count The number of files in upload folder
# TYPE files_count gauge
files_count 1
# HELP files_size_total The total size of files in the upload folder
# TYPE files_size_total gauge
files_size_total 0

Tag summary

Content type

Image

Digest

Size

8.9 MB

Last updated

almost 5 years ago

docker pull to4kin/webapp-sidecar