Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/romanzipp/loki-dashboard

๐Ÿงพ An alternative Dashboard Frontend and Logs Browser for Grafana Loki. Deployable as Docker Container
https://github.com/romanzipp/loki-dashboard

docker grafana logs loki monitoring self-hosted

Last synced: 4 days ago
JSON representation

๐Ÿงพ An alternative Dashboard Frontend and Logs Browser for Grafana Loki. Deployable as Docker Container

Awesome Lists containing this project

README

        

# Loki Dashboard

An alternative **Dashboard** Frontend and **Logs Browser** for [Grafana Loki](https://grafana.com/oss/loki/).

![Screenshot](art/screenshot-01-light.png#gh-light-mode-only)
![Screenshot](art/screenshot-01-dark.png#gh-dark-mode-only)

### Features

๐Ÿงพ **See all logs ingested into Loki**
๐Ÿ“Œ Automatic fetching of **labels** & handy filtering
๐Ÿ“ฅ Store current filter **state in URL**, set bookmarks for dashboards
๐Ÿ“ฎ Parsing of **exceptions** & additonal data
๐Ÿ–Œ๏ธ Customizable UI
๐Ÿ“ฆ Deploy as **Docker** container
โŒจ๏ธ Override query build with **custom expression**
โžก๏ธ **Pagination** with infinte scrolling
๐ŸŒš Dark mode

## Setup

The project is built as a [Docker container](https://github.com/romanzipp/Loki-Dashboard/pkgs/container/loki-dashboard) via the GitHub `ghcr.io` container registry.

### Docker

The default port `3000` will be expoed.

```
docker pull ghcr.io/romanzipp/loki-dashboard:latest
```

```
docker run -e "LOKI_ENTRYPOINT=http://localhost:3100" -p 3000:3000 romanzipp/loki-dashboard:latest
```

### Nomad (with Docker)

```hcl
job "loki" {
group "loki-dashboard" {
network {
mode = "bridge"

port "http" {
to = 3000
}
}

service {
name = "loki-dashboard"
port = "http"

connect {
sidecar_service {
proxy {
upstreams {
destination_name = "loki" # <- your Grafana Loki service name
local_bind_port = 3100
}
}
}
}
}

task "loki-dashboard" {
driver = "docker"

config {
image = "ghcr.io/romanzipp/loki-dashboard:latest"
ports = ["http"]
}

env {
LOKI_ENTRYPOINT = "http://${NOMAD_UPSTREAM_ADDR_loki}"
}
}
}

group "loki" {
# ...
}
}
```

## Configuration

#### ๐Ÿ”  `LOKI_ENTRYPOINT` (default: `http://localhost:3100`)

The Loki instance base url.

#### #๏ธโƒฃ `COLORED_ROWS` (default: false)

Color rows with the according level color.

#### ๐Ÿ”ข `COLORED_ROWS_LEVEL_THRESHOLD` (default: null)

If `COLORED_ROWS` is enabled, only add background to rows with a level larger or equal than the set value. Example: 400

#### ๐Ÿ”ข `LABEL_CHAR_LIMIT` (default: 26)

Maximum limit of characters after which to truncate the label text

## License

[MIT License](LICENSE.md)

## Authors

- [Roman Zipp](https://romanzipp.com)