Skip to content

Latest commit

 

History

History
36 lines (27 loc) · 797 Bytes

README.md

File metadata and controls

36 lines (27 loc) · 797 Bytes

Typesense metrics exporter for Prometheus

This is Prometheus metrics exporter for Typesense metrics.

Tested only with Typesense 0.23.1 and 0.25.1.

Usage

Env variables

export TYPESENSE_API_KEY=xyz
export TYPESENSE_URL=http://localhost:8108
export EXPORTER_PORT=9101
export INSECURE_SKIP_VERIFY=false

Docker

docker build -t typesense-exporter .
docker run -d -p 9115:9115 -e EXPORTER_PORT=9115 -e TYPESENSE_API_KEY=xyz -e TYPESENSE_URL=http://typesense:8108 typesense-exporter

Local development

Run

go build -o typesense_exporter
./typesense_exporter

Running with docker-compose

docker-compose up