{"id":25517834,"url":"https://github.com/foxdalas/sphinx_exporter","last_synced_at":"2025-07-10T17:32:28.923Z","repository":{"id":26430954,"uuid":"104485835","full_name":"foxdalas/sphinx_exporter","owner":"foxdalas","description":"Exports metrics from sphinx servers for consumption by Prometheus.","archived":false,"fork":false,"pushed_at":"2025-03-31T03:12:58.000Z","size":2246,"stargazers_count":21,"open_issues_count":1,"forks_count":9,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-10T22:43:54.214Z","etag":null,"topics":["docker-image","prometheus","sphinx","sphinx-exporter"],"latest_commit_sha":null,"homepage":"","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/foxdalas.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","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,"zenodo":null}},"created_at":"2017-09-22T14:48:28.000Z","updated_at":"2025-01-20T07:16:22.000Z","dependencies_parsed_at":"2024-11-12T03:24:05.177Z","dependency_job_id":"59b05da2-9f58-43f1-85b0-061b476bbd37","html_url":"https://github.com/foxdalas/sphinx_exporter","commit_stats":null,"previous_names":[],"tags_count":17,"template":false,"template_full_name":null,"purl":"pkg:github/foxdalas/sphinx_exporter","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/foxdalas%2Fsphinx_exporter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/foxdalas%2Fsphinx_exporter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/foxdalas%2Fsphinx_exporter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/foxdalas%2Fsphinx_exporter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/foxdalas","download_url":"https://codeload.github.com/foxdalas/sphinx_exporter/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/foxdalas%2Fsphinx_exporter/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":264619378,"owners_count":23638445,"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-image","prometheus","sphinx","sphinx-exporter"],"created_at":"2025-02-19T15:38:04.422Z","updated_at":"2025-07-10T17:32:28.906Z","avatar_url":"https://github.com/foxdalas.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Sphinx Exporter for Prometheus\n\n[![GitHub Workflow Status (branch)](https://img.shields.io/github/workflow/status/foxdalas/sphinx_exporter/build-and-test/master?style=for-the-badge)](https://github.com/foxdalas/sphinx_exporter/actions)\n[![GitHub release (latest SemVer)](https://img.shields.io/github/v/release/foxdalas/sphinx_exporter?style=for-the-badge)](https://github.com/foxdalas/sphinx_exporter/releases)\n[![Docker Pulls](https://img.shields.io/docker/pulls/foxdalas/sphinx-exporter?style=for-the-badge)](https://hub.docker.com/repository/docker/foxdalas/sphinx-exporter)\n\nA [sphinx](http://sphinxsearch.com) exporter for prometheus.\n\n## Grafana Dashboards\n\n* [Sphinx Overview](https://github.com/foxdalas/sphinx_exporter/blob/master/grafana_dashboard/Sphinx_Overview.json)\n\n## Install\n### Docker\n#### Specific version\n```\ndocker pull foxdalas/sphinx-exporter:v0.3.0\n```\n#### latest version\n```\ndocker pull foxdalas/sphinx-exporter:latest\n```\n\n## Building\n\nThe sphinx exporter exports metrics from a sphinx server for\nconsumption by prometheus. The server is specified as `--sphinx.address` and `--sphinx.port` flag\nto the program (default is `localhost:9306`).\n\nBy default the sphinx_exporter serves on port `0.0.0.0:9247` at `/metrics`\n\n```\nmake build\n./sphinx_exporter\n```\n\nAlternatively a Dockerfile is supplied\n\n```\nmake docker\n```\nOR\n```\ngo build -o sphinx_exporter .\ndocker build -t foxdalas/sphinx-exporter:latest .\n```\n\n## Collectors\n\nThe exporter collects a number of statistics from the server:\n\n```\n\n# HELP sphinx_agent_connect Number of agent connect since server start.\n# TYPE sphinx_agent_connect counter\nsphinx_agent_connect 0\n# HELP sphinx_agent_retry Number of agent retry since server start.\n# TYPE sphinx_agent_retry counter\nsphinx_agent_retry 0\n# HELP sphinx_avg_dist_local Number of avg_dist_local since server start.\n# TYPE sphinx_avg_dist_local counter\nsphinx_avg_dist_local 0\n# HELP sphinx_avg_dist_wait Number of avg_dist_wait since server start.\n# TYPE sphinx_avg_dist_wait counter\nsphinx_avg_dist_wait 0\n# HELP sphinx_avg_dist_wall Number of avg_dist_wall since server start.\n# TYPE sphinx_avg_dist_wall counter\nsphinx_avg_dist_wall 0\n# HELP sphinx_avg_query_cpu Number of avg_query_cpu since server start.\n# TYPE sphinx_avg_query_cpu gauge\nsphinx_avg_query_cpu 0\n# HELP sphinx_avg_query_readkb Number of avg_query_readkb since server start.\n# TYPE sphinx_avg_query_readkb gauge\nsphinx_avg_query_readkb 0\n# HELP sphinx_avg_query_reads Number of avg_query_reads since server start.\n# TYPE sphinx_avg_query_reads gauge\nsphinx_avg_query_reads 0\n# HELP sphinx_avg_query_readtime Number of avg_query_readtime since server start.\n# TYPE sphinx_avg_query_readtime gauge\nsphinx_avg_query_readtime 0\n# HELP sphinx_avg_query_wall Number of avg_query_wall since server start.\n# TYPE sphinx_avg_query_wall counter\nsphinx_avg_query_wall 0\n# HELP sphinx_command_delete Number of delete command since server start.\n# TYPE sphinx_command_delete counter\nsphinx_command_delete 0\n# HELP sphinx_command_flushattrs Number of flushattrs command since server start.\n# TYPE sphinx_command_flushattrs counter\nsphinx_command_flushattrs 0\n# HELP sphinx_command_keywords Number of keywords command since server start.\n# TYPE sphinx_command_keywords counter\nsphinx_command_keywords 672\n# HELP sphinx_command_persist Number of persist command since server start.\n# TYPE sphinx_command_persist counter\nsphinx_command_persist 0\n# HELP sphinx_command_search Number of search command since server start.\n# TYPE sphinx_command_search counter\nsphinx_command_search 802\n# HELP sphinx_command_status Number of status command since server start.\n# TYPE sphinx_command_status counter\nsphinx_command_status 133\n# HELP sphinx_command_update Number of update command since server start.\n# TYPE sphinx_command_update counter\nsphinx_command_update 0\n# HELP sphinx_connections Number of connections since the server started.\n# TYPE sphinx_connections counter\nsphinx_connections 59691\n# HELP sphinx_dist_local Number of dist_local since server start.\n# TYPE sphinx_dist_local counter\nsphinx_dist_local 0\n# HELP sphinx_dist_queries Number of distributed queries since server start.\n# TYPE sphinx_dist_queries counter\nsphinx_dist_queries 0\n# HELP sphinx_dist_wait Number of dist_wait since server start.\n# TYPE sphinx_dist_wait counter\nsphinx_dist_wait 0\n# HELP sphinx_dist_wall Number of dist_wall since server start.\n# TYPE sphinx_dist_wall counter\nsphinx_dist_wall 0\n# HELP sphinx_maxed_out Number of max children barier since the server started.\n# TYPE sphinx_maxed_out counter\nsphinx_maxed_out 0\n# HELP sphinx_qcache_cached_queries Number of qcache_cached_queries since server start.\n# TYPE sphinx_qcache_cached_queries counter\nsphinx_qcache_cached_queries 0\n# HELP sphinx_qcache_max_bytes Number of qcache_max_bytes since server start.\n# TYPE sphinx_qcache_max_bytes counter\nsphinx_qcache_max_bytes 1.6777216e+07\n# HELP sphinx_qcache_thresh_msec Number of qcache_thresh_msec since server start.\n# TYPE sphinx_qcache_thresh_msec counter\nsphinx_qcache_thresh_msec 3000\n# HELP sphinx_qcache_ttl_sec Number of qcache_ttl_sec since server start.\n# TYPE sphinx_qcache_ttl_sec counter\nsphinx_qcache_ttl_sec 60\n# HELP sphinx_qcache_used_bytes Number of qcache_used_bytes since server start.\n# TYPE sphinx_qcache_used_bytes counter\nsphinx_qcache_used_bytes 0\n# HELP sphinx_queries Number of queries since server start.\n# TYPE sphinx_queries counter\nsphinx_queries 802\n# HELP sphinx_query_cpu Number of query_cpu since server start.\n# TYPE sphinx_query_cpu gauge\nsphinx_query_cpu 0\n# HELP sphinx_query_readkb Number of query_readkb since server start.\n# TYPE sphinx_query_readkb counter\nsphinx_query_readkb 0\n# HELP sphinx_query_reads Total number of KB read since server start.\n# TYPE sphinx_query_reads counter\nsphinx_query_reads 0\n# HELP sphinx_query_readtime Total time spent doing read operations (in seconds) since server start.\n# TYPE sphinx_query_readtime counter\nsphinx_query_readtime 0\n# HELP sphinx_query_wall Number of query_wall since server start.\n# TYPE sphinx_query_wall counter\nsphinx_query_wall 0.291\n# HELP sphinx_up Could the searchd server be reached.\n# TYPE sphinx_up gauge\nsphinx_up 1\n# HELP sphinx_uptime Number of seconds since the server started.\n# TYPE sphinx_uptime gauge\nsphinx_uptime 92852\n# HELP sphinx_index_count Number of indexes.\n# TYPE sphinx_index_count counter\nsphinx_index_count 10\n# HELP sphinx_threads_count Number of threads\n# TYPE sphinx_threads_count counter\nsphinx_threads_count{state=\"net_idle\"} 7\nsphinx_threads_count{state=\"query\"} 1\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffoxdalas%2Fsphinx_exporter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffoxdalas%2Fsphinx_exporter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffoxdalas%2Fsphinx_exporter/lists"}