fixed dockerfile

This commit is contained in:
Christian Schoch
2025-12-26 07:54:54 +01:00
parent d699476d8d
commit 230a42f034
3 changed files with 1160 additions and 2 deletions

View File

@@ -2,7 +2,7 @@
# Build Image
FROM golang:1.25.4-alpine3.22 AS builder
RUN go install github.com/sberk42/fritzbox_exporter@latest \
RUN go install github.com/CSchoch/fritzbox_exporter@latest \
&& mkdir /app \
&& mv /go/bin/fritzbox_exporter /app
@@ -13,7 +13,7 @@ COPY metrics.json metrics-lua.json /app/
# Runtime Image
FROM alpine:3.22 as runtime-image
ARG REPO=sberk42/fritzbox_exporter
ARG REPO=CSchoch/fritzbox_exporter
LABEL org.opencontainers.image.source https://github.com/${REPO}

View File

@@ -53,6 +53,40 @@
},
"promType": "CounterValue"
},
{
"service": "urn:schemas-upnp-org:service:WANIPConnection:1",
"action": "GetExternalIPAddress",
"result": "ExternalIPAddress",
"promDesc": {
"fqName": "gateway_wan_ip_info",
"help": "WAN external IP address info",
"varLabels": [
"gateway",
"ExternalIPAddress"
],
"fixedLabels": {
"connection": "IP",
"interface": "WAN"
}
},
"promType": "GaugeValue",
"cacheEntryTTL": 60
},
{
"service": "urn:schemas-upnp-org:service:WANIPConnection:1",
"action": "X_AVM_DE_GetExternalIPv6Address",
"result": "ExternalIPv6Address",
"promDesc": {
"fqName": "gateway_wan_ipv6",
"help": "WAN external IPv6 address info",
"varLabels": [
"gateway",
"ExternalIPv6Address"
]
},
"promType": "GaugeValue",
"cacheEntryTTL": 60
},
{
"service": "urn:schemas-upnp-org:service:WANCommonInterfaceConfig:1",
"action": "GetAddonInfos",

1124
metrics_5530Without 64.json Normal file

File diff suppressed because it is too large Load Diff