Forge Home

loki

Like Prometheus, but for logs

5,473 downloads

13 latest version

5.0 quality score

We run a couple of automated
scans to help you access a
module's quality. Each module is
given a score based on how well
the author has formatted their
code and documentation and
modules are also checked for
malware using VirusTotal.

Please note, the information below
is for guidance only and neither of
these methods should be considered
an endorsement by Puppet.

Version information

  • 2.0.1 (latest)
  • 2.0.0
  • 1.2.0
  • 1.1.0
  • 1.0.0
  • 0.1.0
released Dec 21st 2024
This version is compatible with:
  • Puppet Enterprise 2023.8.x, 2023.7.x, 2023.6.x, 2023.5.x, 2023.4.x, 2023.3.x, 2023.2.x, 2023.1.x, 2023.0.x, 2021.7.x, 2021.6.x, 2021.5.x, 2021.4.x, 2021.3.x
  • Puppet >= 7.9.0 < 9.0.0
  • , ,

Start using this module

  • r10k or Code Manager
  • Bolt
  • Manual installation
  • Direct download

Add this module to your Puppetfile:

mod 'attachmentgenie-loki', '2.0.1'
Learn more about managing modules with a Puppetfile

Add this module to your Bolt project:

bolt module add attachmentgenie-loki
Learn more about using this module with an existing project

Manually install this module globally with Puppet module tool:

puppet module install attachmentgenie-loki --version 2.0.1

Direct download is not typically how you would use a Puppet module to manage your infrastructure, but you may want to download the module in order to inspect the code.

Download

Documentation

attachmentgenie/loki — version 2.0.1 Dec 21st 2024

attachmentgenie-loki

Spec Tests License

Deploy and configure loki on a node.

Description

Loki

It primarily:

  1. Discovers targets
  2. Attaches labels to log streams
  3. Pushes them to the Loki instance.

Currently, Loki can tail logs from two sources: local log files and the systemd journal (on AMD64 machines only).

Usage

All options and configuration can be done through interacting with the parameters on the main loki class. These are now documented via Puppet Strings

You can view example usage in REFERENCE.

## Reference

See [REFERENCE](REFERENCE.md).

## Limitations

This is where you list OS compatibility, version compatibility, etc.

## Development

### Running tests

This project contains tests for both rspec-puppet and litmus to verify functionality. For detailed information on using these tools, please see their respective documentation.

#### Testing quickstart:

pdk bundle install pdk bundle exec rake 'litmus:provision_list[puppet8]' pdk bundle exec rake 'litmus:install_agent[puppet8]' pdk bundle exec rake 'litmus:install_module' pdk bundle exec rake 'litmus:acceptance:parallel' pdk bundle exec rake 'litmus:tear_down'