{"id":19040872,"url":"https://github.com/cloudfoundry/bosh_exporter","last_synced_at":"2025-04-23T21:24:05.498Z","repository":{"id":11717139,"uuid":"70347870","full_name":"cloudfoundry/bosh_exporter","owner":"cloudfoundry","description":"BOSH Prometheus Exporter","archived":false,"fork":false,"pushed_at":"2025-04-11T10:13:41.000Z","size":19787,"stargazers_count":23,"open_issues_count":0,"forks_count":17,"subscribers_count":38,"default_branch":"master","last_synced_at":"2025-04-11T11:57:52.224Z","etag":null,"topics":["bosh","cloud-foundry","metrics","prometheus"],"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/cloudfoundry.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2016-10-08T17:44:51.000Z","updated_at":"2025-04-11T10:13:39.000Z","dependencies_parsed_at":"2023-11-13T12:25:34.293Z","dependency_job_id":"56640904-5b20-491d-bc50-9209bdd04d72","html_url":"https://github.com/cloudfoundry/bosh_exporter","commit_stats":null,"previous_names":["cloudfoundry-community/bosh_exporter","cloudfoundry/bosh_exporter","bosh-prometheus/bosh_exporter"],"tags_count":29,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cloudfoundry%2Fbosh_exporter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cloudfoundry%2Fbosh_exporter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cloudfoundry%2Fbosh_exporter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cloudfoundry%2Fbosh_exporter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cloudfoundry","download_url":"https://codeload.github.com/cloudfoundry/bosh_exporter/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250515692,"owners_count":21443467,"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":["bosh","cloud-foundry","metrics","prometheus"],"created_at":"2024-11-08T22:25:52.471Z","updated_at":"2025-04-23T21:24:05.477Z","avatar_url":"https://github.com/cloudfoundry.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# BOSH Prometheus Exporter [![Build Status](https://travis-ci.org/cloudfoundry/bosh_exporter.png)](https://travis-ci.org/cloudfoundry/bosh_exporter)\n\nA [Prometheus][prometheus] exporter for [BOSH][bosh] metrics. Please refer to the [FAQ][faq] for general questions about\nthis exporter.\n\n## Architecture overview\n\n![](https://cdn.rawgit.com/cloudfoundry/bosh_exporter/master/architecture/architecture.svg)\n\n## Installation\n\n### Binaries\n\nDownload the already existing [binaries][binaries] for your platform:\n\n```bash\n$ ./bosh_exporter \u003cflags\u003e\n```\n\n### From source\n\nUsing the standard `go install` (you must have [Go][golang] already installed in your local machine):\n\n```bash\n$ go install github.com/cloudfoundry/bosh_exporter\n$ bosh_exporter \u003cflags\u003e\n```\n\n### Docker\n\nTo run the bosh exporter as a Docker container, run:\n\n```bash\n$ docker run -p 9190:9190 boshprometheus/bosh-exporter \u003cflags\u003e\n```\n\n### Cloud Foundry\n\nThe exporter can be deployed to an already existing [Cloud Foundry][cloudfoundry] environment:\n\n```bash\n$ git clone https://github.com/cloudfoundry/bosh_exporter.git\n$ cd bosh_exporter\n```\n\nModify the included [application manifest file][manifest] to include your BOSH properties. Then you can push the\nexporter to your Cloud Foundry environment:\n\n```bash\n$ cf push\n```\n\n### BOSH\n\nThis exporter can be deployed using the [Prometheus BOSH Release][prometheus-boshrelease].\n\n## Usage\n\n### Flags\n\n| Flag / Environment Variable                                          | Required | Default                   | Description                                                                                                                                                                                                                           |\n|----------------------------------------------------------------------|----------|---------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `bosh.url`\u003cbr /\u003e`BOSH_EXPORTER_BOSH_URL`                             | Yes      |                           | BOSH URL                                                                                                                                                                                                                              |\n| `bosh.username`\u003cbr /\u003e`BOSH_EXPORTER_BOSH_USERNAME`                   | *[1]*    |                           | BOSH Username                                                                                                                                                                                                                         |\n| `bosh.password`\u003cbr /\u003e`BOSH_EXPORTER_BOSH_PASSWORD`                   | *[1]*    |                           | BOSH Password                                                                                                                                                                                                                         |\n| `bosh.uaa.client-id`\u003cbr /\u003e`BOSH_EXPORTER_BOSH_UAA_CLIENT_ID`         | *[1]*    |                           | BOSH UAA Client ID                                                                                                                                                                                                                    |\n| `bosh.uaa.client-secret`\u003cbr /\u003e`BOSH_EXPORTER_BOSH_UAA_CLIENT_SECRET` | *[1]*    |                           | BOSH UAA Client Secret                                                                                                                                                                                                                |\n| `bosh.log-level`\u003cbr /\u003e`BOSH_EXPORTER_BOSH_LOG_LEVEL`                 | No       | `ERROR`                   | BOSH Log Level (`DEBUG`, `INFO`, `WARN`, `ERROR`, `NONE`)                                                                                                                                                                             |\n| `bosh.ca-cert-file`\u003cbr /\u003e`BOSH_EXPORTER_BOSH_CA_CERT_FILE`           | Yes      |                           | BOSH CA Certificate file                                                                                                                                                                                                              |\n| `filter.deployments`\u003cbr /\u003e`BOSH_EXPORTER_FILTER_DEPLOYMENTS`         | No       |                           | Comma separated deployments to filter                                                                                                                                                                                                 |\n| `filter.azs`\u003cbr /\u003e`BOSH_EXPORTER_FILTER_AZS`                         | No       |                           | Comma separated AZs to filter                                                                                                                                                                                                         |\n| `filter.collectors`\u003cbr /\u003e`BOSH_EXPORTER_FILTER_COLLECTORS`           | No       |                           | Comma separated collectors to filter. If not set, all collectors will be enabled  (`Deployments`, `Jobs`, `ServiceDiscovery`)                                                                                                         |\n| `filter.cidrs`\u003cbr /\u003e`BOSH_EXPORTER_FILTER_CIDRS`                     | No       | `0.0.0.0/0`               | Comma separated CIDR to filter instance IPs                                                                                                                                                                                           |\n| `metrics.namespace`\u003cbr /\u003e`BOSH_EXPORTER_METRICS_NAMESPACE`           | No       | `bosh`                    | Metrics Namespace                                                                                                                                                                                                                     |\n| `metrics.environment`\u003cbr /\u003e`BOSH_EXPORTER_METRICS_ENVIRONMENT`       | Yes      |                           | Environment label to be attached to metrics                                                                                                                                                                                           |\n| `sd.filename`\u003cbr /\u003e`BOSH_EXPORTER_SD_FILENAME`                       | No       | `bosh_target_groups.json` | Full path to the Service Discovery output file                                                                                                                                                                                        |\n| `sd.processes_regexp`\u003cbr /\u003e`BOSH_EXPORTER_SD_PROCESSES_REGEXP`       | No       |                           | Regexp to filter Service Discovery processes names                                                                                                                                                                                    |\n| `web.listen-address`\u003cbr /\u003e`BOSH_EXPORTER_WEB_LISTEN_ADDRESS`         | No       | `:9190`                   | Address to listen on for web interface and telemetry                                                                                                                                                                                  |\n| `web.telemetry-path`\u003cbr /\u003e`BOSH_EXPORTER_WEB_TELEMETRY_PATH`         | No       | `/metrics`                | Path under which to expose Prometheus metrics                                                                                                                                                                                         |\n| `web.auth.username`\u003cbr /\u003e`BOSH_EXPORTER_WEB_AUTH_USERNAME`           | No       |                           | Username for web interface basic auth                                                                                                                                                                                                 |\n| `web.auth.password`\u003cbr /\u003e`BOSH_EXPORTER_WEB_AUTH_PASSWORD`           | No       |                           | Password for web interface basic auth                                                                                                                                                                                                 |\n| `web.tls.cert_file`\u003cbr /\u003e`BOSH_EXPORTER_WEB_TLS_CERTFILE`            | No       |                           | Path to a file that contains the TLS certificate (PEM format). If the certificate is signed by a certificate authority, the file should be the concatenation of the server's certificate, any intermediates, and the CA's certificate |\n| `web.tls.key_file`\u003cbr /\u003e`BOSH_EXPORTER_WEB_TLS_KEYFILE`              | No       |                           | Path to a file that contains the TLS private key (PEM format)                                                                                                                                                                         |\n\n*[1]* When BOSH delegates user managament to [UAA][bosh_uaa], either `bosh.username` and `bosh.password`\nor `bosh.uaa.client-id` and `bosh.uaa.client-secret` flags may be used; otherwise `bosh.username` and `bosh.password`\nwill be required. When using [UAA][bosh_uaa] and the `bosh.username` and `bosh.password` authentication method, tokens\nare not refreshed, so after a period of time the exporter will be unable to communicate with the BOSH API, so use this\nmethod only when testing the exporter. For production, it is recommended to use the `bosh.uaa.client-id`\nand `bosh.uaa.client-secret` authentication method.\n\n### Metrics\n\nThe exporter returns the following metrics:\n\n| Metric                                               | Description                                                                                        | Labels                                  |\n|------------------------------------------------------|----------------------------------------------------------------------------------------------------|-----------------------------------------|\n| *metrics.namespace*\\_scrapes\\_total                  | Total number of times BOSH was scraped for metrics                                                 | `environment`, `bosh_name`, `bosh_uuid` |\n| *metrics.namespace*\\_scrape\\_errors\\_total           | Total number of times an error occured scraping BOSH                                               | `environment`, `bosh_name`, `bosh_uuid` |\n| *metrics.namespace*\\_last\\_scrape\\_error             | Whether the last scrape of metrics from BOSH resulted in an error (`1` for error, `0` for success) | `environment`, `bosh_name`, `bosh_uuid` |\n| *metrics.namespace*\\_last\\_scrape\\_timestamp         | Number of seconds since 1970 since last scrape from BOSH                                           | `environment`, `bosh_name`, `bosh_uuid` |\n| *metrics.namespace*\\_last\\_scrape\\_duration\\_seconds | Duration of the last scrape from BOSH                                                              | `environment`, `bosh_name`, `bosh_uuid` |\n\nThe exporter returns the following `Deployments` metrics:\n\n| Metric                                                            | Description                                                                     | Labels                                                                                                                               |\n|-------------------------------------------------------------------|---------------------------------------------------------------------------------|--------------------------------------------------------------------------------------------------------------------------------------|\n| *metrics.namespace*\\_deployment\\_release\\_info                    | Labeled BOSH Deployment Release Info with a constant `1` value                  | `environment`, `bosh_name`, `bosh_uuid`, `bosh_deployment`, `bosh_release_name`, `bosh_release_version`                              |\n| *metrics.namespace*\\_deployment\\_release\\_job\\_info               | Labeled BOSH Deployment Release Job Info with a constant `1` value              | `environment`, `bosh_name`, `bosh_uuid`, `bosh_deployment`, `bosh_release_name`, `bosh_release_version`, `bosh_release_job_name`     |\n| *metrics.namespace*\\_deployment\\_release\\_package\\_info           | Labeled BOSH Deployment Release Package Info with a constant `1` value          | `environment`, `bosh_name`, `bosh_uuid`, `bosh_deployment`, `bosh_release_name`, `bosh_release_version`, `bosh_release_package_name` |\n| *metrics.namespace*\\_deployment\\_stemcell\\_info                   | Labeled BOSH Deployment Stemcell Info with a constant `1` value                 | `environment`, `bosh_name`, `bosh_uuid`, `bosh_deployment`, `bosh_stemcell_name`, `bosh_stemcell_version`, `bosh_stemcell_os_name`   |\n| *metrics.namespace*\\_deployment\\_instances                        | Number of instances in the deployment                                           | `environment`, `bosh_name`, `bosh_uuid`, `bosh_deployment`, `bosh_vm_type`                                                           |\n| *metrics.namespace*\\_last\\_deployments\\_scrape\\_timestamp         | Number of seconds since 1970 since last scrape of Deployments metrics from BOSH | `environment`, `bosh_name`, `bosh_uuid`                                                                                              |\n| *metrics.namespace*\\_last\\_deployments\\_scrape\\_duration\\_seconds | Duration of the last scrape of Deployments metrics from BOSH                    | `environment`, `bosh_name`, `bosh_uuid`                                                                                              |\n\nThe exporter returns the following `Jobs` metrics:\n\n| Metric                                                     | Description                                                                                                                 | Labels                                                                                                                                                                                                                                   |\n|------------------------------------------------------------|-----------------------------------------------------------------------------------------------------------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| *metrics.namespace*\\_job\\_healthy                          | BOSH Job Healthy (1 for healthy, 0 for unhealthy)                                                                           | `environment`, `bosh_name`, `bosh_uuid`, `bosh_deployment`, `bosh_job_name`, `bosh_job_id`, `bosh_job_index`, `bosh_job_az`, `bosh_job_ip`                                                                                               |\n| *metrics.namespace*\\_job\\_load\\_avg01                      | BOSH Job Load avg01                                                                                                         | `environment`, `bosh_name`, `bosh_uuid`, `bosh_deployment`, `bosh_job_name`, `bosh_job_id`, `bosh_job_index`, `bosh_job_az`, `bosh_job_ip`                                                                                               |\n| *metrics.namespace*\\_job\\_load\\_avg05                      | BOSH Job Load avg05                                                                                                         | `environment`, `bosh_name`, `bosh_uuid`, `bosh_deployment`, `bosh_job_name`, `bosh_job_id`, `bosh_job_index`, `bosh_job_az`, `bosh_job_ip`                                                                                               |\n| *metrics.namespace*\\_job\\_load\\_avg15                      | BOSH Job Load avg15                                                                                                         | `environment`, `bosh_name`, `bosh_uuid`, `bosh_deployment`, `bosh_job_name`, `bosh_job_id`, `bosh_job_index`, `bosh_job_az`, `bosh_job_ip`                                                                                               |\n| *metrics.namespace*\\_job\\_cpu\\_sys                         | BOSH Job CPU System                                                                                                         | `environment`, `bosh_name`, `bosh_uuid`, `bosh_deployment`, `bosh_job_name`, `bosh_job_id`, `bosh_job_index`, `bosh_job_az`, `bosh_job_ip`                                                                                               |\n| *metrics.namespace*\\_job\\_cpu\\_user                        | BOSH Job CPU User                                                                                                           | `environment`, `bosh_name`, `bosh_uuid`, `bosh_deployment`, `bosh_job_name`, `bosh_job_id`, `bosh_job_index`, `bosh_job_az`, `bosh_job_ip`                                                                                               |\n| *metrics.namespace*\\_job\\_cpu\\_wait                        | BOSH Job CPU Wait                                                                                                           | `environment`, `bosh_name`, `bosh_uuid`, `bosh_deployment`, `bosh_job_name`, `bosh_job_id`, `bosh_job_index`, `bosh_job_az`, `bosh_job_ip`                                                                                               |\n| *metrics.namespace*\\_job\\_mem\\_kb                          | BOSH Job Memory KB                                                                                                          | `environment`, `bosh_name`, `bosh_uuid`, `bosh_deployment`, `bosh_job_name`, `bosh_job_id`, `bosh_job_index`, `bosh_job_az`, `bosh_job_ip`                                                                                               |\n| *metrics.namespace*\\_job\\_mem\\_percent                     | BOSH Job Memory Percent                                                                                                     | `environment`, `bosh_name`, `bosh_uuid`, `bosh_deployment`, `bosh_job_name`, `bosh_job_id`, `bosh_job_index`, `bosh_job_az`, `bosh_job_ip`                                                                                               |\n| *metrics.namespace*\\_job\\_swap\\_kb                         | BOSH Job Swap KB                                                                                                            | `environment`, `bosh_name`, `bosh_uuid`, `bosh_deployment`, `bosh_job_name`, `bosh_job_id`, `bosh_job_index`, `bosh_job_az`, `bosh_job_ip`                                                                                               |\n| *metrics.namespace*\\_job\\_swap\\_percent                    | BOSH Job Swap Percent                                                                                                       | `environment`, `bosh_name`, `bosh_uuid`, `bosh_deployment`, `bosh_job_name`, `bosh_job_id`, `bosh_job_index`, `bosh_job_az`, `bosh_job_ip`                                                                                               |\n| *metrics.namespace*\\_job\\_system\\_disk\\_inode\\_percent     | BOSH Job System Disk Inode Percent                                                                                          | `environment`, `bosh_name`, `bosh_uuid`, `bosh_deployment`, `bosh_job_name`, `bosh_job_id`, `bosh_job_index`, `bosh_job_az`, `bosh_job_ip`                                                                                               |\n| *metrics.namespace*\\_job\\_system\\_disk\\_percent            | BOSH Job System Disk Percent                                                                                                | `environment`, `bosh_name`, `bosh_uuid`, `bosh_deployment`, `bosh_job_name`, `bosh_job_id`, `bosh_job_index`, `bosh_job_az`, `bosh_job_ip`                                                                                               |\n| *metrics.namespace*\\_job\\_ephemeral\\_disk\\_inode\\_percent  | BOSH Job Ephemeral Disk Inode Percent                                                                                       | `environment`, `bosh_name`, `bosh_uuid`, `bosh_deployment`, `bosh_job_name`, `bosh_job_id`, `bosh_job_index`, `bosh_job_az`, `bosh_job_ip`                                                                                               |\n| *metrics.namespace*\\_job\\_ephemeral\\_disk\\_percent         | BOSH Job Ephemeral Disk Percent                                                                                             | `environment`, `bosh_name`, `bosh_uuid`, `bosh_deployment`, `bosh_job_name`, `bosh_job_id`, `bosh_job_index`, `bosh_job_az`, `bosh_job_ip`                                                                                               |\n| *metrics.namespace*\\_job\\_persistent\\_disk\\_inode\\_percent | BOSH Job Persistent Disk Inode Percent                                                                                      | `environment`, `bosh_name`, `bosh_uuid`, `bosh_deployment`, `bosh_job_name`, `bosh_job_id`, `bosh_job_index`, `bosh_job_az`, `bosh_job_ip`                                                                                               |\n| *metrics.namespace*\\_job\\_persistent\\_disk\\_percent        | BOSH Job Persistent Disk Percent                                                                                            | `environment`, `bosh_name`, `bosh_uuid`, `bosh_deployment`, `bosh_job_name`, `bosh_job_id`, `bosh_job_index`, `bosh_job_az`, `bosh_job_ip`                                                                                               |\n| *metrics.namespace*\\_job\\_process\\_info                    | BOSH Job Process Info with a constant '1' value. Release can be found only if process name is the same as release job name. | `environment`, `bosh_name`, `bosh_uuid`, `bosh_deployment`, `bosh_job_name`, `bosh_job_id`, `bosh_job_index`, `bosh_job_az`, `bosh_job_ip`, `bosh_job_process_name`, `bosh_job_process_release_name`, `bosh_job_process_release_version` |\n| *metrics.namespace*\\_job\\_process\\_healthy                 | BOSH Job Process Healthy (1 for healthy, 0 for unhealthy)                                                                   | `environment`, `bosh_name`, `bosh_uuid`, `bosh_deployment`, `bosh_job_name`, `bosh_job_id`, `bosh_job_index`, `bosh_job_az`, `bosh_job_ip`, `bosh_job_process_name`                                                                      |\n| *metrics.namespace*\\_job\\_process\\_uptime\\_seconds         | BOSH Job Process Uptime in seconds                                                                                          | `environment`, `bosh_name`, `bosh_uuid`, `bosh_deployment`, `bosh_job_name`, `bosh_job_id`, `bosh_job_index`, `bosh_job_az`, `bosh_job_ip`, `bosh_job_process_name`                                                                      |\n| *metrics.namespace*\\_job\\_process\\_cpu\\_total              | BOSH Job Process CPU Total                                                                                                  | `environment`, `bosh_name`, `bosh_uuid`, `bosh_deployment`, `bosh_job_name`, `bosh_job_id`, `bosh_job_index`, `bosh_job_az`, `bosh_job_ip`, `bosh_job_process_name`                                                                      |\n| *metrics.namespace*\\_job\\_process\\_mem\\_kb                 | BOSH Job Process Memory KB                                                                                                  | `environment`, `bosh_name`, `bosh_uuid`, `bosh_deployment`, `bosh_job_name`, `bosh_job_id`, `bosh_job_index`, `bosh_job_az`, `bosh_job_ip`, `bosh_job_process_name`                                                                      |\n| *metrics.namespace*\\_job\\_process\\_mem\\_percent            | BOSH Job Process Memory Percent                                                                                             | `environment`, `bosh_name`, `bosh_uuid`, `bosh_deployment`, `bosh_job_name`, `bosh_job_id`, `bosh_job_index`, `bosh_job_az`, `bosh_job_ip`, `bosh_job_process_name`                                                                      |\n| *metrics.namespace*\\_last\\_jobs\\_scrape\\_timestamp         | Number of seconds since 1970 since last scrape of Job metrics from BOSH                                                     | `environment`, `bosh_name`, `bosh_uuid`                                                                                                                                                                                                  |\n| *metrics.namespace*\\_last\\_jobs\\_scrape\\_duration\\_seconds | Duration of the last scrape of Job metrics from BOSH                                                                        | `environment`, `bosh_name`, `bosh_uuid`                                                                                                                                                                                                  |\n\nThe exporter returns the following `ServiceDiscovery` metrics:\n\n| Metric                                                                   | Description                                                                   | Labels                                  |\n|--------------------------------------------------------------------------|-------------------------------------------------------------------------------|-----------------------------------------|\n| *metrics.namespace*\\_last\\_service\\_discovery\\_scrape\\_timestamp         | Number of seconds since 1970 since last scrape of Service Discovery from BOSH | `environment`, `bosh_name`, `bosh_uuid` |\n| *metrics.namespace*\\_last\\_service\\_discovery\\_scrape\\_duration\\_seconds | Duration of the last scrape of Service Discovery from BOSH                    | `environment`, `bosh_name`, `bosh_uuid` |\n\n### Service Discovery\n\nIf the `ServiceDiscovery` collector is enabled, the exporter will write a `json` file at the `sd.filename` location\ncontaining a list of static configs that can be used with the Prometheus [file-based service discovery][file_sd_config]\nmechanism:\n\n```json\n[\n  {\n    \"targets\": [\n      \"10.244.0.12\"\n    ],\n    \"labels\": {\n      \"__meta_bosh_job_process_name\": \"bosh_exporter\"\n    }\n  },\n  {\n    \"targets\": [\n      \"10.244.0.11\",\n      \"10.244.0.12\",\n      \"10.244.0.13\",\n      \"10.244.0.14\"\n    ],\n    \"labels\": {\n      \"__meta_bosh_deployment\": \"deployment1\",\n      \"__meta_bosh_deployment_releases\": \"exporters_release:1.0,other_release:0.2\",\n      \"__meta_bosh_job_process_name\": \"node_exporter\",\n      \"__meta_bosh_job_process_release\":\"exporters_release:1.0\"\n    }\n  }\n]\n```\n\n[!NOTE]\n`__meta_bosh_job_process_release` has the same value as the labels: `bosh_job_process_release_name`:`bosh_job_process_release_version`.\nThe `process release` can be found only if the `process name` (label `bosh_job_process_name`) is the same as `BOSH release job name`.\n`BOSH release job name` is not the same as the label `bosh_job_name` which is the `instance group name` (BOSH `deployment manifest`).\n\n\nThe list of targets can be filtered using the `sd.processes_regexp` flag.\n\n[Prometheus file-based service discovery](https://prometheus.io/docs/prometheus/latest/configuration/configuration/#file_sd_config) example:\n```yaml\n- job_name: node_exporter\n  metrics_path: /metrics\n  scheme: http\n  file_sd_configs:\n    - files:\n        - /var/vcap/store/bosh_exporter/bosh_target_groups.json\n  relabel_configs:\n    - source_labels: [ __meta_bosh_job_process_name ]\n      regex: 'node_exporter'\n      action: keep\n    - source_labels: [ __meta_bosh_deployment_releases ]\n      regex: '.*exporters_release:1\\..*'\n      action: keep\n\n```\n\n### Filtering IPs\n\nAvailable instance IPs can be filtered using the `filter.cidrs` flag.\n\nThe first IP that matches a CIDR is used as target. CIDRs are tested in the order specified by the comma-seperated list.\nThe instance is dropped if no IP is included in any of the CIDRs.\n\n## Contributing\n\nRefer to the [contributing guidelines][contributing].\n\n## License\n\nApache License 2.0, see [LICENSE][license].\n\n[binaries]: https://github.com/cloudfoundry/bosh_exporter/releases\n\n[bosh]: https://bosh.io\n\n[bosh_uaa]: https://bosh.io/docs/director-users-uaa/\n\n[cloudfoundry]: https://www.cloudfoundry.org/\n\n[contributing]: https://github.com/cloudfoundry/bosh_exporter/blob/master/CONTRIBUTING.md\n\n[faq]: https://github.com/cloudfoundry/bosh_exporter/blob/master/FAQ.md\n\n[file_sd_config]: https://prometheus.io/docs/prometheus/latest/configuration/configuration/#file_sd_config\n\n[golang]: https://go.dev/\n\n[license]: https://github.com/cloudfoundry/bosh_exporter/blob/master/LICENSE\n\n[manifest]: https://github.com/cloudfoundry/bosh_exporter/blob/master/manifest.yml\n\n[prometheus]: https://prometheus.io/\n\n[prometheus-boshrelease]: https://github.com/bosh-prometheus/prometheus-boshrelease\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcloudfoundry%2Fbosh_exporter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcloudfoundry%2Fbosh_exporter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcloudfoundry%2Fbosh_exporter/lists"}