63

GitHub - salihciftci/liman: Basic docker monitoring web application

 5 years ago
source link: https://github.com/salihciftci/liman
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

README.md

Liman
Liman

Basic docker monitoring web application. Written with Go.

Travis-CI 68747470733a2f2f676f7265706f7274636172642e636f6d2f62616467652f6769746875622e636f6d2f73616c69686369667463692f6c696d616e 68747470733a2f2f696d672e736869656c64732e696f2f646f636b65722f70756c6c732f73616c69686369667463692f6c696d616e2e737667

screenshot

Features

  • Containers
  • Stats
  • Logs
  • Images
  • Networks
  • Volumes
  • API

Prerequisites

To keep our data safe Liman has login page. We need to export environment variable to set login password.

#In Docker use -e option
-e pass=MYLOGINPASS

#In host you need to export pass variable
$ export pass=MYLOGINPASS

Installation

Liman works with host and docker container.

Docker

docker run -dit --name liman -e pass=PASS -v /var/run/docker.sock:/var/run/docker.sock salihciftci/liman

Note: the -v /var/run/docker.sock:/var/run/docker.sock option can be used in Linux environments only.

Host

You can download the lastest version of liman from releases or you can build with Go.

go get github.com/salihciftci/liman
make build

Note: Master branch may not stable!

API Usage

API only allow GET requests, other requests will rejected.

We need a key to use Liman API. We can have that from settings in home page.

Basic usage:

curl -i http://localhost:8080/api/status?key=xxx

More examples and all end points can be found in wiki.

Screenshots

68747470733a2f2f696d672e73616c69682e636f2f6c696d616e2f64617368626f6172642e706e67 68747470733a2f2f696d672e73616c69682e636f2f6c696d616e2f636f6e7461696e6572732e706e67 68747470733a2f2f696d672e73616c69682e636f2f6c696d616e2f6c6f67732e706e67 68747470733a2f2f696d672e73616c69682e636f2f6c696d616e2f73746174732e706e67

License

MIT


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK