You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* docs: Getting Started Improvements
- Enable auth for multi-tenancy.
- Load the Cortex dashboards from the cortex-jsonnet repo for the getting-started tutorial. This should allow newcomers to get a better feel for what Cortex is doing.
- Configure recording rules, alerting rules, and alertmanager with cortextool.
- Add Grafana datasources to showcase multi-tenancy.
Signed-off-by: Charlie Le <[email protected]>
* Update tenant names to be generic
Signed-off-by: Charlie Le <[email protected]>
* Add Makefile to update dashboards
Signed-off-by: Charlie Le <[email protected]>
* Update datasource names in Grafana
Signed-off-by: Charlie Le <[email protected]>
* Use mixin.libsonnet instead of config.libsonnet
Signed-off-by: Friedrich Gonzalez <[email protected]>
---------
Signed-off-by: Charlie Le <[email protected]>
Signed-off-by: Friedrich Gonzalez <[email protected]>
Co-authored-by: Friedrich Gonzalez <[email protected]>
Copy file name to clipboardExpand all lines: docs/getting-started/_index.md
+33-4Lines changed: 33 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -54,21 +54,50 @@ how this is configured.
54
54
#### Configure SeaweedFS (S3)
55
55
56
56
```sh
57
-
# Create a bucket in SeaweedFS
58
-
curl --aws-sigv4 "aws:amz:local:seaweedfs" --user "any:any" -X PUT http://localhost:8333/cortex-bucket
57
+
# Create buckets in SeaweedFS
58
+
$ curl --aws-sigv4 "aws:amz:local:seaweedfs" --user "any:any" -X PUT http://localhost:8333/cortex-blocks
59
+
$ curl --aws-sigv4 "aws:amz:local:seaweedfs" --user "any:any" -X PUT http://localhost:8333/cortex-ruler
60
+
$ curl --aws-sigv4 "aws:amz:local:seaweedfs" --user "any:any" -X PUT http://localhost:8333/cortex-alertmanager
59
61
```
60
62
63
+
#### Configure Cortex Recording Rules and Alerting Rules
64
+
65
+
We can configure Cortex with [cortextool](https://github.com/cortexproject/cortex-tools/) to load [recording rules](https://prometheus.io/docs/prometheus/latest/configuration/recording_rules/) and [alerting rules](https://prometheus.io/docs/prometheus/latest/configuration/alerting_rules/). This is optional, but it is helpful to see how Cortex can be configured to manage rules and alerts.
66
+
67
+
```sh
68
+
# Configure recording rules for the cortex tenant (optional)
You can configure Alertmanager in [Grafana as well](http://localhost:3000/alerting/notifications?search=&alertmanager=Cortex%20Alertmanager).
82
+
83
+
There's a list of recording rules and alerts that should be visible in Grafana [here](http://localhost:3000/alerting/list?view=list&search=datasource:Cortex).
84
+
61
85
#### Explore
62
86
63
-
Grafana is configured to use Cortex as a data source. You can explore the data source in Grafana and query metrics. For example, this [explore](http://localhost:3000/explore?schemaVersion=1&panes=%7B%22au0%22:%7B%22datasource%22:%22P6693426190CB2316%22,%22queries%22:%5B%7B%22refId%22:%22A%22,%22expr%22:%22rate%28prometheus_remote_storage_samples_total%5B$__rate_interval%5D%29%22,%22range%22:true,%22instant%22:true,%22datasource%22:%7B%22type%22:%22prometheus%22,%22uid%22:%22P6693426190CB2316%22%7D,%22editorMode%22:%22builder%22,%22legendFormat%22:%22__auto%22,%22useBackend%22:false,%22disableTextWrap%22:false,%22fullMetaSearch%22:false,%22includeNullMetadata%22:false%7D%5D,%22range%22:%7B%22from%22:%22now-1h%22,%22to%22:%22now%22%7D%7D%7D&orgId=1) page is showing the rate of samples being sent to Cortex.
87
+
Grafana is configured to use Cortex as a data source. Grafana is also configured with [Cortex Dashboards](http://localhost:3000/dashboards?tag=cortex) to understand the state of the Cortex instance. The dashboards are generated from the cortex-jsonnet repository. There is a Makefile in the repository that can be used to update the dashboards.
88
+
89
+
```sh
90
+
# Update the dashboards (optional)
91
+
$ make
92
+
```
64
93
65
94
If everything is working correctly, then the metrics seen in Grafana were successfully sent from Prometheus to Cortex
66
95
via `remote_write`!
67
96
68
97
Other things to explore:
69
98
70
99
-[Cortex](http://localhost:9009) - Administrative interface for Cortex
71
-
- Try shutting down the [ingester](http://localhost:9009/ingester/shutdown) and see how it affects metric ingestion.
100
+
- Try shutting down the ingester, and see how it affects metric ingestion.
72
101
- Restart Cortex to bring the ingester back online, and see how Prometheus catches up.
73
102
- Does it affect the querying of metrics in Grafana?
74
103
-[Prometheus](http://localhost:9090) - Prometheus instance that is sending metrics to Cortex
0 commit comments