eeddaann / fluent-plugin-loki Goto Github PK
View Code? Open in Web Editor NEWFluntd output plugin to Grafana Loki
License: Apache License 2.0
Fluntd output plugin to Grafana Loki
License: Apache License 2.0
Hi,
Is this plugin could be use with any input plugin from fluentd?
Using for example the syslog input and Loki output?
How the labels are added if not docker logging driver?
Thanks
Maybe I am mistaken, but shouldn't the @type
line in the README.md file be loki
instead of http
?
I have not used this plugin, I was trying to understand how to use it, and I still am not sure if there's that mistake or I am missing something big.
Configuration File Details
Fluentd
File: /etc/td-agent/td-agent.conf
<match huge.log>
@type loki
format json
url "http://localhost:3100"
username test
password test
<buffer>
@type memory
chunk_limit_size 8m
compress gzip
</buffer>
flush_at_shutdown true
flush_mode interval
flush_interval 5s
flush_thread_count 10
extra_labels {"job":"huge.log", "host":"workstation_hl_new", "agent":"fluentd_hl_new" }
<label>
filename
</label>
</match>
Loki
File: loki-local-config.yaml
auth_enabled: true
Grafana:
Under loki datasource Basic Auth Details given
Expected:
Able to communicate through Authentication.
Actual Error in Grafana
logger=context userId=1 orgId=1 uname=admin t=2022-11-29T14:56:15.50091764+05:30 level=error msg="Failed to call resource" error="no org id\n" traceID=
logger=context userId=1 orgId=1 uname=admin t=2022-11-29T14:56:15.501022502+05:30 level=error msg="Request Completed" method=GET path=/api/datasources/5/resources/labels status=500 remote_addr=[::1] time_ms=1 duration=1.690432ms size=51 referer=http://localhost:3000/datasources/edit/EWm6GTdVz handler=/api/datasources/:id/resources/*
``
Hi @eeddaann
we appreciate the work you do and open sourcing it! Unfortunately, there is a naming conflict with the fluent-plugin-loki developed within the loki repositories:
Since this is hard to spot and confuses people when following the official loki guide on setting up fluent-plugin-loki, I wonder if you would mind changing the name of your gem file?
Best
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.