Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion prometheus_api_client/__init__.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
"""A collection of tools to collect and manipulate prometheus metrics."""

__title__ = "prometheus-connect"
__title__ = "prometheus-api-client-optional-matplotlib"
__version__ = "0.6.0"

from .prometheus_connect import * # noqa F403
Expand Down
5 changes: 4 additions & 1 deletion prometheus_api_client/metric_plot.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,10 @@ def __init__(self, *args, **kwargs):

register_matplotlib_converters()
except ImportError as exce: # noqa F841
raise ImportError("matplotlib was not found")
raise ImportError(
"matplotlib is required for plotting functionality. "
"Install with: pip install 'prometheus-api-client[plotting]'"
)

# One graph with potentially N lines - if plot() is called twice
self._plt = plt
Expand Down
1 change: 0 additions & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,4 @@ requests
dateparser
pandas>=1.4.0
numpy
matplotlib
httmock
4 changes: 2 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,11 @@ def get_version():

VERSION = get_version()
setuptools.setup(
name="prometheus-api-client",
name="prometheus-api-client-optional-matplotlib",
version=VERSION,
author="Anand Sanmukhani",
author_email="asanmukhani@microsoft.com",
description="A small python api to collect data from prometheus",
description="A Python API client for Prometheus with optional matplotlib dependency",
long_description=long_description,
long_description_content_type="text/markdown",
url="https://github.com/4n4nd/prometheus-api-client-python",
Expand Down