goprom_app

command
v0.0.0-...-9864308 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 2, 2023 License: MIT Imports: 16 Imported by: 0

README

Dummy application which display hostname and version

GoLang webserver which purpose is to reply with the hostname and if existing, the environment variable VERSION.

Getting started

Development

Install dependencies using dep:

$ dep ensure
$ go run main.go
Docker
Build
$ docker build -t username/goprom .
Run
$ docker run -d \
    --name app \
    -p 8080:8080 \
    -p 9101:9101 \
    -h host-1 \
    -e VERSION=v1.0.0
    username/goprom
Test
$ curl localhost:8080
2018-01-28T00:22:04+01:00 - Host: host-1, Version: v1.0.0

Liveness and readiness probes are replying on :8086/live and :8086/ready.

Prometheus metrics are served at :9101/metrics.

Cleanup
$ docker stop app

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL