sloth

ubuntu/sloth Docker Image

基于Ubuntu的Sloth Docker镜像,是Prometheus SLO(服务级别目标)生成器,通过简单SLO规范生成统一可靠的Prometheus SLO,接收安全更新,支持免费使用且无用户速率限制。

1 次收藏下载次数: 0状态:社区镜像维护者:Ubuntu 官方镜像仓库类型:镜像最近更新:4 个月前

sloth | Ubuntu

当前sloth Docker镜像由Canonical提供,基于Ubuntu系统构建。该镜像会接收安全更新,并会滚动更新至更新的sloth版本或Ubuntu发行版。此仓库可免费使用,且不受每用户速率限制。

关于sloth

Sloth是一款简单易用的Prometheus SLO(服务级别目标)生成器。它使用简单的SLO规范为任何类型的服务生成可理解、统一且可靠的Prometheus SLO。更多信息请参阅官方文档。请注意,此仓库包含的是rock镜像而非基于Dockerfile的镜像,因此其入口点为Pebble。更多信息请参阅https://canonical-rockcraft.readthedocs-hosted.com/en/latest/。

标签与架构

LTS通道提供长达5年的免费安全维护。

通过https://ubuntu.com/security/docker-images#get-in-touch提供长达10年的客户安全维护。

通道标签其他可用标签支持至当前版本架构
0.15-24.04_stable0-24.04、0-24.04_beta、0-24.04_candidate、0-24.04_edge、0-24.04_stable、0.15-24.04、0.15-24.04_beta、0.15-24.04_candidate、0.15-24.04_edge-sloth 0.15 基于 Ubuntu 24.04 LTSamd64
track_risk

通道标签按稳定性顺序展示该轨道的最稳定通道:stable、candidate、beta、edge。风险更高的通道始终隐含可用。例如,若列出beta,则也可拉取edge;若列出candidate,则可拉取beta和edge;若列出stable,则四个通道均可用。镜像会按edge→beta→candidate→stable的顺序更新。

商业使用与扩展安全维护(ESM)通道

若您的使用场景包含商业再分发,或需要ESM及其他未列出的通道/版本,请https://ubuntu.com/security/docker-images#get-in-touch(或发送邮件至***)。

使用方法

本地启动镜像

sh
docker run -d --name sloth-container -e TZ=UTC -v ./input.yaml:/input.yaml -v ./output.yaml:/output.yaml docker.xuanyuan.run/ubuntu/sloth:0.15-24.04_stable

参数说明

参数描述
-v ./input.yaml:/input.yaml绑定挂载SLO规范输入文件。
-v ./output.yaml:/output.yaml绑定挂载生成的规则输出文件。

测试/调试

查看容器日志:

sh
docker logs -f sloth-container

进入交互式shell:

sh
docker exec -it sloth-container /bin/bash

基本用法

从单个SLO规范文件(input.yaml)生成Prometheus规则:

bash
touch output.yaml
docker run --name sloth-container \
  -v ./input.yaml:/input.yaml \
  -v ./output.yaml:/output.yaml \
  docker.xuanyuan.run/ubuntu/sloth:0.15-24.04_edge \
  --args sloth generate -i ./input.yaml -o ./output.yaml

您可从上游https://github.com/slok/sloth/tree/3757b6607160646ce3a78114d077992663d5c9b7/examples获取示例SLO规范文件。

调试容器:

bash
docker exec -it sloth-container pebble logs -f sloth

错误与功能请求

若您在镜像中发现错误或需要特定功能,请在此提交bug:

https://bugs.launchpad.net/ubuntu-docker-images/+filebug

请将bug标题格式设为“sloth: <问题摘要>”。提交时请包含您使用的镜像摘要,可通过以下命令获取:

sh
docker images --no-trunc --quiet ubuntu/sloth:<tag>

已弃用通道与标签

以下通道(标签)不再更新。请升级至更新的通道,若无法升级,请https://ubuntu.com/security/docker-images#get-in-touch。

轨道版本生命周期结束(EOL)升级路径
track

镜像拉取方式

您可以使用以下命令拉取该镜像。请将 <标签> 替换为具体的标签版本。如需查看所有可用标签版本,请访问 标签列表页面。

轩辕镜像加速拉取命令点我查看更多 sloth 镜像标签

docker pull docker.xuanyuan.run/ubuntu/sloth:<标签>

DockerHub 原生拉取命令

docker pull ubuntu/sloth:<标签>
专业版 · 高速稳定拉取镜像
50GB 仅 ¥8/年
高速镜像下载在线技术支持专业版保障服务可用付费会员免广告