File tree Expand file tree Collapse file tree 9 files changed +980
-13
lines changed Expand file tree Collapse file tree 9 files changed +980
-13
lines changed Original file line number Diff line number Diff line change 1
1
CORTEX_VERSION = v1.19.0
2
2
GRAFANA_VERSION = 10.4.2
3
- PROMETHEUS_VERSION = v2.51.2
3
+ PROMETHEUS_VERSION = v3.2.1
4
4
SEAWEEDFS_VERSION = 3.67
5
+ PERSES_VERSION = v0.49-distroless-debug
Original file line number Diff line number Diff line change @@ -41,7 +41,8 @@ This example uses [Docker Compose](https://docs.docker.com/compose/) to set up:
41
41
1 . An instance of [ SeaweedFS] ( https://github.com/seaweedfs/seaweedfs/ ) for S3-compatible object storage
42
42
1 . An instance of [ Cortex] ( https://cortexmetrics.io/ ) to receive metrics.
43
43
1 . An instance of [ Prometheus] ( https://prometheus.io/ ) to send metrics to Cortex.
44
- 1 . An instance of [ Grafana] ( https://grafana.com/ ) to visualize the metrics.
44
+ 1 . An instance of [ Perses] ( https://perses.dev ) for latest trend on dashboarding
45
+ 1 . An instance of [ Grafana] ( https://grafana.com/ ) for legacy dashboarding
45
46
46
47
#### Instructions
47
48
@@ -53,14 +54,7 @@ $ cd cortex/docs/getting-started
53
54
##### Start the services
54
55
55
56
``` sh
56
- # Start SeaweedFS to emulate S3 storage for Cortex.
57
- $ docker-compose up seaweedfs -d --wait
58
- # Create buckets in SeaweedFS.
59
- $ for bucket in cortex-blocks cortex-ruler cortex-alertmanager; do
60
- curl --aws-sigv4 " aws:amz:local:seaweedfs" --user " any:any" -X PUT http://localhost:8333/$bucket
61
- done
62
- # Start the remaining services.
63
- $ docker-compose up -d --wait
57
+ $ docker compose up -d
64
58
```
65
59
66
60
We can now access the following services:
@@ -123,7 +117,7 @@ Other things to explore:
123
117
### Clean up
124
118
125
119
``` sh
126
- $ docker- compose down
120
+ $ docker compose down -v
127
121
```
128
122
129
123
## Microservice Mode
Original file line number Diff line number Diff line change 3
3
# and development.
4
4
5
5
# https://cortexmetrics.io/docs/configuration/configuration-file/#supported-contents-and-default-values-of-the-config-file
6
- target : all,compactor,alertmanager
6
+ target : all
7
7
8
8
# Disable the requirement that every request to Cortex has an
9
9
# X-Scope-OrgID header. `fake` will be substituted in instead.
@@ -100,4 +100,4 @@ alertmanager_storage:
100
100
backend : s3
101
101
s3 :
102
102
<< : *s3
103
- bucket_name : cortex-alertmanager
103
+ bucket_name : cortex-alertmanager
Original file line number Diff line number Diff line change @@ -39,6 +39,16 @@ services:
39
39
- ./dashboards/:/var/lib/grafana/dashboards/:ro
40
40
ports :
41
41
- " 3000:3000"
42
+ perses :
43
+ image : persesdev/perses:${PERSES_VERSION}
44
+ command : " --config=/etc/perses/config/config.yaml"
45
+ ports :
46
+ - " 8080:8080"
47
+ volumes :
48
+ - ./perses/config.yaml:/etc/perses/config/config.yaml:ro
49
+ - ./perses/datasource.yaml:/etc/perses/resources/datasource.yaml:ro
50
+ - ./perses/project.yaml:/etc/perses/resources/project.yaml:ro
51
+ - ./perses/dashboards/cortex-writes.yaml:/etc/perses/resources/cortex-writes.yaml:ro
42
52
prometheus :
43
53
image : prom/prometheus:${PROMETHEUS_VERSION}
44
54
command :
@@ -55,8 +65,11 @@ services:
55
65
- -s3.config=/workspace/seaweedfs-config.json
56
66
ports :
57
67
- " 8333:8333"
68
+ post_start :
69
+ - command : /seaweedfs-init.sh
58
70
volumes :
59
71
- ./seaweedfs-config.json:/workspace/seaweedfs-config.json:ro
72
+ - ./seaweedfs-init.sh:/seaweedfs-init.sh:ro
60
73
healthcheck :
61
74
test : wget -qO- http://127.0.0.1:8333/status
62
75
interval : 10s
Original file line number Diff line number Diff line change
1
+ security :
2
+ readonly : false
3
+ enable_auth : false
4
+ cookie :
5
+ same_site : lax
6
+ secure : false
7
+
8
+ database :
9
+ file :
10
+ extension : yaml
11
+ folder : /perses
12
+
13
+ schemas :
14
+ datasources_path : /etc/perses/cue/schemas/datasources
15
+ interval : 5m
16
+ panels_path : /etc/perses/cue/schemas/panels
17
+ queries_path : /etc/perses/cue/schemas/queries
18
+ variables_path : /etc/perses/cue/schemas/variables
19
+ provisioning :
20
+ folders :
21
+ - /etc/perses/resources
You can’t perform that action at this time.
0 commit comments