Categorygithub.com/scottaglia/meilisearch_exporter
repositorypackage
0.1.0
Repository: https://github.com/scottaglia/meilisearch_exporter.git
Documentation: pkg.go.dev

# Packages

No description provided by the author

# README

Meilisearch Exporter

Prometheus exporter for Meilisearch.

Usage

Install

You can download the pre-built binary from the Github releases page.

Configuration

Below is the command line options summary:

meiliearch_exporter --help
NameDescriptionDefault
--web.systemd-socketUse systemd socket activation listeners instead of port listeners (Linux only).
--web.listen-addressAddresses on which to expose metrics and web interface. Repeatable for multiple addresses.:9974
--web.config.file[EXPERIMENTAL] Path to configuration file that can enable TLS or authentication. See Web Configuration
--web.telemetry-pathPath under which to expose metrics./metrics
--ms.uriHTTP API address of the Meilisearch host.http://localhost:7700
--ms.apikeyMeilisearch API Key.
--ms.timeoutTimeout for trying to get stats from Meilisearch.5s
--log.levelOnly log messages with the given severity or above. One of: [debug, info, warn, error]info
--log.formatOutput format of log messages. One of: [logfmt, json]logfmt
--versionShow application version.

The following environment variables can be used to override the above configurations

VariableOverrides
MEILISEARCH_EXPORTER_URI--ms.uri
MEILISEARCH_EXPORTER_APIKEY--ms.apikey

Metrics

NameDescriptionLabels
meilisearch_upMeilisearch instance is up and running
meilisearch_total_scrapesTotal of Meilisearch scrapes.
meilisearch_last_updateWhen the last update was made to the database
meilisearch_database_sizeSize of the database in bytes
meilisearch_is_indexingIf 1, the index is still processing documents and attempts to search will result in undefined behavior. If 0, the index has finished processing and you can start searchingindex
meilisearch_number_of_documentsTotal number of documentsindex