Skip to content

Instantly share code, notes, and snippets.

@tapih
Last active September 12, 2019 00:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tapih/cc90368b55aaa309650aac41594b516f to your computer and use it in GitHub Desktop.
Save tapih/cc90368b55aaa309650aac41594b516f to your computer and use it in GitHub Desktop.
Loki Demo Not on Kubernetes
kind: Cluster
apiVersion: kind.sigs.k8s.io/v1alpha3
kubeadmConfigPatches:
- |
apiVersion: kubeadm.k8s.io/v1beta1
kind: ClusterConfiguration
metadata:
name: config
kubernetesVersion: v1.14.3
networking:
serviceSubnet: 10.0.0.0/16
nodes:
- role: control-plane
- role: worker
- role: worker
auth_enabled: false
server:
http_listen_port: 3100
ingester:
lifecycler:
address: 127.0.0.1
ring:
kvstore:
store: inmemory
replication_factor: 1
final_sleep: 0s
chunk_idle_period: 5m
chunk_retain_period: 30s
schema_config:
configs:
- from: 2018-04-15
store: boltdb
object_store: filesystem
schema: v9
index:
prefix: index_
period: 168h
storage_config:
boltdb:
directory: /tmp/loki/index
filesystem:
directory: /tmp/loki/chunks
limits_config:
enforce_metric_name: false
reject_old_samples: true
reject_old_samples_max_age: 168h
chunk_store_config:
max_look_back_period: 0
table_manager:
retention_deletes_enabled: false
retention_period: 0
positions:
filename: /tmp/positions.yaml
server:
http_listen_port: 9080
grpc_listen_port: 0
client:
url: http://localhost:3100/api/prom/push
scrape_configs:
- job_name: system
static_configs:
- targets:
- localhost
labels:
job: varlogs
__path__: /var/log/*.log
- job_name: journal
journal:
path: /var/log/journal
labels:
job: systemd-journal
relabel_configs:
- source_labels: ['__journal__systemd_unit']
target_label: 'unit'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment