image/resources/knfsd-metrics-agent/internal/slab/metadata.yaml (30 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. name: slabinfo metrics: # TODO: Change these to two metrics and use resource labels for which cache # is being reported. Not changing this now as it would be a breaking change # to the existing dashboards. slab.nfs_inode_cache.active_objects: enabled: true description: NFS inode Cache Cache Active Objects extended_documentation: The number of active objects in the Linux NFS inode Cache unit: 1 gauge: value_type: int slab.nfs_inode_cache.objsize: enabled: true description: NFS inode Cache Object Size extended_documentation: The total size of the objects in the Linux NFS inode Cache unit: 1 gauge: value_type: int slab.dentry_cache.active_objects: enabled: true description: Dentry Cache Active Objects extended_documentation: The number of active objects in the Linux Dentry Cache unit: 1 gauge: value_type: int slab.dentry_cache.objsize: enabled: true description: Dentry Cache Object Size extended_documentation: The total size of the objects in the Linux Dentry Cache unit: 1 gauge: value_type: int