**What this PR does / why we need it**:
Previously example query was `evaluate-loki_flog_1` this was not the
label used in flog. This results in query not returning any logs which
beginners may be unsure of the cause of the issue. This might also be an
issue if flog was running in the background and logs are not displayed.
Changed to `evaluate-loki-flog-1`.
**Which issue(s) this PR fixes**:
Fixes #<issue number>
**Special notes for your reviewer**:
Trivial fix to "Getting Started" documentation
**Checklist**
- [x] Reviewed the
[`CONTRIBUTING.md`](https://github.com/grafana/loki/blob/main/CONTRIBUTING.md)
guide (**required**)
- [ ] Documentation added
- [ ] Tests updated
- [ ] `CHANGELOG.md` updated
- [ ] Changes that require user attention or interaction to upgrade are
documented in `docs/sources/upgrading/_index.md`
* Revise the getting started section
* Docs: revise getting started guide
* Intermediate commit of getting started material.
* Intermediate revision of the getting started guide.
Add instructions to download, configure, and deploy the test environment.
* Add sample queries and instructions for breaking down the test env
* Revise prose using reviewer comments.
* update to use promtail and flog in the docker compose file
Signed-off-by: Edward Welch <edward.welch@grafana.com>
* Revise guide to put all parts into Docker containers.
* Add README files for examples directory. Revise getting started instructions.
* Address DylanGuedes review comments
* Getting started guide: incorporate suggestions from ssncferreira
Co-authored-by: Edward Welch <edward.welch@grafana.com>
* Simple docs error
The docs read "... are what send the logs that Loki generate to Loki" instead of "... are what send the logs that promtail generate to Loki"
* Capitalise spelling of Promtail
* Improve docs on how to install logcli from source
Closes#5108
Signed-off-by: Christian Haudum <christian.haudum@gmail.com>
* fixup! Improve docs on how to install logcli from source
Signed-off-by: Christian Haudum <christian.haudum@gmail.com>
* Hack stdin client into LogCLI
Add flag to choose what kind of client to make request to.
Signed-off-by: Kaviraj <kavirajkanagaraj@gmail.com>
* Label filter working
Signed-off-by: Kaviraj <kavirajkanagaraj@gmail.com>
* Demo checkpoint1
Signed-off-by: Kaviraj <kavirajkanagaraj@gmail.com>
* Metrics query working.
Issue was with default value of `step` (1 nanosecond).
StepEvaluator try to go through every nanosecond to apply aggregate on sample data
during the metric queries.
Signed-off-by: Kaviraj <kavirajkanagaraj@gmail.com>
* Basic tests for fileClient
* Tests for logqueries direction
* Use HeapIterator for Entries.
Signed-off-by: Kaviraj <kavirajkanagaraj@gmail.com>
* Remove some debug statements
Signed-off-by: Kaviraj <kavirajkanagaraj@gmail.com>
* Remove support for metric queries. Stick with only log queries
Signed-off-by: Kaviraj <kavirajkanagaraj@gmail.com>
* Small rough usage doc
* Remove filesampleiterator
* Fix some typos and tests
* Fix breaking test cases
Signed-off-by: Kaviraj <kavirajkanagaraj@gmail.com>
* Make linter happy
Signed-off-by: Kaviraj <kavirajkanagaraj@gmail.com>
* PR remarks.
1. Add `--stdin` in examples of the usage
2. Add `--stdin` in all the command help output
* PR remarks
- Use parsed labels correctly
- Fix indendation with --stdin flag
* Fix issue with direction
* Fix linter
* MaxInt64 -> MaxInt (to support even arm32 images)
* Add note on calculating `step` value on the client side
The product name is Grafana Loki. The first use of the product name on
each web page should be the full product name. After that, within each
page, it is fine to use just Loki.
This PR also set up some frontmatter with weights where it was missing
on a few files, and correct where "Loki" was not capitalized.
- We give readers versioned documentation (now), so they don't need to know what version a feature appeared in.
- I couldn't resist fixing some grammar formatting and phrasing in the sections that needed changes.
When using 'logcli query --tail', '--tail' behaves similar to the 'tail'
command, which uses '--follow' flag, if you want to continuously
follow the appended data to the file.
I believe '--follow' flag is more natural for system administrators to
use rather than '--tail' if one wants to "follow" the incoming logs, so
this commit adds one, as an alias for '--tail'.
Closes#3570
Signed-off-by: Mateusz Gozdek <mgozdekof@gmail.com>
* doc: Add missing backticks
Signed-off-by: Jack Baldry <jack.baldry@grafana.com>
* doc: Use absolute path to positions.yaml file
Signed-off-by: Jack Baldry <jack.baldry@grafana.com>
* doc: Remove .. from URL paths
I'm not sure what the `..` means exactly.
Signed-off-by: Jack Baldry <jack.baldry@grafana.com>
Changes the series command to use the common matcher input found in the query and instant-query commands, instead of `logcli series --matcher='{foo="bar"}'` it's now `logcli series '{foo="bar"}'`