{"id":15172304,"url":"https://github.com/Blockdaemon/pyth-exporter","last_synced_at":"2025-10-26T02:31:09.502Z","repository":{"id":39705164,"uuid":"462438149","full_name":"Blockdaemon/pyth_exporter","owner":"Blockdaemon","description":"Prometheus exporter for Pyth Network publishers","archived":false,"fork":false,"pushed_at":"2024-12-11T23:31:48.000Z","size":386,"stargazers_count":8,"open_issues_count":5,"forks_count":4,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-01-31T13:43:27.490Z","etag":null,"topics":["forex","oracle","prometheus","prometheus-exporter","pyth","solana"],"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/Blockdaemon.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"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":"2022-02-22T19:08:00.000Z","updated_at":"2024-09-19T19:35:26.000Z","dependencies_parsed_at":"2023-01-28T13:21:24.421Z","dependency_job_id":"39799cdf-41f5-4bc5-b1a0-2d58440da526","html_url":"https://github.com/Blockdaemon/pyth_exporter","commit_stats":{"total_commits":66,"total_committers":3,"mean_commits":22.0,"dds":0.4696969696969697,"last_synced_commit":"dbc6a69bdec8ed2efe9fbf20fc712903eb0c89fe"},"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Blockdaemon%2Fpyth_exporter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Blockdaemon%2Fpyth_exporter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Blockdaemon%2Fpyth_exporter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Blockdaemon%2Fpyth_exporter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Blockdaemon","download_url":"https://codeload.github.com/Blockdaemon/pyth_exporter/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":238247978,"owners_count":19440879,"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":["forex","oracle","prometheus","prometheus-exporter","pyth","solana"],"created_at":"2024-09-27T10:00:37.555Z","updated_at":"2025-10-26T02:31:09.118Z","avatar_url":"https://github.com/Blockdaemon.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Pyth Network Prometheus Exporter\n\n## Summary\n\nPrometheus Exporter for Pyth Network on-chain metrics about a publisher.\n\n- Main repo: https://gitlab.com/Blockdaemon/solana/pyth_exporter\n- GitHub mirror: https://github.com/Blockdaemon/pyth_exporter\n\n## Building\n\n### Building from source\n\nThe Go 1.17 toolchain or newer is required to build from source.\n\nTo pull dependencies and build the publisher program, run the following:\n\n```shell\ngo build -o ./pyth_exporter .\n```\n\n### Docker image\n\nThis program is also available as a Docker image based on [Alpine Linux](https://alpinelinux.org).\n\nTo build the Docker image from source:\n\n```shell\ndocker build -t db-pyth .\n```\n\nThe GitLab CI integration builds Docker images for every branch and release:\n\n```shell\n# Latest master build\ndocker pull registry.gitlab.com/blockdaemon/solana/pyth_exporter/master:latest\n\n# Latest tagged release\ndocker pull registry.gitlab.com/blockdaemon/solana/pyth_exporter:latest\n```\n\n## Configuration\n\n```\nUsage of pyth_exporter:\n  -dev\n        Run in development mode\n  -env string\n        Pyth env (devnet, testnet, mainnet) (default \"mainnet\")\n  -listen string\n        Address where to serve debug info and metrics HTTP server (default \":8080\")\n  -log-level value\n        Log level\n  -products value\n        Pyth product keys (default all)\n  -program value\n        Pyth program key (derived from env)\n  -publishers value\n        Pyth publishers (default all)\n  -rpc string\n        Solana RPC URL\n  -ws string\n        Solana WebSocket RPC URL\n```\n\n## Deployment\n\n[./docker-compose.yml](./docker-compose.yml) defines a reference [Docker Compose](https://docs.docker.com/compose/) deployment on a single host.\n\nThe compose config includes the following services:\n- pyth_exporter (this repo)\n- Prometheus monitoring agent\n- Grafana monitoring UI\n\n### Requirements\n\nThe reference deployment requires Docker Compose: [Compose installation guide](https://docs.docker.com/compose/install/)\n\n### Configuration\n\nThe env vars file contains deployment-specific config.\nCopy the example config and adjust it.\n\n```shell\ncp docker.example.env docker.env\n$EDITOR docker.env\n```\n\n- `*_IMAGE`: Docker image strings\n- `SOLANA_RPC`: Solana RPC access\n- `SOLANA_WS`: Solana WebSocket access\n- `SOLANA_ENV`: Environment name (devnet, testnet, mainnet)\n\n### Operations\n\nStart all services\n\n```shell\ndocker-compose --env-file docker.env up -d\n```\n\nStop all services\n\n```shell\ndocker-compose down\n```\n\nStop all services and delete all data (!)\n\n```shell\ndocker-compose down -v --remove-orphans\n```\n\nView service status\n\n```shell\ndocker-compose ps\n```\n\nView service logs\n\n```shell\ndocker-compose logs\n```\n\n## Screenshots\n\n**Overview**\n\n![Overview](./docs/grafana-overview.png)\n\n**Status Matrix**\n\n![Status Matrix](./docs/grafana-status-matrix.png)\n\n**Aggregated Price**\n\n![Aggregated Price](./docs/grafana-price.png)\n\n**Multiple Price Components**\n\n![Multiple Price Components](./docs/grafana-price-components.png)\n\n**Single Price Component**\n\n![Single Price Component](./docs/grafana-price-published.png)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FBlockdaemon%2Fpyth-exporter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FBlockdaemon%2Fpyth-exporter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FBlockdaemon%2Fpyth-exporter/lists"}