-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathprometheus.yaml
More file actions
36 lines (29 loc) · 1.24 KB
/
prometheus.yaml
File metadata and controls
36 lines (29 loc) · 1.24 KB
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
# Prometheus module handler
# by neurosam.AI — https://neurosam.ai
name: prometheus
description: Prometheus monitoring system
version: "1.0.0"
author: neurosam.AI
package:
default_version: "2.51.1"
url_template: "https://github.com/prometheus/prometheus/releases/download/v{{VERSION}}/prometheus-{{VERSION}}.linux-amd64.tar.gz"
versions:
"2.51.1": "https://github.com/prometheus/prometheus/releases/download/v2.51.1/prometheus-2.51.1.linux-amd64.tar.gz"
"2.50.1": "https://github.com/prometheus/prometheus/releases/download/v2.50.1/prometheus-2.50.1.linux-amd64.tar.gz"
build_cmd: ""
start_cmd: "nohup {{BASE_DIR}}/current/prometheus --config.file={{BASE_DIR}}/conf/prometheus.yml --storage.tsdb.path={{BASE_DIR}}/data --web.listen-address=:{{PORT}} > {{BASE_DIR}}/logs/prometheus.log 2>&1 &"
stop_cmd: "kill $(pgrep -f 'prometheus.*--config.file={{BASE_DIR}}') 2>/dev/null || true"
status_cmd: "curl -sf http://localhost:{{PORT}}/-/healthy && echo 'RUNNING' || echo 'STOPPED'"
artifact_path: "external-package/prometheus.tar.gz"
package_includes:
- prometheus
- promtool
- console_libraries/
- consoles/
health_check:
type: http
target: "http://localhost:{{PORT}}/-/healthy"
timeout: 30
data_dirs:
- data
log_file: "prometheus.log"