Skip to content

Commit 315cf9e

Browse files
vineeshahevanugarte
authored andcommitted
without coin-api
1 parent da578d9 commit 315cf9e

File tree

14 files changed

+54
-160
lines changed

14 files changed

+54
-160
lines changed
Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,6 @@
11
version: '2'
22

33
services:
4-
coin-api:
5-
container_name: coin-api
6-
build:
7-
context: .
8-
dockerfile: ./dockerfile
9-
restart: 'on-failure'
10-
ports:
11-
- "5000:5000"
124
prometheus:
135
image: prom/prometheus:latest
146
restart: always
@@ -31,7 +23,8 @@ services:
3123
ports:
3224
- "8000:8000"
3325
restart: 'on-failure'
34-
command: python3 scraper.py --json json.json
26+
command: python3 scraper.py --json json.json --promurl "http://one.sce/prometheus/metrics"
27+
3528

3629
nginx:
3730
image: nginx:1.25.3
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,5 +21,11 @@ def get_args():
2121
required = True,
2222
help = "argument to a json file, where the json file specifies what services we need to query"
2323
)
24+
parser.add_argument(
25+
"--promurl",
26+
type = str,
27+
default= "http://prometheus:9090",
28+
help = "the url for the promtheus container thats running that has to be scraped"
29+
)
2430

2531
return parser.parse_args()

status/json.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
[
2+
{
3+
"job-id": "prometheus-aggregation",
4+
"query": "up"
5+
}
6+
]

status/prom/dockerfile

Lines changed: 0 additions & 14 deletions
This file was deleted.

status/prom/json.json

Lines changed: 0 additions & 13 deletions
This file was deleted.

status/prom/output/metrics.html

Lines changed: 0 additions & 22 deletions
This file was deleted.

status/prom/queries.txt

Lines changed: 0 additions & 21 deletions
This file was deleted.

status/prom/server.py

Lines changed: 0 additions & 71 deletions
This file was deleted.

0 commit comments

Comments
 (0)