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
- Update to Cortex v1.17.1
- Configure Seaweedfs auth (uploads were failing otherwise)
- Add some experiments to play with Cortex
- Automate Grafana datasource creation
- Remove Grafana auth to speed up getting started
- Set scrape interval to 15s in K8s for more data
Signed-off-by: Charlie Le <[email protected]>
Copy file name to clipboardExpand all lines: docs/getting-started/_index.md
+54-33Lines changed: 54 additions & 33 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -57,25 +57,27 @@ how this is configured.
57
57
58
58
```sh
59
59
# Create a bucket in SeaweedFS
60
-
curl -X PUT http://localhost:8333/cortex-bucket
60
+
curl --aws-sigv4 "aws:amz:local:seaweedfs" --user "any:any" -X PUT http://localhost:8333/cortex-bucket
61
61
```
62
62
63
-
#### Configure Grafana
63
+
#### Explore
64
64
65
-
1. Log into the Grafana instance at [http://localhost:3000](http://localhost:3000)
66
-
* login credentials are `username: admin` and `password: admin`
67
-
* There may be an additional screen on setting a new password. This can be skipped and is optional
68
-
1. Navigate to the `Data Sources` page
69
-
* Look for a gear icon on the left sidebar and select `Data Sources`
70
-
1. Add a new Prometheus Data Source
71
-
* Use `http://cortex:9009/api/prom` as the URL
72
-
* Click `Save & Test`
73
-
1. Go to `Metrics Explore` to query metrics
74
-
* Look for a compass icon on the left sidebar
75
-
* Click `Metrics` for a dropdown list of all the available metrics
65
+
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.
76
66
77
67
If everything is working correctly, then the metrics seen in Grafana were successfully sent from Prometheus to Cortex
78
-
via remote_write!
68
+
via `remote_write`!
69
+
70
+
Other things to explore:
71
+
72
+
-[Cortex](http://localhost:9009) - Administrative interface for Cortex
73
+
- Try shutting down the [ingester](http://localhost:9009/ingester/shutdown) and see how it affects metric ingestion.
74
+
- Restart Cortex to bring the ingester back online, and see how Prometheus catches up.
75
+
- Does it affect the querying of metrics in Grafana?
76
+
-[Prometheus](http://localhost:9090) - Prometheus instance that is sending metrics to Cortex
77
+
- Try querying the metrics in Prometheus.
78
+
- Are they the same as what you see in Cortex?
79
+
-[Grafana](http://localhost:3000) - Grafana instance that is visualizing the metrics.
80
+
- Try creating a new dashboard and adding a new panel with a query to Cortex.
1. Log into the Grafana instance at [http://localhost:3000](http://localhost:3000)
181
-
1. Use the username `admin` and the password from the Kubernetes secret
182
-
1. Navigate to the [Data Sources](http://localhost:3000/connections/datasources) page
183
-
1. Add a new Prometheus Data Source
184
-
1. Use `http://cortex-nginx/api/prom` as the URL
185
-
1. Click `Save & Test`
186
-
1. Go to [Explore](http://localhost:3000/explore) to query metrics
187
-
1. Click `Metrics` for a dropdown list of all the available metrics
177
+
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.
178
+
188
179
189
180
If everything is working correctly, then the metrics seen in Grafana were successfully sent from Prometheus to Cortex
190
181
via remote_write!
191
182
183
+
Other things to explore:
184
+
185
+
```sh
186
+
# Port forward to the ingester to see the administrative interface for Cortex:
0 commit comments