{"id":15489481,"url":"https://github.com/larttyler/prometheus-client-bundle","last_synced_at":"2026-05-16T12:31:16.049Z","repository":{"id":56963969,"uuid":"173176216","full_name":"LartTyler/prometheus-client-bundle","owner":"LartTyler","description":"A Symfony bundle for the Prometheus monitoring system","archived":false,"fork":false,"pushed_at":"2020-09-08T18:53:49.000Z","size":47,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-05-30T10:13:50.203Z","etag":null,"topics":["client","php","prometheus","symfony-bundle"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/LartTyler.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":"2019-02-28T19:40:39.000Z","updated_at":"2019-03-15T15:05:27.000Z","dependencies_parsed_at":"2022-08-21T09:51:01.971Z","dependency_job_id":null,"html_url":"https://github.com/LartTyler/prometheus-client-bundle","commit_stats":null,"previous_names":[],"tags_count":16,"template":false,"template_full_name":null,"purl":"pkg:github/LartTyler/prometheus-client-bundle","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LartTyler%2Fprometheus-client-bundle","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LartTyler%2Fprometheus-client-bundle/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LartTyler%2Fprometheus-client-bundle/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LartTyler%2Fprometheus-client-bundle/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/LartTyler","download_url":"https://codeload.github.com/LartTyler/prometheus-client-bundle/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LartTyler%2Fprometheus-client-bundle/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":263966170,"owners_count":23536814,"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":["client","php","prometheus","symfony-bundle"],"created_at":"2024-10-02T07:06:03.464Z","updated_at":"2026-05-16T12:31:16.015Z","avatar_url":"https://github.com/LartTyler.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"## Getting Started\nTo add the bundle, run the following command.\n\n```shell\n$ composer require dbstudios/prometheus-client-bundle\n```\n\nIf your project is using [Symfony Flex](https://symfony.com/doc/4.1/setup/flex.html), the bundle should be enabled\nautomatically. If not, you will need to add `DaybreakStudios\\PrometheusClientBundle\\DaybreakStudiosPrometheusClientBundle`\nto your bundles file.\n\nNext, if your `config` directory, you'll need to add the base configuration for the bundle.\n\n```yaml\ndbstudios_prometheus:\n    adapter: DaybreakStudios\\PrometheusClient\\Adapter\\ApcuAdapter\n``` \n\nWhere the base configuration should be placed will depend on your Symfony version. For 3.4 and older, this should be\nin `app/config/config.yml`. For newer Symfony versions (4.0 and greater), this should be\n`config/packages/dbstudios_prometheus.yaml`.\n\nThe value of `adapter` must be the ID of a service extending `DaybreakStudios\\PrometheusClient\\Adapter\\AdapterInterface`.\nSee the documentation for [`dbstudios/prometheus-client`](https://github.com/LartTyler/prometheus-client) for a list of\nbuilt-in adapters.\n\n## Configuration\nA complete, annotated configuration for this bundle may be found below.\n\n```yaml\ndbstudios_prometheus:\n    # The ID of a service implementing DaybreakStudios\\PrometheusClient\\Adapter\\AdapterInterface. No services are\n    # registered by default, so you will need to choose an appropriate adapter for your environment, register it, then\n    # reference it here.\n    adapter: DaybreakStudios\\PrometheusClient\\Adapter\\ApcuAdapter\n    \n    # The ID of a service implementing DaybreakStudios\\PrometheusClient\\CollectorRegistryInterface, OR the\n    # fully-qualified class name of a class implementing the aforementioned interface. In the second case, the bundle\n    # will automatically register the provided class as a service, using the class name as it's service ID.\n    #\n    # If you're using the built-in collector registry, you do not need to provide a value here.\n    registry: DaybreakStudios\\PrometheusClient\\CollectorRegistry \n    \n    # The metrics section contains options for the built-in metrics endpoint listener, which provides the information\n    # Prometheus needs to scrape your application.\n    metrics:\n        # Whether or not the built-in metrics endpoint is enabled. If this option is false, you will need to implement\n        # the metrics endpoint on your own (see the section titled \"Custom Metrics Endpoint\").\n        enabled: true\n        \n        # The path to use for the metrics endpoint. If `metrics.enabled` is false, this option is ignored.\n        path: /metrics\n```\n\n## Custom Metrics Endpoint\nBy default, this bundle registers a listener that responds to any requests to `dbstudios_prometheus.metrics.path` with\nthe metrics data that Prometheus will need to scrape from your application. If you'd like to implement this endpoint on\nyour own, see `DaybreakStudios\\PrometheusClientBundle\\Listeners\\MetricsEndpointListener::onKernelRequest()` for an\nexample implementation.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flarttyler%2Fprometheus-client-bundle","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flarttyler%2Fprometheus-client-bundle","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flarttyler%2Fprometheus-client-bundle/lists"}