{"id":13581757,"url":"https://github.com/aixeshunter/nfs_exporter","last_synced_at":"2026-01-18T04:57:29.326Z","repository":{"id":57539130,"uuid":"157849512","full_name":"aixeshunter/nfs_exporter","owner":"aixeshunter","description":"prometheus nfs exporter","archived":false,"fork":false,"pushed_at":"2018-12-10T03:52:37.000Z","size":1317,"stargazers_count":23,"open_issues_count":0,"forks_count":12,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-11-05T21:45:06.558Z","etag":null,"topics":["docker","kubernetes","prometheus-exporter"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/aixeshunter.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-11-16T10:09:30.000Z","updated_at":"2024-04-23T12:37:47.000Z","dependencies_parsed_at":"2022-09-19T07:31:54.393Z","dependency_job_id":null,"html_url":"https://github.com/aixeshunter/nfs_exporter","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aixeshunter%2Fnfs_exporter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aixeshunter%2Fnfs_exporter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aixeshunter%2Fnfs_exporter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aixeshunter%2Fnfs_exporter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/aixeshunter","download_url":"https://codeload.github.com/aixeshunter/nfs_exporter/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247470498,"owners_count":20944146,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["docker","kubernetes","prometheus-exporter"],"created_at":"2024-08-01T15:02:13.651Z","updated_at":"2026-01-18T04:57:29.277Z","avatar_url":"https://github.com/aixeshunter.png","language":"Go","funding_links":[],"categories":["Go"],"sub_categories":[],"readme":"# nfs_exporter\nNFS exporter for Prometheus\n\n## Installation\n\n```\ngo get -u -v github.com/aixeshunter/nfs_exporter\n\n./${GOPATH}/bin/nfs_exporter --${flags} ...\n```\n\n\n## Usage of `nfs_exporter`\n\n| Option                    | Default             | Description\n| ------------------------- | ------------------- | -----------------\n| -h, --help                | -                   | Displays usage.\n| --web.listen-address      | `:9689`             | The address to listen on for HTTP requests.\n| --web.metrics-path        | `/metrics`          | URL Endpoint for metrics\n| --nfs.storage-path        | `/opt/nfs`          | The nfs storage mount path\n| --nfs.address             | `127.0.0.1`         | The nfs server IP address\n| --nfs.executable-path     | `/usr/sbin/showmount` | Path to showmount executable.\n| --log.format              | `logger:stderr`     | Set the log target and format. Example: \"logger:syslog?appname=bob\u0026local=7\" or \"logger:stdout?json=true\"\n| --log.level               | `info`              | Only log messages with the given severity or above. Valid levels: [debug, info, warn, error, fatal]\n| --version                 | -                   | Prints version information\n\n\n## Make\n```\npromu:  make prometheus library\nbuild:  Go build\ndocker: build and run in docker container\ngotest: run go tests and reformats\nformat: formatting code\nvet:    vetting code\n```\n\n**build**: runs go build for nfs_exporter\n\n**docker**: runs docker build and copy new built nfs_exporter\n\n**gotest**: runs *vet* and *fmt* go tools\n\n\n## Metrics\n\n### Command: `showmount -e ${NFS_SERVER_IP}`\n\n| Name          | type     | impl. state |\n| ------------  | -------- | ------------|\n| up            | Gauge    | implemented |\n\n\n```sh\n# TYPE nfs_up gauge\n# HELP nfs_up Was the last query of NFS successful.\nnfs_up{mount_path=\" /mnt\",nfs_address=\"192.168.0.2\"} 0\nnfs_up{mount_path=\" /opt\",nfs_address=\"192.168.0.3\"} 0\nnfs_up{mount_path=\"/opt/nfs\",nfs_address=\"192.168.0.3\"} 1\n```\n\n## NFS-exporter of Prometheus Operator Kubernetes Cluster\n\n[YAML File in Kubernetes](prometheus/manifests)\n\n```bash\nPod \u003c- Service \u003c- ServiceMonitor\n```\n\n```bash\nnfs-exporter-service-monitor.yaml\nnfs-exporter-service.yaml\nnfs-exporter-deploy.yaml\n```\n\n### Points\n\nNFS server config in deployment.yaml\n```yaml\n      containers:\n      - name: nfs-exporter\n      \n        image: aixeshunter/nfs_exporter:v1.0\n        args:\n        - \"--nfs.storage-path=/opt/nfs1, /opt/nfs2, /opt/nfs3\"   # NFS storage mount path\n        - \"--nfs.address=192.168.0.2\"                            # NFS server IP address\n        ports:\n        - name: http-metrics\n          containerPort: 9689\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faixeshunter%2Fnfs_exporter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Faixeshunter%2Fnfs_exporter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faixeshunter%2Fnfs_exporter/lists"}