-
Notifications
You must be signed in to change notification settings - Fork 11
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
Latest/edge is not collecting logs for OpenSearch snap #226
Comments
Another thing that is hitting is that if I try to go back to
|
Thanks! Moved to top of backlog. I wonder if The v2 vs v1 is regarding metadata schema, because we switched to consolidated charmcraft.yaml. We didn't realize at the time that it's "irreversible". |
I'm looking into this and trying to reproduce. If the empty value matches everything, we can simply not add the |
I tried to reproduce this and wasn't able to. @gabrielcocenza could you provide a To share the agent logs, you can |
This is the bundle: https://pastebin.canonical.com/p/C2xqFD9Yt4/ The logs are: https://pastebin.canonical.com/p/BCXc5PQ4HC/ Edit: the bundle is using grafana-agent stable. It's when refreshed to use the edge that the error will show |
I tried reproducing this with Zookeeper, even refreshing from This leads me to believe the issue in the integration with Opensearch. Testing
|
@lucabello this query that you shared works indeed and I can see the logs. The query that I was doing before was: Then after changing to latest/edge, I couldn't find it anymore: So, I cannot find a file like Is this an expected behavior? Was I doing a weird query? |
I haven't looked into this, but perhaps it's related to the diff you posted? - __path__: /snap/grafana-agent/51/shared-logs/opensearch/**
+ __path__: /var/snap/opensearch/common/var/log/opensearch/** ...because now the default is classically confined gagent snap. |
As we figured out in a call with @gabrielcocenza, there is no bug. The reason you can't see the log files under the If you want to read more about why, here's a Discourse post from Jose! |
Bug Description
Playing around with OpenSearch and grafana-agent, I discovered that latest/edge is not forwarding logs to Loki, but latest/stable is working as expected.
I'm not sure if it's a misconfiguration on grafana-agent or in OpenSearch side....
Checking the difference of
/etc/grafana-agent.yaml
from stable (1.yaml) to edge (2.yaml)The folder for logs are protected with
770
. Not sure if grafana-agent will be able to read from here:To Reproduce
1 - Deploy COS-lite, deploy Opensearch and grafana-agent on stable
2 - See that snap logs appears on Grafana
3 - Change to grafana-agent on edge
4 - Logs are not propagated anymore
Environment
I've used lxd cloud for Opensearch and microk8s for COS.
Applications were using base 22.04
The text was updated successfully, but these errors were encountered: