Set up a Prometheus endpoint
Use Prometheus to monitor your Managed Service for TimescaleDB
You can get more insights into the performance of your Managed Service for TimescaleDB service by monitoring it using Prometheus, a popular open source metrics-based systems monitoring solution.
Before you begin
Section titled “Before you begin”- Create a Managed Service for TimescaleDB service.
- Make a note of the
PortandHostfor your MST service.
Enabling Prometheus service integration
Section titled “Enabling Prometheus service integration”- Create a new Prometheus endpoint
-
In MST Console, choose a project and navigate to
Integration Endpoints. Navigate toPrometheus, and clickCreate new. -
In the
Create new Prometheus endpointdialog, complete these fields:- In the
Endpoint namefield, type a name for your endpoint. - In the
Usernamefield, type your username. - In the
Passwordfield, type your password.
- In the
-
Click
Createto create the endpoint.
These details are used when setting up your Prometheus installation, in the
prometheus.ymlconfiguration file. This allows you to make this Managed Service for TimescaleDB endpoint a target for Prometheus to scrape. -
- Configure Prometheus
Use this sample configuration file to set up your Prometheus installation, by substituting
<PORT>,<HOST>,<USER>, and<PASSWORD>with those of your Managed Service for TimescaleDB service:global:scrape_interval: 10sevaluation_interval: 10sscrape_configs:- job_name: prometheusscheme: httpsstatic_configs:- targets: ['<HOST>:<PORT>']tls_config:insecure_skip_verify: truebasic_auth:username: <USER>password: <PASSWORD>remote_write:- url: "http://<HOST>:9201/write"remote_read:- url: "http://<HOST>:9201/read" - Enable Prometheus for a service
-
In the MST Console, navigate to
Servicesand select the MST service you want to monitor. -
In the
Integrationstab, go toExternal integrationssection and selectPrometheus. -
In the
Prometheus integrationsdialog, select the Prometheus endpoint that you created and clickEnable.
The Prometheus endpoint is listed under
Enabled integrationsfor the Managed Service for TimescaleDB service. -