-
Notifications
You must be signed in to change notification settings - Fork 140
/
Copy pathconfig.yml
71 lines (70 loc) · 1.96 KB
/
config.yml
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
60
61
62
63
64
65
66
67
68
69
70
71
---
version: 2.1
orbs:
prometheus: prometheus/[email protected]
executors:
golang:
docker:
- image: cimg/go:1.23
- image: quay.io/prometheus/node-exporter:latest
jobs:
test:
executor: golang
environment:
prom_ver: 2.54.1
steps:
- prometheus/setup_environment
- run: wget https://github.com/prometheus/prometheus/releases/download/v${prom_ver}/prometheus-${prom_ver}.linux-amd64.tar.gz
- run: tar xzf prometheus-${prom_ver}.linux-amd64.tar.gz
- run: sudo cp -v prometheus-${prom_ver}.linux-amd64/prometheus /bin/prometheus
- run:
name: Configure Prometheus
command: |
cat \<< EOF > prometheus.yml
global:
scrape_interval: 1s
scrape_configs:
- job_name: pushprox
proxy_url: http://127.0.0.1:8080
static_configs:
- targets: ['$(hostname):9100']
EOF
- run: make
- run:
name: Run everything and test that Prometheus can scrape node_exporter via pushprox
command: ./end-to-end-test.sh
workflows:
version: 2
PushProx:
jobs:
- test:
filters:
tags:
only: /.*/
- prometheus/build:
name: build
filters:
tags:
only: /.*/
- prometheus/publish_master:
context: org-context
docker_hub_organization: prometheuscommunity
quay_io_organization: prometheuscommunity
requires:
- test
- build
filters:
branches:
only: master
- prometheus/publish_release:
context: org-context
docker_hub_organization: prometheuscommunity
quay_io_organization: prometheuscommunity
requires:
- test
- build
filters:
tags:
only: /^v.*/
branches:
ignore: /.*/