Skip to content

Instantly share code, notes, and snippets.

@iamabhishek-dubey
Created March 12, 2021 11:06
Show Gist options
  • Star 5 You must be signed in to star a gist
  • Fork 4 You must be signed in to fork a gist
  • Save iamabhishek-dubey/ff6d49fc3d0bfda81d1f29e3869d522f to your computer and use it in GitHub Desktop.
Save iamabhishek-dubey/ff6d49fc3d0bfda81d1f29e3869d522f to your computer and use it in GitHub Desktop.
image:
repository: quay.io/cortexproject/cortex
tag: v1.6.0
pullPolicy: IfNotPresent
clusterDomain: cluster.local
tags:
blocks-storage-memcached: false
ingress:
enabled: false
annotations:
kubernetes.io/ingress.class: nginx
hosts:
- host: chart-example.local
http:
paths:
- path: /
tls: []
serviceAccount:
create: true
name: cortex
annotations: {}
useExternalConfig: false
externalConfigSecretName: 'secret-with-config.yaml'
externalConfigVersion: '0'
config:
auth_enabled: false
api:
prometheus_http_prefix: '/prometheus'
ingester:
max_transfer_retries: 0
lifecycler:
join_after: 0s
final_sleep: 0s
num_tokens: 512
ring:
replication_factor: 1
kvstore:
store: consul
prefix: 'collectors/'
consul:
host: 'consul-server:8500'
http_client_timeout: '20s'
consistent_reads: true
store_gateway:
sharding_enabled: true
sharding_ring:
kvstore:
store: consul
prefix: 'collectors/'
consul:
host: 'consul-server:8500'
http_client_timeout: '20s'
consistent_reads: true
limits:
enforce_metric_name: false
reject_old_samples: true
reject_old_samples_max_age: 168h
ingestion_rate: 500000
ingestion_burst_size: 500000
max_series_per_metric: 500000
schema:
configs:
- from: 2020-11-01
store: cassandra
object_store: cassandra
schema: v10
index:
prefix: index_
period: 168h
chunks:
prefix: chunks_
period: 168h
server:
http_listen_port: 8080
grpc_listen_port: 9095
grpc_server_max_recv_msg_size: 104857600
grpc_server_max_send_msg_size: 104857600
grpc_server_max_concurrent_streams: 1000
ingester_client:
grpc_client_config:
max_recv_msg_size: 104857600
max_send_msg_size: 104857600
blocks_storage:
backend: s3
s3:
bucket_name: cortex-s3storage-bucket-name-changed
endpoint: s3.dualstack.us-east-1.amazonaws.com
access_key_id: <access_key>
secret_access_key: <secret_access_key>
bucket_store:
sync_dir: "/data"
tsdb:
dir: "/data"
storage:
engine: blocks
index_queries_cache_config:
memcached:
expiration: 1h
memcached_client:
timeout: 1s
chunk_store:
max_look_back_period: 0s
chunk_cache_config:
memcached:
expiration: 1h
memcached_client:
timeout: 1s
table_manager:
retention_deletes_enabled: false
retention_period: 0s
distributor:
shard_by_all_labels: true
pool:
health_check_ingesters: true
memberlist:
join_members: []
querier:
active_query_tracker_dir: /data/cortex/querier
query_ingesters_within: 12h
query_range:
split_queries_by_interval: 24h
align_queries_with_step: true
cache_results: true
results_cache:
cache:
memcached:
expiration: 1h
memcached_client:
timeout: 1s
ruler:
enable_alertmanager_discovery: false
alertmanager:
external_url: '/api/prom/alertmanager'
frontend:
log_queries_longer_than: 10s
compress_responses: true
rbac:
create: true
pspEnabled: true
alertmanager:
replicas: 1
statefulSet:
enabled: false
service:
annotations: {}
labels: {}
serviceMonitor:
enabled: false
resources:
limits:
cpu: 200m
memory: 256Mi
requests:
cpu: 10m
memory: 32Mi
extraArgs:
{}
podLabels: {}
podAnnotations:
prometheus.io/scrape: 'true'
prometheus.io/port: 'http-metrics'
nodeSelector: {}
affinity: {}
annotations: {}
persistence:
subPath:
persistentVolume:
enabled: true
annotations: {}
accessModes:
- ReadWriteOnce
size: 2Gi
subPath: ''
livenessProbe:
httpGet:
path: /ready
port: http-metrics
initialDelaySeconds: 45
readinessProbe:
httpGet:
path: /ready
port: http-metrics
initialDelaySeconds: 45
securityContext:
{}
tolerations: []
podDisruptionBudget: {}
strategy:
type: RollingUpdate
rollingUpdate:
maxSurge: 0
maxUnavailable: 1
statefulStrategy:
type: RollingUpdate
terminationGracePeriodSeconds: 60
initContainers: []
extraContainers: []
extraVolumes: []
extraVolumeMounts: []
extraPorts: []
env: []
distributor:
replicas: 2
service:
annotations: {}
labels: {}
serviceMonitor:
enabled: false
resources:
limits:
cpu: 500m
memory: 1Gi
requests:
cpu: 200m
memory: 512Mi
extraArgs:
{}
podLabels: {}
podAnnotations:
prometheus.io/scrape: 'true'
prometheus.io/port: 'http-metrics'
nodeSelector: {}
affinity:
podAntiAffinity:
preferredDuringSchedulingIgnoredDuringExecution:
- weight: 100
podAffinityTerm:
labelSelector:
matchExpressions:
- key: target
operator: In
values:
- distributor
topologyKey: 'kubernetes.io/hostname'
annotations: {}
persistence:
subPath:
livenessProbe:
httpGet:
path: /ready
port: http-metrics
initialDelaySeconds: 45
readinessProbe:
httpGet:
path: /ready
port: http-metrics
initialDelaySeconds: 45
securityContext: {}
strategy:
type: RollingUpdate
rollingUpdate:
maxSurge: 0
maxUnavailable: 1
terminationGracePeriodSeconds: 60
tolerations: []
podDisruptionBudget: {}
initContainers: []
extraContainers: []
extraVolumes: []
extraVolumeMounts: []
extraPorts: []
env: []
ingester:
replicas: 2
statefulSet:
enabled: false
service:
annotations: {}
labels: {}
serviceMonitor:
enabled: false
resources:
limits:
cpu: 1
memory: 2Gi
requests:
cpu: 100m
memory: 128Mi
extraArgs:
{}
podLabels: {}
podAnnotations:
prometheus.io/scrape: 'true'
prometheus.io/port: 'http-metrics'
nodeSelector: {}
affinity:
podAntiAffinity:
preferredDuringSchedulingIgnoredDuringExecution:
- weight: 100
podAffinityTerm:
labelSelector:
matchExpressions:
- key: target
operator: In
values:
- ingester
topologyKey: 'kubernetes.io/hostname'
annotations: {}
persistence:
subPath:
persistentVolume:
enabled: true
annotations: {}
accessModes:
- ReadWriteOnce
size: 2Gi
subPath: ''
livenessProbe:
httpGet:
path: /ready
port: http-metrics
scheme: HTTP
initialDelaySeconds: 180
periodSeconds: 30
successThreshold: 1
timeoutSeconds: 1
readinessProbe:
httpGet:
path: /ready
port: http-metrics
initialDelaySeconds: 60
securityContext: {}
strategy:
type: RollingUpdate
rollingUpdate:
maxSurge: 0
maxUnavailable: 1
statefulStrategy:
type: RollingUpdate
terminationGracePeriodSeconds: 240
tolerations: []
podDisruptionBudget: {}
initContainers: []
extraContainers: []
extraVolumes: []
extraVolumeMounts: []
extraPorts: []
env: []
ruler:
replicas: 1
service:
annotations: {}
labels: {}
serviceMonitor:
enabled: false
resources:
limits:
cpu: 200m
memory: 256Mi
requests:
cpu: 10m
memory: 32Mi
extraArgs:
{}
podLabels: {}
podAnnotations:
prometheus.io/scrape: 'true'
prometheus.io/port: 'http-metrics'
nodeSelector: {}
affinity: {}
annotations: {}
persistence:
subPath:
livenessProbe:
httpGet:
path: /ready
port: http-metrics
initialDelaySeconds: 45
readinessProbe:
httpGet:
path: /ready
port: http-metrics
initialDelaySeconds: 45
securityContext: {}
strategy:
type: RollingUpdate
rollingUpdate:
maxSurge: 0
maxUnavailable: 1
terminationGracePeriodSeconds: 180
tolerations: []
podDisruptionBudget: {}
initContainers: []
extraContainers: []
extraVolumes: []
extraVolumeMounts: []
extraPorts: []
env: []
querier:
replicas: 2
service:
annotations: {}
labels: {}
serviceMonitor:
enabled: false
resources:
limits:
cpu: 1
memory: 1Gi
requests:
cpu: 50m
memory: 128Mi
extraArgs:
{}
podLabels: {}
podAnnotations:
prometheus.io/scrape: 'true'
prometheus.io/port: 'http-metrics'
nodeSelector: {}
affinity:
podAntiAffinity:
preferredDuringSchedulingIgnoredDuringExecution:
- weight: 100
podAffinityTerm:
labelSelector:
matchExpressions:
- key: target
operator: In
values:
- querier
topologyKey: 'kubernetes.io/hostname'
annotations: {}
persistence:
subPath:
livenessProbe:
httpGet:
path: /ready
port: http-metrics
initialDelaySeconds: 45
readinessProbe:
httpGet:
path: /ready
port: http-metrics
initialDelaySeconds: 45
securityContext: {}
strategy:
type: RollingUpdate
rollingUpdate:
maxSurge: 0
maxUnavailable: 1
terminationGracePeriodSeconds: 180
tolerations: []
podDisruptionBudget: {}
initContainers: []
extraContainers: []
extraVolumes: []
extraVolumeMounts: []
extraPorts: []
env: []
query_frontend:
replicas: 1
service:
annotations: {}
labels: {}
serviceMonitor:
enabled: false
resources:
limits:
cpu: 500m
memory: 256Mi
requests:
cpu: 10m
memory: 32Mi
extraArgs:
{}
podLabels: {}
podAnnotations:
prometheus.io/scrape: 'true'
prometheus.io/port: 'http-metrics'
nodeSelector: {}
affinity:
podAntiAffinity:
preferredDuringSchedulingIgnoredDuringExecution:
- weight: 100
podAffinityTerm:
labelSelector:
matchExpressions:
- key: target
operator: In
values:
- query-frontend
topologyKey: 'kubernetes.io/hostname'
annotations: {}
persistence:
subPath:
livenessProbe:
httpGet:
path: /ready
port: http-metrics
initialDelaySeconds: 45
readinessProbe:
httpGet:
path: /ready
port: http-metrics
initialDelaySeconds: 45
securityContext: {}
strategy:
type: RollingUpdate
rollingUpdate:
maxSurge: 0
maxUnavailable: 1
terminationGracePeriodSeconds: 180
tolerations: []
podDisruptionBudget: {}
initContainers: []
extraContainers: []
extraVolumes: []
extraVolumeMounts: []
extraPorts: []
env: []
table_manager:
replicas: 1
service:
annotations: {}
labels: {}
serviceMonitor:
enabled: false
resources:
limits:
cpu: 500m
memory: 512Mi
requests:
cpu: 10m
memory: 32Mi
extraArgs:
{}
podLabels: {}
podAnnotations:
prometheus.io/scrape: 'true'
prometheus.io/port: 'http-metrics'
nodeSelector: {}
affinity: {}
annotations: {}
persistence:
subPath:
livenessProbe:
httpGet:
path: /ready
port: http-metrics
initialDelaySeconds: 45
readinessProbe:
httpGet:
path: /ready
port: http-metrics
initialDelaySeconds: 45
securityContext: {}
strategy:
type: RollingUpdate
rollingUpdate:
maxSurge: 0
maxUnavailable: 1
terminationGracePeriodSeconds: 180
tolerations: []
podDisruptionBudget: {}
initContainers: []
extraContainers: []
extraVolumes: []
extraVolumeMounts: []
extraPorts: []
env: []
configs:
replicas: 1
service:
annotations: {}
labels: {}
serviceMonitor:
enabled: false
resources:
limits:
cpu: 300m
memory: 256Mi
requests:
cpu: 10m
memory: 32Mi
extraArgs:
{}
podLabels: {}
podAnnotations:
prometheus.io/scrape: 'true'
prometheus.io/port: 'http-metrics'
nodeSelector: {}
affinity: {}
annotations: {}
persistence:
subPath:
livenessProbe:
httpGet:
path: /ready
port: http-metrics
initialDelaySeconds: 45
readinessProbe:
httpGet:
path: /ready
port: http-metrics
initialDelaySeconds: 45
securityContext: {}
strategy:
type: RollingUpdate
rollingUpdate:
maxSurge: 0
maxUnavailable: 1
terminationGracePeriodSeconds: 180
tolerations: []
podDisruptionBudget: {}
initContainers: []
extraContainers: []
extraVolumes: []
extraVolumeMounts: []
extraPorts: []
env: []
nginx:
enabled: true
replicas: 2
http_listen_port: 80
config:
dnsResolver: kube-dns.kube-system.svc.cluster.local
image:
repository: nginx
tag: 1.17
pullPolicy: IfNotPresent
service:
annotations: {}
labels: {}
serviceMonitor:
enabled: false
resources: {}
extraArgs:
{}
podLabels: {}
podAnnotations:
prometheus.io/scrape: ''
prometheus.io/port: 'http-metrics'
nodeSelector: {}
affinity: {}
annotations: {}
persistence:
subPath:
livenessProbe:
httpGet:
path: /healthz
port: http-metrics
initialDelaySeconds: 10
readinessProbe:
httpGet:
path: /healthz
port: http-metrics
initialDelaySeconds: 10
securityContext: {}
strategy:
type: RollingUpdate
rollingUpdate:
maxSurge: 0
maxUnavailable: 1
terminationGracePeriodSeconds: 10
tolerations: []
podDisruptionBudget: {}
initContainers: []
extraContainers: []
extraVolumes: []
extraVolumeMounts: []
extraPorts: []
env: []
store_gateway:
replicas: 1
service:
annotations: {}
labels: {}
serviceMonitor:
enabled: false
resources: {}
extraArgs:
{}
podLabels: {}
podAnnotations:
prometheus.io/scrape: 'true'
prometheus.io/port: 'http-metrics'
nodeSelector: {}
affinity:
podAntiAffinity:
preferredDuringSchedulingIgnoredDuringExecution:
- weight: 100
podAffinityTerm:
labelSelector:
matchExpressions:
- key: target
operator: In
values:
- store-gateway
topologyKey: 'kubernetes.io/hostname'
annotations: {}
persistentVolume:
enabled: true
annotations: {}
accessModes:
- ReadWriteOnce
size: 2Gi
subPath: ''
livenessProbe:
httpGet:
path: /ready
port: http-metrics
scheme: HTTP
initialDelaySeconds: 180
periodSeconds: 30
successThreshold: 1
timeoutSeconds: 1
readinessProbe:
httpGet:
path: /ready
port: http-metrics
initialDelaySeconds: 60
securityContext: {}
strategy:
type: RollingUpdate
terminationGracePeriodSeconds: 240
tolerations: []
podDisruptionBudget: {}
initContainers: []
extraContainers: []
extraVolumes: []
extraVolumeMounts: []
extraPorts: []
env: []
compactor:
enabled: true
replicas: 1
service:
annotations: {}
labels: {}
serviceMonitor:
enabled: false
resources: {}
extraArgs:
{}
podLabels: {}
podAnnotations:
prometheus.io/scrape: 'true'
prometheus.io/port: 'http-metrics'
nodeSelector: {}
affinity:
podAntiAffinity:
preferredDuringSchedulingIgnoredDuringExecution:
- weight: 100
podAffinityTerm:
labelSelector:
matchExpressions:
- key: target
operator: In
values:
- compactor
topologyKey: 'kubernetes.io/hostname'
annotations: {}
persistentVolume:
enabled: true
annotations: {}
accessModes:
- ReadWriteOnce
size: 2Gi
subPath: ''
livenessProbe:
httpGet:
path: /ready
port: http-metrics
scheme: HTTP
initialDelaySeconds: 180
periodSeconds: 30
successThreshold: 1
timeoutSeconds: 1
readinessProbe:
httpGet:
path: /ready
port: http-metrics
initialDelaySeconds: 60
securityContext: {}
strategy:
type: RollingUpdate
terminationGracePeriodSeconds: 240
tolerations: []
podDisruptionBudget: {}
initContainers: []
extraContainers: []
extraVolumes: []
extraVolumeMounts: []
extraPorts: []
env: []
memcached:
enabled: false
memcached-index-read:
enabled: false
memcached-index-write:
enabled: false
memcached-frontend:
enabled: false
configsdb_postgresql:
enabled: false
@babvin
Copy link

babvin commented Jun 8, 2023

Can you please share the latest values getting below errors
kubectl logs -f cortex-alertmanager-89c49579b-2qrdz -n cortex
error loading config from /etc/cortex/cortex.yaml: Error parsing config file: yaml: unmarshal errors:
line 21: field chunk_store not found in type cortex.Config
line 33: field compress_responses not found in type frontend.CombinedFrontendConfig
line 50: field max_transfer_retries not found in type ingester.Config
line 86: field schema not found in type cortex.Config
line 106: field index_queries_cache_config not found in type storage.Config
line 121: field table_manager not found in type cortex.Config

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment