spceific arch configs

This commit is contained in:
matt durham 2023-09-27 12:01:37 -04:00
parent c01a7c2c57
commit dde374e68a
No known key found for this signature in database
GPG key ID: A62E920AE398897B
4 changed files with 75 additions and 0 deletions

27
collector/config_bsds.go Normal file
View file

@ -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
}

View file

@ -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
}

View file

@ -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
}