promhippie/prometheus-scw-sdPrometheus Scaleway SD 是一个服务发现工具,提供服务器以自动发现 Scaleway 账户中的节点,并以 Prometheus 服务发现(SD)兼容格式输出。该工具专为在 Prometheus 监控环境中集成 Scaleway 云资源而设计,实现对 Scaleway 节点的自动化监控配置。
可从 GitHub releases 下载预构建二进制文件。
项目提供 DEB 和 RPM 包仓库,可在 Cloudsmith 获取。
可使用发布在以下平台的容器镜像:
docker run 命令部署bashdocker run -d \ --name prometheus-scw-sd \ -p 9000:9000 \ -e SCW_ACCESS_KEY=your-scaleway-access-key \ -e SCW_SECRET_KEY=your-scaleway-secret-key \ -e SCW_REGION=fr-par \ promhippie/prometheus-scw-sd:latest
yamlversion: '3.8' services: prometheus-scw-sd: image: promhippie/prometheus-scw-sd:latest container_name: prometheus-scw-sd restart: always ports: - "9000:9000" environment: - SCW_ACCESS_KEY=your-scaleway-access-key - SCW_SECRET_KEY=your-scaleway-secret-key - SCW_REGION=fr-par - LOG_LEVEL=info - SERVER_PORT=9000 - SCRAPE_INTERVAL=60s volumes: - ./config:/etc/prometheus-scw-sd
| 环境变量 | 描述 | 默认值 |
|---|---|---|
SCW_ACCESS_KEY | Scaleway 访问密钥 | 无 |
SCW_SECRET_KEY | Scaleway 密钥 | 无 |
SCW_REGION | Scaleway 区域 | fr-par |
LOG_LEVEL | 日志级别 | info |
SERVER_PORT | 服务监听端口 | 9000 |
SCRAPE_INTERVAL | 节点发现间隔 | 60s |
FILTER_TAGS | 按标签过滤节点 | 无 |
http://localhost:9000 查看服务状态yamlscrape_configs: - job_name: 'scaleway-nodes' file_sd_configs: - files: ['http://localhost:9000/scrape?job=node']
consolegit clone https://github.com/promhippie/prometheus-scw-sd.git cd prometheus-scw-sd task generate build ./bin/prometheus-scw-sd -h
consolecat << EOF > .envrc use flake . --impure --extra-experimental-features nix-command EOF direnv allow
启动开发服务器:
consoletask watch
开发服务器将运行在 http://localhost:9000,支持热重载。
或者使用 devenv:
consoledevenv up
如发现安全问题,请首先联系 ***。
贡献流程:Fork -> Patch -> Push -> Pull Request
Apache-2.0
Copyright (c) 2018 Thomas Boerger <***>




探索更多轩辕镜像的使用方法,找到最适合您系统的配置方式
通过 Docker 登录认证访问私有仓库
无需登录使用专属域名
Kubernetes 集群配置 Containerd
K3s 轻量级 Kubernetes 镜像加速
VS Code Dev Containers 配置
Podman 容器引擎配置
HPC 科学计算容器配置
ghcr、Quay、nvcr 等镜像仓库
Harbor Proxy Repository 对接专属域名
Portainer Registries 加速拉取
Nexus3 Docker Proxy 内网缓存
需要其他帮助?请查看我们的 常见问题Docker 镜像访问常见问题解答 或 提交工单
manifest unknown
no matching manifest(架构)
invalid tar header(解压)
TLS 证书失败
DNS 超时
410 Gone 排查
402 与流量用尽
401 认证失败
429 限流
D-Bus 凭证提示
413 与超大单层
来自真实用户的反馈,见证轩辕镜像的优质服务