squeakywheel/cortex
Cortex provides horizontally scalable, highly available, multi-tenant, long term storage for Prometheus.
Read more on the Cortex website.
1.4.0-focal
, 1.4.0
, 1.4-focal
, 1.4
, 1-focal
, 1
, focal
, beta
- /!\ this is a beta releaseamd64
, arm64
, ppc64el
, s390x
$ docker run -d --name cortex -p 32709:9009 -e TZ=UTC squeakywheel/cortex:edge
You can verify that cortex is running by visiting http://localhost:32709 .
Parameters
Parameter | Description |
---|---|
-e TZ=UTC | Timezone, e.g. Europe/London . |
-p 32709:9009 | Expose cortex on localhost:32709 . |
-v /my/local/cortex.yaml:/etc/cortex/cortex.yaml | Mount local configuration file cortex.yaml (download this example file). |
Testing/Debugging
In case you need to debug what it is happening with the container you can run docker logs <name_of_the_container>
. But if you want to get access to an interactive shell run:
$ docker exec -it <name_of_the_container> /bin/bash
You can use your favorite Kubernetes distribution; if you don't have one, consider installing MicroK8s.
With microk8s running, enable the dns
and storage
add-ons:
$ microk8s enable dns storage
Use the sample deployment yaml provided here.
# cortex-deployment.yml
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: cortex-deployment
spec:
replicas: 1
selector:
matchLabels:
app: cortex
template:
metadata:
labels:
app: cortex
spec:
containers:
- name: cortex
image: squeakywheel/cortex:edge
ports:
- containerPort: 9009
name: cortex
protocol: TCP
---
apiVersion: v1
kind: Service
metadata:
name: cortex-service
spec:
type: NodePort
selector:
app: cortex
ports:
- protocol: TCP
port: 9009
targetPort: 9009
nodePort: 32709
name: cortex
$ microk8s kubectl apply -f cortex-deployment.yml
If you find a bug in our image or want to request a specific feature file a bug here:
https://bugs.launchpad.net/ubuntu-docker-images/+filebug
In the title of the bug add cortex: <reason>
.
Make sure to include:
<tag>
with the one you used to run the image:$ docker images --no-trunc --quiet squeakywheel/cortex:<tag>
docker pull squeakywheel/cortex