Skip to content

Commit 5ac71a8

Browse files
committed
Begin writing documentation for public users
1 parent 4b68ea3 commit 5ac71a8

File tree

17 files changed

+227
-176
lines changed

17 files changed

+227
-176
lines changed
File renamed without changes.

docs/observability/_index.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@ See the [Quickstart](./get-started/quickstart.md) to see how to easily run this
1616
:maxdepth: 2
1717
1818
get-started/_index
19-
19+
setup/_index
20+
customization/_index
21+
reference/_index
2022
2123
```
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
# Customization
2+
3+
```{include} custom-dashboards.md
4+
:heading-offset: 1
5+
```
6+
7+
```{include} custom-prometheus-configs.md
8+
:heading-offset: 1
9+
```
10+
11+
12+
```{toctree}
13+
:titlesonly:
14+
:hidden:
15+
16+
custom-prometheus-configs.md
17+
custom-dashboards.md
18+
19+
```
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
# Custom Dashboards
2+
3+
Grafana is setup with preconfigured dashboards, datasource, and alerting. These will work when prometheus is run in this stack, and is dependent on all the metrics following defined rules.
4+
5+
it is advised that any edits or new configs get committed back into your git repository, and stick with grafana provisioning instead of allowing manual edits
6+
7+
8+
## How to add a new dashboard with provisioning
9+
10+
- Mount new dashboard files in the `/etc/grafana/provisioning/dashboards/site` directory
11+
- To remove or change the existing, mount over the existing files there
12+
13+
For more info see [Grafana Alerting Provisioning](https://grafana.com/docs/grafana/latest/administration/provisioning/#dashboards)
14+
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
# Custom Prometheus Configuration
2+
3+
4+
You can add compeltely custom prometheus scrape configs and recording rules by mounting in docker.
5+
6+
7+
8+
- `site/prometheus/scrape-configs/*.yml`. This is for advanced configuration. Any yml file put in this directory will be used as standard promethues scrape configs. This will give full flexibility over what metrics are collected and all features in prometheus. Add any further configs that you want prometheus to use.
9+
10+
```yaml
11+
# Custom scrape config definition
12+
scrape_configs:
13+
- job_name: custom-scrape-config # Scrape configuration to get metrics from elasticsearch, eg index size.
14+
static_configs:
15+
- targets:
16+
- my-custom-target:9114
17+
labels:
18+
custom_label: custom # (Optional)
19+
```

docs/observability/get-started/_index.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,5 @@
33
```{toctree}
44
:maxdepth: 2
55
quickstart
6-
setup-tutorial
76
userguide-tutorial
87
```

docs/observability/get-started/quickstart.md

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -22,13 +22,13 @@ Now go to "http://localhost/grafana" to see the dashboards
2222

2323
Thats everything. The stack is running and you can see the availability.
2424

25+
If you can't use the script, see the [Manual Quickstart](../advanced-usage/quickstart-manual.md) to setup your own files.
26+
2527

2628
### Optional Step: Probe your own web page
2729
Now you can look at getting monitoring of your own page
2830

29-
In your current folder, edit the file `prometheus/scrape-configs/probers/probe-simple.yml` that you downloaded from git.
30-
31-
Add the following yml to the bottom of the file:
31+
1. In your current folder, in the file `prometheus/scrape-configs/probers/probe-simple.yml` add the following yml to the bottom of the file:
3232

3333
```yaml
3434
- targets:
@@ -38,22 +38,24 @@ Add the following yml to the bottom of the file:
3838
job: probe-my-own-site
3939
```
4040
41+
Note to be careful of the indentation in yml, this target must be at the same depth as the existing contents.
4142
42-
The change should get applied automatically, but if you dont want to wait then run
43+
2. Restart the containers with:
4344
```
4445
docker compose restart
4546
```
4647

4748
Now refresh the grafana dashboard, and you can see the availability of google.com, it's probably 100%!
4849

49-
5050
## Next steps
5151
This is the end of this quickstart tutorial, that enables probing availability of endpoints.
5252

5353
For the next steps we can:
54+
5455
- Productionise our deployment to enable further features
55-
- Enable *Telemetry* like VM memory usage, and Elasticsearch index size, by running Exporters
56+
- Configure *Telemetry* like VM memory usage, and Elasticsearch index size, by running Exporters
5657
- Enable *Alerting* based on our availability and a defined Service Level Objective (SLO)
58+
- Setup further *Probing* of our running services to get availability metrics
5759
- Look further into the available dashboards
5860
- Fully customize the stack with our own dashboards, recording rules and metrics
5961

docs/observability/get-started/setup-tutorial.md

Lines changed: 0 additions & 15 deletions
This file was deleted.
Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
11
# Dashboard User Guide
22

3-
This is my dashboard user guide
3+
This is my dashboard user guide
4+
5+
6+
## Grafana Dashboards
7+
8+
- Availability
9+
- Elasticsearch
10+
- VM Metrics (Memory use, CPU etc)
11+
- Docker Metrics (Running containers)
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# Reference
2+
3+
```{toctree}
4+
:maxdepth: 2
5+
6+
quickstart-manual.md
7+
8+
```

0 commit comments

Comments
 (0)