Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/rongfengliang/prometheus-cratedb-cluster-docker-compose

prometheus-cratedb-cluster-docker-compose
https://github.com/rongfengliang/prometheus-cratedb-cluster-docker-compose

cratedb docker-compose prometheu

Last synced: 4 days ago
JSON representation

prometheus-cratedb-cluster-docker-compose

Awesome Lists containing this project

README

        

# cratedb adapter for prometheus

> with cratedb cluster && grafana && grok exporter demo

## Create cratedb table

```code
CREATE TABLE "metrics" (
"timestamp" TIMESTAMP,
"labels_hash" STRING,
"labels" OBJECT(DYNAMIC),
"value" DOUBLE,
"valueRaw" LONG,
"day__generated" TIMESTAMP GENERATED ALWAYS AS date_trunc('day', "timestamp"),
PRIMARY KEY ("timestamp", "labels_hash", "day__generated")
) PARTITIONED BY ("day__generated");
```

## Running

```code
docker-compose up -d
```

## View UI && info

* cratedb ui

```code
open http://localhost:4200
```

* prometheuss

```code
open http://localhost:9090
```

* grafana

```code
open http://localhost:3000
```