Skip to content

Commit

Permalink
spceific arch configs
Browse files Browse the repository at this point in the history
  • Loading branch information
mattdurham committed Sep 27, 2023
1 parent c01a7c2 commit dde374e
Show file tree
Hide file tree
Showing 4 changed files with 75 additions and 0 deletions.
27 changes: 27 additions & 0 deletions collector/config_bsds.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
// Copyright 2023 The Prometheus Authors
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.

//go:build dragonfly || freebsd || netbsd || openbsd
// +build dragonfly freebsd netbsd openbsd

package collector

type NodeCollectorConfig struct {
Filesystem FilesystemConfig
NetDev NetDevConfig
NTP NTPConfig
Path PathConfig
Runit RunitConfig
Supervisord SupervisordConfig
TextFile TextFileConfig
}
26 changes: 26 additions & 0 deletions collector/config_darwin.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
// Copyright 2023 The Prometheus Authors
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.

package collector

type NodeCollectorConfig struct {
DiskstatsDeviceFilter DiskstatsDeviceFilterConfig
Filesystem FilesystemConfig
NetDev NetDevConfig
NTP NTPConfig
Path PathConfig
PowerSupplyClass PowerSupplyClassConfig
Runit RunitConfig
Supervisord SupervisordConfig
TextFile TextFileConfig
}
File renamed without changes.
22 changes: 22 additions & 0 deletions collector/config_solaris.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
// Copyright 2023 The Prometheus Authors
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.

package collector

type NodeCollectorConfig struct {
NTP NTPConfig
Path PathConfig
Runit RunitConfig
Supervisord SupervisordConfig
TextFile TextFileConfig
}

0 comments on commit dde374e

Please sign in to comment.