Tableau Prometheus Exporter
Tableau Server Manager Prometheus Exporter
This repository contains the codebase to expose the Tableau Server Manager metrics to prometheus and visualize them in grafana.
Metrics Example
# HELP tableau_service_status Tableau services statuses
# TYPE tableau_service_status gauge
tableau_service_status{instance_id="0",node_id="node2",service_name="filestore",state="Enabled",status="Active"} 1.0
tableau_service_status{instance_id="0",node_id="node2",service_name="authnservice",state="Enabled",status="Active"} 1.0
tableau_service_status{instance_id="0",node_id="node2",service_name="databasemaintenance",state="Disabled",status="Stopped"} 0.0
tableau_service_status{instance_id="0",node_id="node2",service_name="dataserver",state="Enabled",status="Active"} 1.0
tableau_service_status{instance_id="1",node_id="node2",service_name="dataserver",state="Enabled",status="Active"} 1.0
tableau_service_status{instance_id="0",node_id="node2",service_name="cacheserver",state="Enabled",status="Active"} 1.0
tableau_service_status{instance_id="1",node_id="node2",service_name="cacheserver",state="Enabled",status="Active"} 1.0
tableau_service_status{instance_id="0",node_id="node2",service_name="interactive",state="Enabled",status="Active"} 1.0
tableau_service_status{instance_id="0",node_id="node2",service_name="searchserver",state="Enabled",status="Active"} 1.0
tableau_service_status{instance_id="0",node_id="node2",service_name="statsservice",state="Enabled",status="Active"} 1.0
tableau_service_status{instance_id="0",node_id="node2",service_name="vizportal",state="Enabled",status="Active"} 1.0
tableau_service_status{instance_id="1",node_id="node2",service_name="vizportal",state="Enabled",status="Active"} 1.0
tableau_service_status{instance_id="0",node_id="node2",service_name="backuprestore",state="Disabled",status="Stopped"} 0.0
Install it from PyPI
$ pip install tableau-prometheus-exporter
Usage
Python
from tableau_prometheus_exporter.server import Server
Server(config).start_and_run_forever()
Command Line
$ python -m tableau_prometheus_exporter --h
Docker
$ docker run --rm -p 8000:8000 -v ${PWD}/config.yaml:/app/config.yaml tableau-prometheus-exporter --config-file config.yaml
Go to http://localhost:8000/ to see the metrics.
Configuration
A sample configuration can be found at samples/config.yaml.template
Dashboard
A sample Grafana Dashboard can be found at samples/grafana.json
Alerting
A sample of prometheus alert can be found at samples/prometheus.yaml
Contributing
Please refer to the CONTRIBUTING file for information about how to get involved. We welcome issues, questions, and pull requests.
Note
This project has been set up using PyScaffold 4.5. For details and usage information on PyScaffold see https://pyscaffold.org/.
Metadata
Release files for tableau-prometheus-exporter 0.3.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| tableau-prometheus-exporter-0.3.2.tar.gz | 163.6 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| tableau_prometheus_exporter-0.3.2-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 175.9 kB
Release files / tableau-prometheus-exporter-0.3.2.tar.gz
| Download URL | tableau-prometheus-exporter-0.3.2.tar.gz |
|---|---|
| Size | 163.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
e7793b1af7446291f88b98cae3e0bc4ed30609e79fab3e68624e592c71c72c68
|
|
BLAKE2b-256 checksum How to use checksums |
b3f2c7cd19db597c791d730e692f5e1c3e3ebcad06d005ab5cbbbe92426f1f15
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.10.12
|
Release files / tableau_prometheus_exporter-0.3.2-py3-none-any.whl
| Download URL | tableau_prometheus_exporter-0.3.2-py3-none-any.whl |
|---|---|
| Size | 12.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
89140807d2f838c9c21273f2f8bccd994e572f40308412c576f61836ffe76385
|
|
BLAKE2b-256 checksum How to use checksums |
5071eba155101d8ccd4e8e6c542472535f4611a4f34caae5f2e89dc23ee08d1c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.10.12
|
Security for tableau-prometheus-exporter 0.3.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.