There are several ways to create custom monitoring scripts that will supply time series data to your Prometheus server. As noted earlier in the Setting up Prometheus section, there are many client libraries available, such as https://github.com/prometheus/client_python.
In the following screenshot, you can see that the preceding project is not very big but does have stars on GitHub.
To use this library, install it using pip (a Python package manager for modules) with the following code:
$ pip install prometheus_client
Collecting prometheus_client
matplotlib 1.3.1 requires nose, which is not installed.
matplotlib 1.3.1 requires tornado, which is not installed.
Installing collected packages: prometheus-client
Successfully installed prometheus-client-0.6.0
You can also create a simple exporter by running the following code from a Python interpreter or via...