Skip to content

Conversation

atovpeko
Copy link
Contributor

No description provided.

@atovpeko atovpeko requested a review from billy-the-fish May 19, 2025 07:44
Copy link

Allow 10 minutes from last push for the staging site to build. If the link doesn't work, try using incognito mode instead. For internal reviewers, check web-documentation repo actions for staging build status. Link to build for this PR: http://docs-dev.timescale.com/docs-fix-prometheus-docs

@ramonguiu
Copy link
Contributor

@atovpeko @rahilsondhi the instructions for self-hosted related to adding the Postgres exporter also apply to TS Cloud. The TS Cloud set up to get infrastructure metrics (cpu, memory, storage) are in addition to the ones from the Postgres exporter. The thing we need to be careful of is making sure the Prometheus labels for the Postgres exporter are configured match the ones set by TS Cloud.

I've tested the TS Cloud exporter for Prometheus and metrics look like this:

# TYPE timescale_cloud_system_cpu_total_millicores gauge
timescale_cloud_system_cpu_total_millicores{project_id="mzel21cd40",region="us-east-1",role="primary",service_id="p7s4vw4ik7",service_type="single-node"} 500
timescale_cloud_system_cpu_total_millicores{project_id="mzel21cd40",region="us-east-1",role="replica",service_id="p7s4vw4ik7",service_type="single-node"} 500

So we need to tell the user to configure the following labels in their Postgres exporter for each service:

  • project_id
  • service_id
  • region

This way they will be able to easily create dashboards that can be filtered using those parameters.

@atovpeko atovpeko merged commit 7035fac into latest May 19, 2025
3 checks passed
@atovpeko atovpeko deleted the fix-prometheus-docs branch May 19, 2025 08:40
@atovpeko
Copy link
Contributor Author

@atovpeko @rahilsondhi the instructions for self-hosted related to adding the Postgres exporter also apply to TS Cloud. The TS Cloud set up to get infrastructure metrics (cpu, memory, storage) are in addition to the ones from the Postgres exporter. The thing we need to be careful of is making sure the Prometheus labels for the Postgres exporter are configured match the ones set by TS Cloud.

I've tested the TS Cloud exporter for Prometheus and metrics look like this:

# TYPE timescale_cloud_system_cpu_total_millicores gauge
timescale_cloud_system_cpu_total_millicores{project_id="mzel21cd40",region="us-east-1",role="primary",service_id="p7s4vw4ik7",service_type="single-node"} 500
timescale_cloud_system_cpu_total_millicores{project_id="mzel21cd40",region="us-east-1",role="replica",service_id="p7s4vw4ik7",service_type="single-node"} 500

So we need to tell the user to configure the following labels in their Postgres exporter for each service:

  • project_id
  • service_id
  • region

This way they will be able to easily create dashboards that can be filtered using those parameters.

Here is a PR for this update: #4137

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants