{"id":29223919,"url":"https://github.com/ipstatic/es_search_exporter","last_synced_at":"2025-08-24T17:42:59.249Z","repository":{"id":53535124,"uuid":"65817375","full_name":"ipstatic/es_search_exporter","owner":"ipstatic","description":"Elasticsearch search exporter for the Prometheus monitoring system","archived":false,"fork":false,"pushed_at":"2021-03-25T21:47:07.000Z","size":8,"stargazers_count":13,"open_issues_count":2,"forks_count":3,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-06-02T09:09:18.086Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ipstatic.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":"2016-08-16T12:14:34.000Z","updated_at":"2019-07-24T02:21:22.000Z","dependencies_parsed_at":"2022-09-19T06:51:22.649Z","dependency_job_id":null,"html_url":"https://github.com/ipstatic/es_search_exporter","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/ipstatic/es_search_exporter","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ipstatic%2Fes_search_exporter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ipstatic%2Fes_search_exporter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ipstatic%2Fes_search_exporter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ipstatic%2Fes_search_exporter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ipstatic","download_url":"https://codeload.github.com/ipstatic/es_search_exporter/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ipstatic%2Fes_search_exporter/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":263264646,"owners_count":23439257,"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":[],"created_at":"2025-07-03T05:07:16.449Z","updated_at":"2025-07-03T05:07:16.925Z","avatar_url":"https://github.com/ipstatic.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Elasticsearch Search Exporter\n\nThis is an exporter that allows you to execute queries against an Elasticsearch\ncluster and return the number of documents found for use by the\n[Prometheus](https://prometheus.io) monitoring system.\n\n## Installation \n\n```\npip install es_search_exporter\n```\n\n### ES Search Exporter Configuration\n\nYou will need to add your Elasticsearch query to the searches hash in es_search.yml.\nThis could also be a JSON file as well if that would make it easier (JSON is valid\nYAML, and most tools like Kibana can produce a JSON version of your query).\n\n### Prometheus Job Configuration\n\n```\nscrape_configs:\n  - job_name: 'es_search_exporter'\n    static_configs:\n      - targets:\n        - elastichost.example.com\n    params:\n      search: ['example']\n    relabel_configs:\n      - source_labels: [__address__]\n        regex: (.*?)(:80)?\n        target_label: __param_address\n        replacement: ${1}\n      - source_labels: [__param_address]\n        regex: (.*)\n        target_label: instance\n        replacement: ${1}\n      - source_labels: []\n        regex: .*\n        target_label: __address__\n        replacement: 127.0.0.1:9920 # ES Search Exporter\n```\n\n## Developing Locally\n\nTo work on this locally without installing the package, execute:\n\n```\n./scripts/run_locally --kerberos --tls\n```\n\nThis script will setup your path correctly and run the exporter.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fipstatic%2Fes_search_exporter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fipstatic%2Fes_search_exporter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fipstatic%2Fes_search_exporter/lists"}