saz / puppet-promtail

Deploy and configure Grafana's Promtail with Puppet

Home Page:https://forge.puppet.com/grafana/promtail

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Promtail

Build Status License

Deploy and configure Grafana's Promtail on a node.

Description

Promtail is an agent which ships the contents of local logs to a private Loki instance or Grafana Cloud. It is usually deployed to every machine that has applications needed to be monitored.

It primarily:

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

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

Usage

The simplest way to get started with this module is to add include promtail to a manifest and create your config settings in Hiera. Additional details and examples are contained in REFERENCE.md.

Reference

This module is documented via pdk bundle exec puppet strings generate --format markdown. Please see REFERENCE.md for more info.

Changelog

CHANGELOG.md is generated prior to each release via pdk bundle exec rake changelog. This process relies on labels that are applied to each pull request.

Limitations

At the moment, this module only supports Linux. Future versions will support additional OS's including Windows.

Development

Pull requests are welcome! A Vagrantfile is also included in this repository that can be used during development.

Module Release

Follow the steps below to tag a new release and push to The Forge using GitHub Actions.

  1. Ensure that all closed PRs are labeled appropriately.
  2. Create a "Release Prep" PR with the label "maintenance" containing changes made by the following:
    1. Bump the module version (X.Y.Z) in metadata.json as appropriate based on closed PRs since the previous release. (i.e. "backwards-incomptible" is an X "release", "feature" is a Y release, and "bugfix" is a Z release)
    2. Run pdk bundle exec puppet strings generate --format markdown. Any missing documentation will result in a failed pipeline.
    3. Run pdk bundle exec rake changelog. Any unlabeled PRs will result in a failed pipeline.
  3. Once the PR is merged, navigate to Actions --> Publish Module --> Run workflow --> select the main branch, and Run workflow.

About

Deploy and configure Grafana's Promtail with Puppet

https://forge.puppet.com/grafana/promtail

License:Apache License 2.0


Languages

Language:Ruby 65.2%Language:Puppet 34.0%Language:Dockerfile 0.8%