-
Notifications
You must be signed in to change notification settings - Fork 1.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Loki + Kubernetes labels question #2710
Comments
this is confusing, im also having troubles running loki integration with grafana cloud |
From the
We're currently working on a new integration with Kubernetes! Please take a look #2653 - it will be shipping soon. If you can't wait, you can try a development build, for instance from here: #2653 (comment). With our new implementation, you'll be able to configure Vector like this: data_dir = "/var/lib/vector"
[sources.kubernetes_logs]
type = "kubernetes_logs"
[sinks.loki]
type = "loki"
inputs = ["kubernetes_logs"]
endpoint = "http://loki.loki.svc.cluster.local:3100"
encoding.codec = "json"
batch.max_events = 10000
[sinks.loki.labels]
file = "{{ file }}"
stream = "{{ stream }}"
source_type = "{{ source_type }}"
k8s_pod_namespace = "{{ kubernetes.pod_namespace }}"
k8s_pod_name = "{{ kubernetes.pod_name }}"
k8s_pod_uid = "{{ kubernetes.pod_uid }}" |
I got the deployment working using the latest from the Here is my config:
here is the log with backtrace:
|
I was able to reproduce this issue on my cluster |
It's an issue with loki sink, I created #3006 to track it. |
Hey! I've been trying to setup Vector on my cluster, but am struggling with the config as it seems various resources are outdated, or unclear as to how to approach Loki and Kubernetes.
Loki config:
The output of running this is:
What sort of labels should I be putting the config?
How do I extract k8s labels and ship them to Loki?
See Loki's
fluent-bit
config for what sorts of labels (I assume) should be added.The text was updated successfully, but these errors were encountered: