No description
  • Shell 47.2%
  • Jinja 31.4%
  • Just 21.4%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Suguru Hirahara 06308fbc61
Update pre-commit repositories and hooks
Add requirements-txt-fixer of pre-commit-hooks

Signed-off-by: Suguru Hirahara <did🔑z6MkvVZk1A3KBApWJXv2Ju4H14ErDfRGxh8zxdXSZ4vACDg5>
2026-10-29 06:44:21 -08:00
.github Update molecule.yml: safeguard for running multiple scenarios 2026-09-02 11:44:56 -04:00
bin Derive release tags from the role rather than from commit messages 2026-08-23 19:59:30 +03:00
defaults Update prom/prometheus Docker tag to v3.15.1 2026-10-21 14:40:54 +00:00
docs Update configuring-prometheus.md 2026-10-02 12:28:03 -04:00
LICENSES Make the project compliant with REUSE 2025-04-26 09:11:07 +03:00
meta Update meta/main.yml: credit author properly 2026-08-27 11:07:50 -04:00
molecule Update pre-commit repositories and hooks 2026-10-29 06:44:21 -08:00
tasks Add validation to ensure --config.file is present among the Prometheus process arguments 2026-06-12 08:46:29 +03:00
templates Change order of the variables based on the convention 2026-09-19 13:29:54 -04:00
.ansible-lint Update pre-commit 2025-05-29 20:23:02 +09:00
.gitignore Add Molecule testing framework 2026-07-20 07:18:17 -04:00
.pre-commit-config.yaml Update pre-commit repositories and hooks 2026-10-29 06:44:21 -08:00
.python-version Add Molecule testing framework 2026-07-20 07:18:17 -04:00
.yamllint.yml Update pre-commit 2025-05-29 20:23:02 +09:00
justfile Update justfile: git hooks resolve prek through the mise shim 2026-08-25 11:20:58 -04:00
LICENSE Initial commit 2023-03-20 17:19:19 +02:00
mise.toml mise: drop the settings block - yes is ignored in project configs 2026-08-16 09:27:08 +03:00
README.md Add configuring-prometheus.md 2026-10-02 12:04:04 -04:00
REUSE.toml Add Molecule testing framework 2026-07-20 07:18:17 -04:00

Prometheus Ansible role

This is an Ansible role which installs Prometheus to run as a Docker container wrapped in a systemd service.

This role implicitly depends on:

Check defaults/main.yml for the full list of supported options. Refer to this page for details about setting up the service with this role.

💡 For an Ansible playbook which integrates this role and makes it easier to use, see the Mother-of-All-Self-Hosting Ansible playbook.

Development

pre-commit

You can optionally install a Git pre-commit hook (via mise + prek) that runs formatting and linting checks before each commit. See .pre-commit-config.yaml for which hooks are to be executed.

To install the hook, run the just command below:

just prek-install-git-pre-commit-hook

Molecule

This role supports Molecule, an Ansible testing framework designed for developing and testing Ansible collections, playbooks, and roles.

Refer to this page for details about how to utilize it.

Releases

Tags are created on the GitHub workflow by .github/workflows/autotag.yml, which asks bin/compute-next-tag.sh what the commit on main should be released as. The answer comes from the version pinned in defaults/main.yml and from the tags that already exist, so a commit that only touches documentation or CI is not released at all, and any change to the role itself is — without waiting for a dependency bump to carry it along.

bin/test-compute-next-tag.sh exercises that script against throwaway repositories, and runs as a prek hook.