mirror of
https://github.com/hassio-addons/addon-prometheus.git
synced 2025-05-04 11:11:24 +00:00
Linter and build fixed (#3)
This commit is contained in:
parent
5158849871
commit
d79d1fb015
3 changed files with 12 additions and 13 deletions
|
@ -12,20 +12,21 @@ ENV PROMETHEUS_VERSION=2.19.2
|
||||||
# Copy root filesystem
|
# Copy root filesystem
|
||||||
COPY rootfs /
|
COPY rootfs /
|
||||||
|
|
||||||
|
# hadolint ignore=DL3003
|
||||||
RUN \
|
RUN \
|
||||||
ARCH="${BUILD_ARCH}" \
|
ARCH="${BUILD_ARCH}" \
|
||||||
&& if [ "${BUILD_ARCH}" = "aarch64" ]; then ARCH="arm64"; fi \
|
&& if [ "${BUILD_ARCH}" = "aarch64" ]; then ARCH="arm64"; fi \
|
||||||
\
|
\
|
||||||
&& apk --no-cache add \
|
&& apk --no-cache add \
|
||||||
python3 \
|
python3=3.8.5-r0 \
|
||||||
py3-idna \
|
py3-idna=2.9-r0 \
|
||||||
py3-certifi \
|
py3-certifi=2020.4.5.1-r0 \
|
||||||
py3-chardet \
|
py3-chardet=3.0.4-r4 \
|
||||||
py3-yaml \
|
py3-yaml=5.3.1-r0 \
|
||||||
py3-urllib3 \
|
py3-urllib3=1.25.9-r0 \
|
||||||
py3-requests \
|
py3-requests=2.23.0-r0 \
|
||||||
&& apk --no-cache add --virtual .builddeps \
|
&& apk --no-cache add --virtual .builddeps \
|
||||||
py-pip \
|
py-pip=20.1.1-r0 \
|
||||||
\
|
\
|
||||||
&& curl -J -L -o /tmp/prometheus.tar.gz \
|
&& curl -J -L -o /tmp/prometheus.tar.gz \
|
||||||
"https://github.com/prometheus/prometheus/releases/download/v${PROMETHEUS_VERSION}/prometheus-${PROMETHEUS_VERSION}.linux-${ARCH}.tar.gz" \
|
"https://github.com/prometheus/prometheus/releases/download/v${PROMETHEUS_VERSION}/prometheus-${PROMETHEUS_VERSION}.linux-${ARCH}.tar.gz" \
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
---
|
---
|
||||||
# my global config
|
# my global config
|
||||||
global:
|
global:
|
||||||
scrape_interval: 15s # Set the scrape interval to every 15 seconds. Default is every 1 minute.
|
scrape_interval: 15s # Set the scrape interval to every 15 seconds. Default is every 1 minute.
|
||||||
evaluation_interval: 15s # Evaluate rules every 15 seconds. The default is every 1 minute.
|
evaluation_interval: 15s # Evaluate rules every 15 seconds. The default is every 1 minute.
|
||||||
# scrape_timeout is set to the global default (10s).
|
# scrape_timeout is set to the global default (10s).
|
||||||
|
|
||||||
# Alertmanager configuration
|
# Alertmanager configuration
|
||||||
|
@ -10,7 +10,7 @@ alerting:
|
||||||
alertmanagers:
|
alertmanagers:
|
||||||
- static_configs:
|
- static_configs:
|
||||||
- targets:
|
- targets:
|
||||||
# - alertmanager:9093
|
# - alertmanager:9093
|
||||||
|
|
||||||
# Load rules once and periodically evaluate them according to the global 'evaluation_interval'.
|
# Load rules once and periodically evaluate them according to the global 'evaluation_interval'.
|
||||||
rule_files:
|
rule_files:
|
||||||
|
|
|
@ -1,5 +1,3 @@
|
||||||
#!/usr/bin/env python
|
|
||||||
|
|
||||||
import sys
|
import sys
|
||||||
import asyncio
|
import asyncio
|
||||||
import aionotify
|
import aionotify
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue