mirror of
https://github.com/sberk42/fritzbox_exporter.git
synced 2026-02-14 11:49:50 +00:00
fixed dockerfile
This commit is contained in:
@@ -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}
|
||||
|
||||
|
||||
@@ -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
1124
metrics_5530Without 64.json
Normal file
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user