Commit 4c4417c9 authored by wolfsack's avatar wolfsack
Browse files

..

parent 59cb0c58
/prom
\ No newline at end of file
version: "3"
services:
prometheus:
image: prom/prometheus:v2.30.3
container_name: prometheus
ports:
- 9090:9090
volumes:
- ./prometheus.yml:/etc/prometheus/prometheus.yml
- ./prom:/prometheus
command:
- '--config.file=/etc/prometheus/prometheus.yml'
restart: unless-stopped
graphana:
image: grafana/grafana:6.5.0
container_name: graphana
ports:
- 3000:3000
environment:
- GF_SECURITY_ADMIN_USER=admin
- GF_SECURITY_ADMIN_PASSWORD=admin_pass
- GF_USERS_ALLOW_SIGN_UP=false
restart: unless-stopped
version: "3"
services:
prometheus:
image: prom/prometheus:v2.30.3
container_name: prometheus
ports:
- 9090:9090
volumes:
- ./prometheus.yml:/etc/prometheus/prometheus.yml
- ./prom:/prometheus
command:
- '--config.file=/etc/prometheus/prometheus.yml'
networks:
moni_ipv6:
ipv6_address: 2001:638:408:200:FC36:dddd::11
restart: unless-stopped
graphana:
image: grafana/grafana:6.5.0
container_name: graphana
ports:
- 3000:3000
environment:
- GF_SECURITY_ADMIN_USER=admin
- GF_SECURITY_ADMIN_PASSWORD=admin_pass
- GF_USERS_ALLOW_SIGN_UP=false
networks:
moni_ipv6:
ipv6_address: 2001:638:408:200:FC36:dddd::19
restart: unless-stopped
global:
scrape_interval: 15s
scrape_configs:
- job_name: 'prometheus'
static_configs:
- targets: ['localhost:9090']
- job_name: 'raspberry-1'
metrics_path: /node/1/metrics
scrape_interval: 5s
static_configs:
- targets: ['wutterfly.com']
......@@ -17,8 +17,8 @@ class Metric:
output = ""
if self.comment is not None:
output += help_string + "\r\n"
output += type_string + "\r\n" + f'{self.metric_name}{self.__params_to_string()} {self.value}'
output += help_string + "\n"
output += type_string + "\n" + f'{self.metric_name}{self.__params_to_string()} {self.value}'
return output
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment