Comments (12)
Will do!
from loki.
If you are targeting Kubernetes why are the docs all using docker run
instead of kubectl run
? Do you want a PR?
from loki.
Haha, I'll be publishing the ksonnet for it today, we have something here that kinda works: https://github.com/grafana/loki/tree/master/ksonnet but not yet.
from loki.
@gouthamve any chance you can publish something that just works on minikube or other Kubernetes using kubectl port-forward
after kubectl create
?
from loki.
FYI, I adapted the Kubernetes manifests and am running loki/promtail without consul or cloud storage. It was much easier to get logcli
working then. I could write up something if people wanted.
- https://github.com/moov-io/infra/blob/master/lib/infra/19-loki.yml
- https://github.com/moov-io/infra/blob/master/lib/infra/20-promtail.yml
This setup allowed me to just use infra.moov.io/loki
and run logcli query '{ job != "" }'
type queries just fine. I've since hidden that behind auth.
I'd recommend using the ksonnet builders for a more drop-in install though.
from loki.
Hi @vtolstov We're initially targeting Kubernetes with our launch, see: https://github.com/grafana/loki#getting-started for instructions on getting started. Having said that we'll soon be publishing blog posts and other content around how to run Loki and Promtail on different platforms, so keep an eye out!
from loki.
from loki.
I really like the docker-compose
support and everything started perfectly, but then what?
I clicked the Explore tab but of course I had no data.
If possible, it would be nice to explain (write in the tutorial) how to actually see some test log data so people can quickly evaluate this exciting product!
from loki.
see #117
from loki.
That is nice, but how to get logs without grafana and how to write it?
So my use case - write logs from 20 microservices to some store and have ability to get some logs via labels (for example service name or uuid)
from loki.
@philips we've merged in a helm chart now, and removed the docker run
instructions. docker-compose
is still there mind you. The helm chart instructions include all the necessary port-forward
commands for a full E2E demo.
If possible, it would be nice to explain (write in the tutorial) how to actually see some test log data so people can quickly evaluate this exciting product
@davkal and @gouthamve have put the source code for the demo app we used at KubeCon here: https://github.com/gouthamve/tns
That is nice, but how to get logs without grafana and how to write it?
There is an example CLI and API docs:
- CLI: https://github.com/grafana/loki/blob/master/docs/logcli.md
- API: https://github.com/grafana/loki/blob/master/docs/api.md
from loki.
Can we get an example of:
- Relabel Config. I only found that was a thing digging through the source. I have no experience with prometheus so it's not something I really understand. I'm trying to pull a value out of a logline and use that as a label. Source label doesn't make sense, but target label does.
This is best I can come up with, but doesn't seem to work:
relabel_configs:
- source_labels: [logfield]
regex: '.*level=([a-zA-Z]+).*'
replacement: '${1}'
target_label: 'level'
action: replace
- Working
logcli query
example. I'm unable to figure out how to read the logs that have been ingested beyondlogcli labels
from loki.
Related Issues (20)
- Replace doesn't work if placed before output
- chunksCache PDB is not user configurable despite a values value
- Supporting IAM Role with Identity provider for non Cloud Provider Cluster
- msg="POST /loki/api/v1/push (500) 97.441376ms Response: \"rpc error: code = ResourceExhausted desc = grpc: received message larger than max (4239391 vs . 4194304)\
- Fluentd client "log" config option
- Kubernetes Version Compatibility Matrix
- Support ProxyConfig for Alertmanager notifications
- Missing chunkDelimiter parameter for Azure storage in Helm chart
- Gateway DNS lookup fail after CoreDNS restart
- Promtail doesn't listen on metrics port 9080 until it finds a log file to read
- Promtail regex is breaking previous multiline
- Promtail relabeling not working as expected for component label based on log keyword
- Nested queries / subquery support for Loki
- Loki Unable to Recover Automatically from memberlist TCP Issues
- HPA for Loki-indexer in a failed state when zoneAwareReplication is set to enabled
- Helm: persistent cache item_size_max: 5242880 cannot be larger than ext_wbuf_size: 4194304 HOT 1
- listen tcp :3100: bind: address already in use HOT 1
- Invalid Config with log_level on server config HOT 1
- Support Openstack application credentials in helm chart for authenticating to use Swift storage backend
- OTLP Not Detecting Service Name
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from loki.