Scrape basic metrics from a VM and containers running in it for monitoring
- '--remoteWrite.url="<DEFINE_ME>"'
- '--remoteWrite.basicAuth.password="<DEFINE_ME>"'
- '--remoteWrite.basicAuth.username="<DEFINE_ME>"'
- '--remoteWrite.headers=X-Scope-OrgID:<DEFINE_ME>' # use for Grafana Mimir
Additionally, pay attention to your volume mount to ensure disk space is available.
external_labels: # add labels e.g.
machine_origin: my-machine
foo: bar
clients:
- url: http://<CHANGE_ME>/loki/api/v1/push
tenant_id: 1 # change me
external_labels:
foo: bar
basic_auth:
# The username to use for basic auth
username: "CHANGE_ME"
password: "CHANGE_ME"