Skip to content

Commit 977aec9

Browse files
committed
Notes on monitoring
Signed-off-by: Alex Ellis (OpenFaaS Ltd) <[email protected]>
1 parent 7d5b30b commit 977aec9

File tree

3 files changed

+12
-5
lines changed

3 files changed

+12
-5
lines changed

docs/tasks/monitoring.md

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,14 @@
1-
# Task: Monitoring Actuated
1+
# Task: Monitoring Your Actuated Usage
22

33
!!! info "Our team monitors actuated around the clock, on your behalf"
44
The actuated team proactively monitors your servers and build queue for issues. We remediate them on your behalf and for anything cannot be fixed remotely, we'll be in touch via Slack or email.
55

6+
## Monitoring with the CLI
7+
68
The [actuated CLI](/tasks/cli) should be used for support, to query the agent's logs, or the logs of individual VMs.
79

10+
## Monitoring with Grafana
11+
812
If you would also like to do your own monitoring, you can purchase a monitoring add-on, which will expose metrics for your own Prometheus instance. You can then set up a Grafana dashboard to view the metrics.
913

1014
The monitoring add-on provides:
@@ -14,13 +18,13 @@ The monitoring add-on provides:
1418

1519
To opt-in, follow the instructions in the dashboard.
1620

17-
## Scrape the metrics
21+
### Scrape the metrics
1822

1923
Metrics are currently made available through [Prometheus](https://prometheus.io/) federation. Prometheus can be run with Docker, as a Kubernetes deployment, or as a standalone binary.
2024

2125
You can add a scrape target to your own Prometheus instance, or you can use the Grafana Agent to do that and ship off the metrics to Grafana Cloud.
2226

23-
Here is a sample scrape config for Prometheus:
27+
Here is an example sample scrape config for Prometheus:
2428

2529
```yaml
2630
scrape_configs:
@@ -34,14 +38,14 @@ scrape_configs:
3438
scrape_interval: 60s
3539
scrape_timeout: 5s
3640
static_configs:
37-
- targets: ["tbc:443"]
41+
- targets: ["actuated-controlplane.example.com:443"]
3842
```
3943
4044
The `bearer_token` is a secret, and unique per customer. Only a bcrypt hash is stored in the control-plane, along with a mapping between GitHub organisations and the token.
4145

4246
The `scrape_interval` must be `60s`, or higher to avoid rate-limiting.
4347

44-
Contact the support team on Slack for the value for the `targets` field.
48+
The value `actuated-controlplane.example.com` is a placeholder, you can request the endpoint from the actuated team.
4549

4650
### Control-plane metrics
4751

docs/tasks/right-sizing-vm.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ In the blog post [Right sizing VMs for GitHub Actions](https://actuated.com/blog
1010

1111
A range of metrics are collected in addition to the standard ones like CPU & RAM consumption, vmmeter also shows contention on I/O, whether a job is running out of disk apce, and how many open files are in use. Non-obvious metrics like entropy and I/O contention are also collected, which can also be linked to degraded performance.
1212

13+
See also: [Custom VM sizes](/custom-vm-size/)
14+
1315
## Try it out
1416

1517
Add the following to the top of your worklflow:

mkdocs.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,7 @@ nav:
9898
- Install the Agent: install-agent.md
9999
- Run a test build: test-build.md
100100
- Tasks:
101+
- Right Size the VM: tasks/right-size-vm.md
101102
- Setup a Registry Mirror: tasks/registry-mirror.md
102103
- Debug a job with SSH: tasks/debug-ssh.md
103104
- Set-up the CLI: tasks/cli.md

0 commit comments

Comments
 (0)