Compare commits
2 Commits
master
...
5a493fc382
| Author | SHA1 | Date | |
|---|---|---|---|
|
5a493fc382
|
|||
|
8c2971ee6a
|
@@ -65,12 +65,6 @@ spec:
|
|||||||
enabled: true
|
enabled: true
|
||||||
existingSecret: grafana-ldap-toml
|
existingSecret: grafana-ldap-toml
|
||||||
|
|
||||||
sidecar:
|
|
||||||
datasources:
|
|
||||||
enabled: true
|
|
||||||
searchNamespace: ALL
|
|
||||||
labelValue: "1"
|
|
||||||
|
|
||||||
extraSecretMounts:
|
extraSecretMounts:
|
||||||
- name: postgres-app-mount
|
- name: postgres-app-mount
|
||||||
secretName: postgres-app
|
secretName: postgres-app
|
||||||
|
|||||||
@@ -3,7 +3,8 @@ kind: Kustomization
|
|||||||
namespace: loki
|
namespace: loki
|
||||||
resources:
|
resources:
|
||||||
- ./namespace.yaml
|
- ./namespace.yaml
|
||||||
- ./object-bucket-claim.yaml
|
- ./object-bucket-claim-chunks.yaml
|
||||||
|
- ./object-bucket-claim-ruler.yaml
|
||||||
- ./helm-repository.yaml
|
- ./helm-repository.yaml
|
||||||
- ./helm-release.yaml
|
- ./helm-release.yaml
|
||||||
|
|
||||||
@@ -14,9 +15,3 @@ configMapGenerator:
|
|||||||
- name: loki-values
|
- name: loki-values
|
||||||
files:
|
files:
|
||||||
- ./values.yaml
|
- ./values.yaml
|
||||||
- name: grafana-datasource
|
|
||||||
options:
|
|
||||||
labels:
|
|
||||||
grafana_datasource: "1"
|
|
||||||
files:
|
|
||||||
- ./loki-datasource.yaml
|
|
||||||
|
|||||||
@@ -1,8 +0,0 @@
|
|||||||
apiVersion: 1
|
|
||||||
datasources:
|
|
||||||
- name: Loki
|
|
||||||
type: loki
|
|
||||||
access: proxy
|
|
||||||
url: http://loki-gateway.loki.svc.cluster.local
|
|
||||||
uid: "loki"
|
|
||||||
jsonData: {}
|
|
||||||
@@ -1,7 +1,7 @@
|
|||||||
apiVersion: objectbucket.io/v1alpha1
|
apiVersion: objectbucket.io/v1alpha1
|
||||||
kind: ObjectBucketClaim
|
kind: ObjectBucketClaim
|
||||||
metadata:
|
metadata:
|
||||||
name: loki-bucket
|
name: chunks
|
||||||
spec:
|
spec:
|
||||||
generateBucketName: loki
|
generateBucketName: chunks
|
||||||
storageClassName: ceph-bucket
|
storageClassName: ceph-bucket
|
||||||
7
infra/loki/loki/object-bucket-claim-ruler.yaml
Normal file
7
infra/loki/loki/object-bucket-claim-ruler.yaml
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
apiVersion: objectbucket.io/v1alpha1
|
||||||
|
kind: ObjectBucketClaim
|
||||||
|
metadata:
|
||||||
|
name: ruler
|
||||||
|
spec:
|
||||||
|
generateBucketName: ruler
|
||||||
|
storageClassName: ceph-bucket
|
||||||
@@ -1,6 +1,22 @@
|
|||||||
|
global:
|
||||||
|
extraArgs:
|
||||||
|
- -config.expand-env=true
|
||||||
|
extraEnvFrom:
|
||||||
|
- secretRef:
|
||||||
|
name: chunks
|
||||||
|
prefix: CHUNKS_
|
||||||
|
- configMapRef:
|
||||||
|
name: chunks
|
||||||
|
prefix: CHUNKS_
|
||||||
|
- secretRef:
|
||||||
|
name: ruler
|
||||||
|
prefix: RULER_
|
||||||
|
- configMapRef:
|
||||||
|
name: ruler
|
||||||
|
prefix: RULER_
|
||||||
|
|
||||||
loki:
|
loki:
|
||||||
auth_enabled: false
|
auth_enabled: false
|
||||||
|
|
||||||
schemaConfig:
|
schemaConfig:
|
||||||
configs:
|
configs:
|
||||||
- from: "2024-04-01"
|
- from: "2024-04-01"
|
||||||
@@ -8,32 +24,33 @@ loki:
|
|||||||
object_store: s3
|
object_store: s3
|
||||||
schema: v13
|
schema: v13
|
||||||
index:
|
index:
|
||||||
prefix: index_
|
prefix: loki_index_
|
||||||
period: 24h
|
period: 24h
|
||||||
|
pattern_ingester:
|
||||||
|
enabled: true
|
||||||
limits_config:
|
limits_config:
|
||||||
split_queries_by_interval: "1h"
|
allow_structured_metadata: true
|
||||||
|
volume_enabled: true
|
||||||
retention_period: 672h # 28 days retention
|
retention_period: 672h # 28 days retention
|
||||||
query_scheduler:
|
querier:
|
||||||
max_outstanding_requests_per_tenant: 2048
|
max_concurrent: 4
|
||||||
|
|
||||||
storage:
|
storage:
|
||||||
type: s3
|
type: s3
|
||||||
bucketNames:
|
bucketNames:
|
||||||
chunks: "${BUCKET_NAME}"
|
chunks: "${CHUNKS_BUCKET_NAME}"
|
||||||
ruler: "${BUCKET_NAME}"
|
ruler: "${RULER_BUCKET_NAME}"
|
||||||
admin: "${BUCKET_NAME}"
|
|
||||||
s3:
|
s3:
|
||||||
# s3 URL can be used to specify the endpoint, access key, secret key, and bucket name this works well for S3 compatible storages or if you are hosting Loki on-premises and want to use S3 as the storage backend. Either use the s3 URL or the individual fields below (AWS endpoint, region, secret).
|
# s3 URL can be used to specify the endpoint, access key, secret key, and bucket name this works well for S3 compatible storages or if you are hosting Loki on-premises and want to use S3 as the storage backend. Either use the s3 URL or the individual fields below (AWS endpoint, region, secret).
|
||||||
# s3: s3://access_key:secret_access_key@custom_endpoint/bucket_name
|
# s3: s3://access_key:secret_access_key@custom_endpoint/bucket_name
|
||||||
# AWS endpoint URL
|
# AWS endpoint URL
|
||||||
endpoint: "${BUCKET_HOST}"
|
endpoint: "${CHUNKS_BUCKET_HOST}"
|
||||||
# AWS region where the S3 bucket is located
|
# AWS region where the S3 bucket is located
|
||||||
region: "${BUCKET_REGION}"
|
region: "${CHUNKS_BUCKET_REGION}"
|
||||||
# AWS secret access key
|
# AWS secret access key
|
||||||
secretAccessKey: "${AWS_SECRET_ACCESS_KEY}"
|
secretAccessKey: "${CHUNKS_SECRET_ACCESS_KEY}"
|
||||||
# AWS access key ID
|
# AWS access key ID
|
||||||
accessKeyId: "${AWS_ACCESS_KEY_ID}"
|
accessKeyId: "${CHUNKS_ACCESS_KEY_ID}"
|
||||||
# AWS signature version (e.g., v2 or v4)
|
# AWS signature version (e.g., v2 or v4)
|
||||||
# signatureVersion: <your-signature-version>
|
# signatureVersion: <your-signature-version>
|
||||||
# Forces the path style for S3 (true/false)
|
# Forces the path style for S3 (true/false)
|
||||||
@@ -42,34 +59,43 @@ loki:
|
|||||||
insecure: true
|
insecure: true
|
||||||
# HTTP configuration settings
|
# HTTP configuration settings
|
||||||
# http_config: {}
|
# http_config: {}
|
||||||
|
# NOTE: Normally these values are set from loki.storage, however we do not use the same credentials so we have to overwrite the values
|
||||||
|
rulerConfig:
|
||||||
|
storage:
|
||||||
|
type: s3
|
||||||
|
s3:
|
||||||
|
bucketnames: ${RULER_BUCKET_NAME}
|
||||||
|
endpoint: ${RULER_BUCKET_HOST}
|
||||||
|
region: ${RULER_BUCKET_REGION}
|
||||||
|
secret_access_key: ${RULER_SECRET_ACCESS_KEY}
|
||||||
|
access_key_id: ${RULER_ACCESS_KEY_ID}
|
||||||
|
s3forcepathstyle: true
|
||||||
|
insecure: true
|
||||||
|
|
||||||
|
deploymentMode: SimpleScalable
|
||||||
|
|
||||||
backend:
|
backend:
|
||||||
replicas: 2
|
replicas: 3
|
||||||
|
|
||||||
extraArgs:
|
# NOTE: There appears to be an error in the helm chart, it uses extraEnv instead of extraEnvFrom from global
|
||||||
- -config.expand-env=true
|
|
||||||
extraEnvFrom:
|
extraEnvFrom:
|
||||||
- secretRef:
|
- secretRef:
|
||||||
name: loki-bucket
|
name: chunks
|
||||||
|
prefix: CHUNKS_
|
||||||
- configMapRef:
|
- configMapRef:
|
||||||
name: loki-bucket
|
name: chunks
|
||||||
|
prefix: CHUNKS_
|
||||||
|
- secretRef:
|
||||||
|
name: ruler
|
||||||
|
prefix: RULER_
|
||||||
|
- configMapRef:
|
||||||
|
name: ruler
|
||||||
|
prefix: RULER_
|
||||||
read:
|
read:
|
||||||
replicas: 2
|
replicas: 3
|
||||||
|
|
||||||
extraArgs:
|
|
||||||
- -config.expand-env=true
|
|
||||||
extraEnvFrom:
|
|
||||||
- secretRef:
|
|
||||||
name: loki-bucket
|
|
||||||
- configMapRef:
|
|
||||||
name: loki-bucket
|
|
||||||
write:
|
write:
|
||||||
replicas: 2
|
replicas: 3
|
||||||
|
|
||||||
extraArgs:
|
# Disable minio storage
|
||||||
- -config.expand-env=true
|
minio:
|
||||||
extraEnvFrom:
|
enabled: false
|
||||||
- secretRef:
|
|
||||||
name: loki-bucket
|
|
||||||
- configMapRef:
|
|
||||||
name: loki-bucket
|
|
||||||
|
|||||||
Reference in New Issue
Block a user