-
Notifications
You must be signed in to change notification settings - Fork 315
/
Copy pathfluent-plugin-prometheus.yaml
59 lines (53 loc) · 1.34 KB
/
fluent-plugin-prometheus.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
package:
name: fluent-plugin-prometheus
version: 2.2.0
epoch: 0
description: A fluent plugin that collects metrics and exposes for Prometheus.
copyright:
- license: Apache-2.0
dependencies:
provides:
- ruby3.2-fluent-plugin-prometheus=${{package.version}}-r${{package.epoch}}
runtime:
- ruby3.2-fluentd
- ruby3.2-prometheus-client
environment:
contents:
packages:
- build-base
- busybox
- ca-certificates-bundle
- git
- ruby-3.2
- ruby-3.2-dev
vars:
gem: fluent-plugin-prometheus
pipeline:
- uses: git-checkout
with:
destination: ${{vars.gem}}
expected-commit: d2dc295fe08a9d3ad665d90081819793de01a4a5
repository: https://github.com/fluent/fluent-plugin-prometheus
tag: v${{package.version}}
- working-directory: ${{vars.gem}}
pipeline:
- uses: ruby/unlock-spec
- uses: ruby/build
with:
gem: ${{package.name}}
- uses: ruby/install
with:
gem: ${{package.name}}
version: ${{package.version}}
- uses: ruby/clean
update:
enabled: true
github:
identifier: fluent/fluent-plugin-prometheus
strip-prefix: v
use-tag: true
test:
pipeline:
- runs: |
ruby -e "require 'fluent/plugin/prometheus'"
ruby -e "require 'fluent/plugin/in_prometheus'"