Skip to content
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

Create a custom exporter that ingests logs before shipping to Loki #44

Open
nodiesorg opened this issue Feb 18, 2023 · 2 comments
Open
Assignees

Comments

@nodiesorg
Copy link
Collaborator

nodiesorg commented Feb 18, 2023

  • What is the current behavior?
    Right now, we use Loki to query and display metrics using log aggregation. However, this could be a bottleneck at scale depending on the amount of logs we are ingesting.

One can argue we're not really using the right tool for our use case either which is to show metrics. Log aggregation may be overkill for this.

Instead, what if we built a customer exporter (ingestor) that scrapes and outputs time-series metrics based off each log? This will allow for a really responsive metric querying and visualization, while still relying on Loki for indepth log analysis.

Notes

Need to baseline the performance and determine if the benefits are worth it.

How much can an ingestor/exporter scale ingesting the logs?
Can we use grok_exporter ?
Is this an anti pattern to what Loki is suppose to be? Or can we use both? One for metrics, one for indepth debugging.
Does promtail/loki already support something like this so we don't have to spin up another process

@nodiesBlade
Copy link
Collaborator

image

feedback

@nodiesBlade
Copy link
Collaborator

nodiesBlade commented Apr 20, 2023

Instead of wasting a lot of write IO to parse logs, we're descoping this. I worked with Jorge from Poktscan on the next GeoMesh update which should include a lot more verbose metrics being emitted. This along side a general-purpose HAProxy / Nginx dashboard should be more powerful then our existing solution. See below

image

Loki can still be continued to be used for log aggregation and tracing, but we'll stop using them for visualization purposes.
https://github.com/baaspoolsllc/nodies_monitoring/tree/yuppie/863g7wjtw working branch with the new dashboard, but this is TBD on Geomesh update which should result in curated metrics

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants