Skip to content

Commit

Permalink
Merge pull request #636 from prometheus/superq/docker_fix
Browse files Browse the repository at this point in the history
Update Dockerfile for Go 1.16
  • Loading branch information
SuperQ authored Mar 29, 2021
2 parents 1592a88 + e152c68 commit b84255d
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 4 deletions.
5 changes: 1 addition & 4 deletions generator/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,7 @@ FROM golang:latest

RUN apt-get update && \
apt-get install -y libsnmp-dev p7zip-full unzip && \
go get github.com/prometheus/snmp_exporter/generator && \
cd /go/src/github.com/prometheus/snmp_exporter/generator && \
go get -v . && \
go install
go install github.com/prometheus/snmp_exporter/generator@latest

WORKDIR "/opt"

Expand Down
34 changes: 34 additions & 0 deletions snmp.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25576,6 +25576,10 @@ synology:
type: gauge
help: This oid is for checking whether there is a latest DSM can be upgraded -
1.3.6.1.4.1.6574.1.5.4
- name: controllerNumber
oid: 1.3.6.1.4.1.6574.1.6
type: gauge
help: Synology system controller number Controller A(0) Controller B(1) - 1.3.6.1.4.1.6574.1.6
- name: storageIOIndex
oid: 1.3.6.1.4.1.6574.101.1.1.1
type: gauge
Expand Down Expand Up @@ -25756,6 +25760,21 @@ synology:
type: DisplayString
- labels: []
labelname: storageIOIndex
- name: storageIODeviceSerial
oid: 1.3.6.1.4.1.6574.101.1.1.14
type: DisplayString
help: The name of the device we are counting/checking. - 1.3.6.1.4.1.6574.101.1.1.14
indexes:
- labelname: storageIOIndex
type: gauge
lookups:
- labels:
- storageIOIndex
labelname: storageIODevice
oid: 1.3.6.1.4.1.6574.101.1.1.2
type: DisplayString
- labels: []
labelname: storageIOIndex
- name: spaceIOIndex
oid: 1.3.6.1.4.1.6574.102.1.1.1
type: gauge
Expand Down Expand Up @@ -25936,6 +25955,21 @@ synology:
type: DisplayString
- labels: []
labelname: spaceIOIndex
- name: spaceUUID
oid: 1.3.6.1.4.1.6574.102.1.1.14
type: DisplayString
help: The uuid of space. - 1.3.6.1.4.1.6574.102.1.1.14
indexes:
- labelname: spaceIOIndex
type: gauge
lookups:
- labels:
- spaceIOIndex
labelname: spaceIODevice
oid: 1.3.6.1.4.1.6574.102.1.1.2
type: DisplayString
- labels: []
labelname: spaceIOIndex
- name: iSCSILUNInfoIndex
oid: 1.3.6.1.4.1.6574.104.1.1.1
type: gauge
Expand Down

0 comments on commit b84255d

Please sign in to comment.