image/resources/knfsd-metrics-agent/config/client.yaml (16 lines of code) (raw):
# Copyright 2022 Google LLC
#
# 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
#
# https://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.
receivers:
mounts:
query_proxy_instance:
# When enabled the collector will query the /api/v1.0/nodeInfo endpoint
# for each NFS server that is mounted so that the client can report the
# instance name of the knfsd proxy that the client is connected to.
enabled: true
timeout: 10s
# # If the client is mounting some servers directly (i.e. not via a knfsd
# # proxy) list the servers or local mount paths to exclude from querying.
# exclude:
# # Exclude specific servers. This must match the name or IP used when
# # mounting the export.
# servers:
# - logs.example
# # Exclude specific servers based upon the local path where the export
# # is mounted. If the client mounts multiple exports from the same server
# # then the server will be excluded if any path matches.
# local_paths:
# - /mnt/logs
service:
pipelines:
metrics:
receivers:
- mounts
- slabinfo
processors:
- resourcedetection
- metricstransform
exporters:
- googlecloud