{"id":13574091,"url":"https://github.com/czerwonk/ping_exporter","last_synced_at":"2026-01-18T04:25:27.943Z","repository":{"id":38360929,"uuid":"125250476","full_name":"czerwonk/ping_exporter","owner":"czerwonk","description":"Prometheus exporter for ICMP echo requests using https://github.com/digineo/go-ping","archived":false,"fork":false,"pushed_at":"2025-08-25T14:18:09.000Z","size":5785,"stargazers_count":586,"open_issues_count":43,"forks_count":119,"subscribers_count":12,"default_branch":"main","last_synced_at":"2025-08-25T15:42:28.365Z","etag":null,"topics":["icmp","loss-detection","ping","prometheus","prometheus-exporter"],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/czerwonk.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":"CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2018-03-14T17:36:39.000Z","updated_at":"2025-08-25T13:57:26.000Z","dependencies_parsed_at":"2023-11-13T08:30:23.098Z","dependency_job_id":"baa1a0a6-55e0-4b63-b064-8ed4602f681d","html_url":"https://github.com/czerwonk/ping_exporter","commit_stats":null,"previous_names":[],"tags_count":13,"template":false,"template_full_name":null,"purl":"pkg:github/czerwonk/ping_exporter","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/czerwonk%2Fping_exporter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/czerwonk%2Fping_exporter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/czerwonk%2Fping_exporter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/czerwonk%2Fping_exporter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/czerwonk","download_url":"https://codeload.github.com/czerwonk/ping_exporter/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/czerwonk%2Fping_exporter/sbom","scorecard":{"id":315001,"data":{"date":"2025-08-11","repo":{"name":"github.com/czerwonk/ping_exporter","commit":"4345fe6f6ee2124c47be9c718c9939d952706339"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":4.2,"checks":[{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Code-Review","score":4,"reason":"Found 6/14 approved changesets -- score normalized to 4","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: no topLevel permission defined: .github/workflows/docker_latest.yml:1","Warn: no topLevel permission defined: .github/workflows/docker_tag.yml:1","Warn: no topLevel permission defined: .github/workflows/lint.yml:1","Warn: no topLevel permission defined: .github/workflows/release.yml:1","Warn: no topLevel permission defined: .github/workflows/test.yml:1","Info: no jobLevel write permissions found"],"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Dangerous-Workflow","score":10,"reason":"no dangerous workflow patterns detected","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: MIT License: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Branch-Protection","score":-1,"reason":"internal error: error during branchesHandler.setup: internal error: githubv4.Query: Resource not accessible by integration","details":null,"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"Pinned-Dependencies","score":0,"reason":"dependency not pinned by hash detected -- score normalized to 0","details":["Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/docker_latest.yml:16: update your workflow using https://app.stepsecurity.io/secureworkflow/czerwonk/ping_exporter/docker_latest.yml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/docker_latest.yml:19: update your workflow using https://app.stepsecurity.io/secureworkflow/czerwonk/ping_exporter/docker_latest.yml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/docker_latest.yml:26: update your workflow using https://app.stepsecurity.io/secureworkflow/czerwonk/ping_exporter/docker_latest.yml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/docker_latest.yml:37: update your workflow using https://app.stepsecurity.io/secureworkflow/czerwonk/ping_exporter/docker_latest.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/docker_tag.yml:13: update your workflow using https://app.stepsecurity.io/secureworkflow/czerwonk/ping_exporter/docker_tag.yml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/docker_tag.yml:16: update your workflow using https://app.stepsecurity.io/secureworkflow/czerwonk/ping_exporter/docker_tag.yml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/docker_tag.yml:23: update your workflow using https://app.stepsecurity.io/secureworkflow/czerwonk/ping_exporter/docker_tag.yml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/docker_tag.yml:39: update your workflow using https://app.stepsecurity.io/secureworkflow/czerwonk/ping_exporter/docker_tag.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/lint.yml:14: update your workflow using https://app.stepsecurity.io/secureworkflow/czerwonk/ping_exporter/lint.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/lint.yml:19: update your workflow using https://app.stepsecurity.io/secureworkflow/czerwonk/ping_exporter/lint.yml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/lint.yml:24: update your workflow using https://app.stepsecurity.io/secureworkflow/czerwonk/ping_exporter/lint.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/release.yml:13: update your workflow using https://app.stepsecurity.io/secureworkflow/czerwonk/ping_exporter/release.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/release.yml:16: update your workflow using https://app.stepsecurity.io/secureworkflow/czerwonk/ping_exporter/release.yml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/release.yml:21: update your workflow using https://app.stepsecurity.io/secureworkflow/czerwonk/ping_exporter/release.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/test.yml:18: update your workflow using https://app.stepsecurity.io/secureworkflow/czerwonk/ping_exporter/test.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/test.yml:23: update your workflow using https://app.stepsecurity.io/secureworkflow/czerwonk/ping_exporter/test.yml/main?enable=pin","Warn: containerImage not pinned by hash: Dockerfile:1","Warn: containerImage not pinned by hash: Dockerfile:7: pin your Docker image by updating alpine:latest to alpine:latest@sha256:4bcff63911fcb4448bd4fdacec207030997caf25e9bea4045fa6c8c44de311d1","Info:   0 out of   8 GitHub-owned GitHubAction dependencies pinned","Info:   0 out of   8 third-party GitHubAction dependencies pinned","Info:   0 out of   2 containerImage dependencies pinned"],"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"Packaging","score":10,"reason":"packaging workflow detected","details":["Info: Project packages its releases by way of GitHub Actions.: .github/workflows/docker_latest.yml:10"],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Signed-Releases","score":0,"reason":"Project has not signed or included provenance with any releases.","details":["Warn: release artifact 1.1.3 not signed: https://api.github.com/repos/czerwonk/ping_exporter/releases/149036306","Warn: release artifact 1.1.2 not signed: https://api.github.com/repos/czerwonk/ping_exporter/releases/148806525","Warn: release artifact 1.1.1 not signed: https://api.github.com/repos/czerwonk/ping_exporter/releases/148443253","Warn: release artifact 1.1.0 not signed: https://api.github.com/repos/czerwonk/ping_exporter/releases/112779255","Warn: release artifact 1.0.1 not signed: https://api.github.com/repos/czerwonk/ping_exporter/releases/83896645","Warn: release artifact 1.1.3 does not have provenance: https://api.github.com/repos/czerwonk/ping_exporter/releases/149036306","Warn: release artifact 1.1.2 does not have provenance: https://api.github.com/repos/czerwonk/ping_exporter/releases/148806525","Warn: release artifact 1.1.1 does not have provenance: https://api.github.com/repos/czerwonk/ping_exporter/releases/148443253","Warn: release artifact 1.1.0 does not have provenance: https://api.github.com/repos/czerwonk/ping_exporter/releases/112779255","Warn: release artifact 1.0.1 does not have provenance: https://api.github.com/repos/czerwonk/ping_exporter/releases/83896645"],"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 22 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}}]},"last_synced_at":"2025-08-17T23:59:38.593Z","repository_id":38360929,"created_at":"2025-08-17T23:59:38.593Z","updated_at":"2025-08-17T23:59:38.593Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28529529,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-18T00:39:45.795Z","status":"online","status_checked_at":"2026-01-18T02:00:07.578Z","response_time":98,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["icmp","loss-detection","ping","prometheus","prometheus-exporter"],"created_at":"2024-08-01T15:00:46.369Z","updated_at":"2026-01-18T04:25:27.931Z","avatar_url":"https://github.com/czerwonk.png","language":"Go","funding_links":[],"categories":["Go","Prometheus-Exporter"],"sub_categories":[],"readme":"# ping_exporter\n[![Go Report Card](https://goreportcard.com/badge/github.com/czerwonk/ping_exporter)](https://goreportcard.com/report/github.com/czerwonk/ping_exporter)\n\nPrometheus exporter for ICMP echo requests using https://github.com/digineo/go-ping\n\nThis is a simple server that scrapes go-ping stats and exports them via HTTP for\nPrometheus consumption. The go-ping library is build and maintained by Digineo GmbH.\nFor more information check the [source code][go-ping].\n\n[go-ping]: https://github.com/digineo/go-ping\n\n## Getting Started\n\n### Config file\n\nTargets can be specified in a YAML based config file:\n\n```yaml\ntargets:\n  - 8.8.8.8\n  - 8.8.4.4\n  - 2001:4860:4860::8888\n  - 2001:4860:4860::8844\n  - google.com:\n      asn: 15169\n\ndns:\n  refresh: 2m15s\n  nameserver: 1.1.1.1\n\nping:\n  interval: 2s\n  timeout: 3s\n  history-size: 42\n  payload-size: 120\n  fw-mark: 222\n\noptions:\n  disableIPv6: false\n```\n\nNote: domains are resolved (regularly) to their corresponding A and AAAA\nrecords (IPv4 and IPv6). By default, `ping_exporter` uses the system\nresolver to translate domain names to IP addresses. You can override the\nresolver address by specifying the `--dns.nameserver` flag when starting\nthe binary, e.g.\n\n```console\n$ # use Cloudflare's public DNS server\n$ ./ping_exporter --dns.nameserver=1.1.1.1:53 [other options]\n```\n\nThe configuration file is watched via inotify. If the configuration is changed,\nping_exporter will update the targets. To change any global options like the ping\ninterval or history size, you must restart the exporter.\n\n### Exported metrics\n\n- `ping_rtt_best_seconds`:          Best round trip time in seconds\n- `ping_rtt_worst_seconds`:         Worst round trip time in seconds\n- `ping_rtt_mean_seconds`:          Mean round trip time in seconds\n- `ping_rtt_std_deviation_seconds`: Standard deviation in seconds\n- `ping_loss_ratio`:                Packet loss as a value from 0.0 to 1.0\n\nEach metric has labels `ip` (the target's IP address), `ip_version`\n(4 or 6, corresponding to the IP version), and `target` (the target's\nname).\n\nAdditionally, a `ping_up` metric reports whether the exporter\nis running (and in which version).\n\n### Shell\n\nTo run the exporter:\n\n```console\n$ ./ping_exporter [options] target1 target2 ...\n```\n\nor\n\n```console\n$ ./ping_exporter --config.path my-config-file [options]\n```\n\nHelp on flags:\n\n```console\n$ ./ping_exporter --help\n```\n\nGetting the results for testing via cURL:\n\n```console\n$ curl http://localhost:9427/metrics\n```\n\n### Running as non-root user\n\nOn Linux systems `CAP_NET_RAW` is required to run `ping_exporter` as unpriviliged user.\n```console\n# setcap cap_net_raw+ep /path/to/ping_exporter\n```\n\nWhen run through a rootless Docker implementation on Linux, the flag `--cap-add=CAP_NET_RAW` should be added to the `docker run` invocation.\n\nIf being invoked via systemd, you can alternately just add the following\nsettings to the service's unit file in the `[Service]` section:\n\n```console\nCapabilityBoundingSet=CAP_NET_RAW\nAmbientCapabilities=CAP_NET_RAW\n```\n\n## Docker\n\nhttps://hub.docker.com/r/czerwonk/ping_exporter\n\nTo run the ping_exporter as a Docker container, run:\n\n```console\n$ docker run -p 9427:9427 -v /path/to/config/directory:/config:ro --name ping_exporter czerwonk/ping_exporter\n```\n\n## Kubernetes\nTo run the ping_exporter in Kubernetes, you can use the supplied helm chart\n\n### Prerequisites\n\n* Helm v3.0.0+\n\n### Installing the chart\n\nTo install the chart with the release name `ping-exporter`:\n```console\n$ helm repo add ping-exporter \"https://raw.githubusercontent.com/czerwonk/ping_exporter/main/dist/charts/\"\n\"ping-exporter\" has been added to your repositories\n\n$ helm repo update\nHang tight while we grab the latest from your chart repositories...\n...Successfully got an update from the \"ping-exporter\" chart repository\nUpdate Complete. ⎈Happy Helming!⎈\n\n$ helm install ping-exporter ping-exporter/ping-exporter\nNAME: ping-exporter\n...\n\n```\n\n### General parameters\n| Key | Type | Default | Description |\n|-----|------|---------|-------------|\n| affinity | object | `{}` | [Affinity] |\n| args | list | `[]` | Add additional [command-line arguments] when running ping_exporter |\n| config | object | see [values.yaml] | Contains the contents of ping_exporter's [config file] |\n| fullnameOverride | string | `\"\"` | String to fully override `\"ping-exporter.fullname\"` |\n| image.repository | string | `\"czerwonk/ping_exporter\"` | String to override the docker image repository |\n| image.pullPolicy | string | `\"IfNotPresent\"` | String to override the pullPolicy |\n| image.tag | string | `\"\"` | Overrides the ping_exporter image tag whose default is the chart `appVersion` |\n| imagePullSecrets | list | `[]` | If defined, uses a secret to pull an image from a private Docker registry or repository |\n| ingress.enabled | bool | `false` | Enable an ingress resource for the ping_exporter |\n| ingress.className | string | `\"\"` | Defines which ingress controller will implement the resource |\n| ingress.annotations | object | `{}` | Annotations to be added to the ingress resource |\n| ingress.hosts | list | `[{\"host\": \"chart-example.local\", \"paths\":[{\"path\": \"/\", \"pathType\": \"ImplementationSpecific\"}]}]` | Defines the [ingress] hosts and path to proxy |\n| ingress.tls | list | `[]` | Defines the secret(s) containing TLS certs for the [ingress] host |\n| nameOverride | string | `\"\"` | Provide a name in place of `ping-exporter` |\n| podAnnotations | object | `{}` | Annotations to be added to ping_exporter pods |\n| podSecurityContext | object | `{}` | Sets the container-level security context |\n| replicaCount | number | `1` | Override the number of replicas running |\n| resources | object | `{}` | Defines the ping_exporter pod's resource cpu/memory limits and requests |\n| nodeSelector | object | `{}` | [Node selector] |\n| securityContext.capabilities | object | `{\"add\": [\"CAP_NET_RAW\"]}` | This object overrided the pod's security context capabilities |\n| service.type | string | `\"ClusterIP\"` | Sets the type of kubernetes service which is created for ping_exporter |\n| service.port | number | `9427` | Sets the port in which the kubernetes service will listen on and communicate with the ping_exporter pod |\n| service.annotations | object | `{}` | Annotations applied to the kubernetes service |\n| serviceAccount.create | bool | `true` | Create a service account for the application  |\n| serviceAccount.annotations | object | `{}` | Annotations applied to created service account |\n| serviceAccount.name | string | `\"\"` | Overrides the application's service account name which defaults to `\"ping-exporter.fullname\"` |\n| tolerations | list | `[]` | [Tolerations] | \n| testConnection.enabled | bool | `true` | Enable the test connection pod for the ping_exporter\n\n\n## Changes from previous versions\n\n### `ping_loss_ratio` vs `ping_loss_percent`\n\nPrevious versions of the exporter reported packet loss via a metric named\n`ping_loss_percent`.  This was somewhat misleading / wrong, because it never\nactually reported a percent value (it was always a value between 0 and 1).  To\nmake this more clear, and to match with [Prometheus best\npractices](https://prometheus.io/docs/practices/naming/#base-units), this\nmetric has been renamed to `ping_loss_ratio` instead.\n\nIf you had already been using an earlier version and want to continue to record\nthis metric in Prometheus using the old name, this can be done using the\n`metric_relabel_configs` options in the Prometheus config, like so:\n\n```console\n- job_name: \"ping\"\n  static_configs:\n    \u003c...\u003e\n  metric_relabel_configs:\n    - source_labels: [__name__]\n      regex: \"ping_loss_ratio\"\n      target_label: __name__\n      replacement: \"ping_loss_percent\"\n```\n\n### Time units\n\nAs per the recommendations for [Prometheus best\npractices](https://prometheus.io/docs/practices/naming/#base-units), the\nexporter reports time values in seconds by default.  Previous versions\ndefaulted to reporting milliseconds by default (with metric names ending in\n`_ms` instead of `_seconds`), so if you are upgrading from an older version,\nthis may require some adjustment.\n\nIt is possible to change the ping exporter to report times in milliseconds\ninstead (this is not recommended, but may be useful for compatibility with\nolder versions, etc).  To do this, the `metrics.rttunit` command-line switch\ncan be used:\n\n```console\n$ # keep using seconds (default)\n$ ./ping_exporter --metrics.rttunit=s [other options]\n$ # use milliseconds instead\n$ ./ping_exporter --metrics.rttunit=ms [other options]\n$ # report both millis and seconds\n$ ./ping_exporter --metrics.rttunit=both [other options]\n```\n\nIf you used the `ping_exporter` in the past, and want to migrate, start\nusing `--metrics.rttunit=both` now. This gives you the opportunity to\nupdate all your alerts, dashboards, and other software depending on ms\nvalues to use proper scale (you \"just\" need to apply a factor of 1000\non everything). When you're ready, you just need to switch to\n`--metrics.rttunit=s` (or just remove the command-line option entirely).\n\n### Deprecated metrics\n\nPrevious versions of this exporter provided an older form of the RTT metrics\nas:\n\n- `ping_rtt_ms`: Round trip times in millis\n\nThis metric had a label `type` with one of the following values:\n\n- `best` denotes best round trip time\n- `worst` denotes worst round trip time\n- `mean` denotes mean round trip time\n- `std_dev` denotes standard deviation\n\nThese metrics are no longer exported by default, but can be enabled for\nbackwards compatibility using the `--metrics.deprecated` command-line flag:\n\n```console\n$ # also export deprecated metrics\n$ ./ping_exporter --metrics.deprecated=enable [other options]\n$ # or omit deprecated metrics (default)\n$ ./ping_exporter --metrics.deprecated=disable [other options]\n```\n\n## Contribute\n\nSimply fork and create a pull-request. We'll try to respond in a timely fashion.\n\n## License\n\nMIT License, Copyright (c) 2018\nPhilip Berndroth [pberndro](https://twitter.com/pberndro)\nDaniel Czerwonk [dan_nrw](https://twitter.com/dan_nrw)\n\n[Node selector]: https://kubernetes.io/docs/user-guide/node-selection/\n[Ingress]: https://kubernetes.io/docs/concepts/services-networking/ingress/\n[Tolerations]: https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/\n[Affinity]: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/\n[command-line arguments]: https://github.com/czerwonk/ping_exporter#different-time-unit\n[config file]: https://github.com/czerwonk/ping_exporter#config-file\n[values.yaml]: https://github.com/czerwonk/ping_exporter/blob/main/dist/charts/ping-exporter/values.yaml\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fczerwonk%2Fping_exporter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fczerwonk%2Fping_exporter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fczerwonk%2Fping_exporter/lists"}