Skip to content

Various documentation updates #80

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 14 commits into
base: main
Choose a base branch
from
Draft

Various documentation updates #80

wants to merge 14 commits into from

Conversation

richturner
Copy link
Member

No description provided.

@richturner richturner changed the title Update useful-commands-and-queries.md Various documentation updates May 6, 2025
@richturner richturner linked an issue May 6, 2025 that may be closed by this pull request
@richturner richturner requested a review from wborn May 7, 2025 12:57
@wborn
Copy link
Member

wborn commented May 9, 2025

Is there a reason why this is still a draft PR @richturner?

@richturner richturner marked this pull request as ready for review May 14, 2025 17:04
@richturner richturner marked this pull request as draft May 14, 2025 17:12
@richturner
Copy link
Member Author

Hey @wborn I want to add some additional info about the dashboard and want to combine it with any changes I make in openremote/openremote#1853

@@ -0,0 +1,65 @@
# Metrics

Prometheus formatted metrics endpoints can be configured for each container (including the OpenRemote Manager), you will either need Prometheus server running to scrape these endpoints or use a cloud provider service; here's an example using AWs Cloudwatch:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
Prometheus formatted metrics endpoints can be configured for each container (including the OpenRemote Manager), you will either need Prometheus server running to scrape these endpoints or use a cloud provider service; here's an example using AWs Cloudwatch:
Prometheus formatted metrics endpoints can be configured for each container (including the OpenRemote Manager), you will either need Prometheus server running to scrape these endpoints or use a cloud provider service; here's an example using AWS Cloudwatch:

@wborn wborn requested a review from Copilot June 27, 2025 07:47
Copy link

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR updates the documentation with new content for monitoring metrics and enhances the backup/restore instructions for the OpenRemote database.

  • Added a comprehensive metrics table for various container components in the user guide
  • Enhanced backup instructions with additional options and removed outdated steps in the developer guide
  • Introduced a new Bash section demonstrating how to set up an SSH tunnel for accessing HAProxy stats

Reviewed Changes

Copilot reviewed 2 out of 3 changed files in this pull request and generated 2 comments.

File Description
docs/user-guide/metrics.md New documentation presenting container metrics including detailed tables
docs/developer-guide/useful-commands-and-queries.md Updated backup/restore commands and added a Bash section for SSH tunnel guidance

Comment on lines +3 to +6
Prometheus formatted metrics endpoints can be configured for each container (including the OpenRemote Manager), you will either need Prometheus server running to scrape these endpoints or use a cloud provider service; here's an example using AWs Cloudwatch:

![image](img/metrics.png)
_Image of metrics endpoints and AWS Cloudwatch configuration_
Copy link
Preview

Copilot AI Jun 27, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Typo in 'AWs Cloudwatch': it should be corrected to 'AWS CloudWatch'.

Suggested change
Prometheus formatted metrics endpoints can be configured for each container (including the OpenRemote Manager), you will either need Prometheus server running to scrape these endpoints or use a cloud provider service; here's an example using AWs Cloudwatch:
![image](img/metrics.png)
_Image of metrics endpoints and AWS Cloudwatch configuration_
Prometheus formatted metrics endpoints can be configured for each container (including the OpenRemote Manager), you will either need Prometheus server running to scrape these endpoints or use a cloud provider service; here's an example using AWS CloudWatch:
![image](img/metrics.png)
_Image of metrics endpoints and AWS CloudWatch configuration_

Copilot uses AI. Check for mistakes.

@@ -40,9 +40,10 @@ docker cp <PROJECT_NAME>_postgresql_1:/deployment/datapoints.csv ./

### Backup/Restore OpenRemote DB

* Create backup: `docker exec or-postgresql-1 pg_dump -Fc openremote -f /tmp/db.bak`
* Create backup: `docker exec or-postgresql-1 pg_dump -Fc openremote -f /tmp/db.bak` (can also be useful to exclude datapoint records from the backup by using this command `docker exec or-postgresql-1 pg_dump -Fc openremote -f /tmp/db.bak --exclude-table-data='_timescaledb_internal._hyper_*'`)
Copy link
Preview

Copilot AI Jun 27, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[nitpick] Consider reformatting this long command description by separating the backup command and the additional exclusion note into distinct bullet points or lines to improve readability.

Suggested change
* Create backup: `docker exec or-postgresql-1 pg_dump -Fc openremote -f /tmp/db.bak` (can also be useful to exclude datapoint records from the backup by using this command `docker exec or-postgresql-1 pg_dump -Fc openremote -f /tmp/db.bak --exclude-table-data='_timescaledb_internal._hyper_*'`)
* Create backup: `docker exec or-postgresql-1 pg_dump -Fc openremote -f /tmp/db.bak`
* Optional: Exclude datapoint records from the backup using the following command: `docker exec or-postgresql-1 pg_dump -Fc openremote -f /tmp/db.bak --exclude-table-data='_timescaledb_internal._hyper_*'`

Copilot uses AI. Check for mistakes.

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.

Metrics documentation
3 participants