Skip to content
This repository has been archived by the owner on Oct 12, 2020. It is now read-only.

Example connector written in Python for Prometheus using the gRPC data-loading API in Qlik Associative Engine.

License

Notifications You must be signed in to change notification settings

qlik-oss/core-grpc-prometheus-connector

Repository files navigation

core-grpc-prometheus-connector

As of 1 July 2020, Qlik Core is no longer available to new customers. No further maintenance will be done in this repository.

Get started

The connector supports two parameters passed in from the connection string, promHost=some-host:9090, and promQuery=some-promql-expression.

For example, CUSTOM CONNECT TO "provider=prometheus-connector;promHost=my-prometheus-hostname:9090;promQuery={__name__=~'qix.+'}", will tell the connector to fetch Prometheus data from host my-prometheus-hostname, on port 9090 with a Prometheus query that will list all metrics that starts with qix.

Run locally

Requires python3.

pip install -r requirements.txt
python src/.

Regenerating code

Update ./connector.proto to a new version, then:

python gen_code.py

Build Docker image

docker build . -t prom-connector

Running the example

Requires Node.js version 9+.

cd example
ACCEPT_EULA=yes docker-compose up -d --build --force-recreate
cd ui
npm i
npx webpack --mode development
open dist/index.html

Example

About

Example connector written in Python for Prometheus using the gRPC data-loading API in Qlik Associative Engine.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published