{"id":15470441,"url":"https://github.com/deadtrickster/prometheus-push","last_synced_at":"2025-04-22T12:08:53.566Z","repository":{"id":57537105,"uuid":"84991881","full_name":"deadtrickster/prometheus-push","owner":"deadtrickster","description":"Prometheus.io pushgateway client","archived":false,"fork":false,"pushed_at":"2019-07-24T19:15:53.000Z","size":2070,"stargazers_count":8,"open_issues_count":1,"forks_count":3,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-22T12:08:13.342Z","etag":null,"topics":["elixir","erlang","instrumentation","monitoring","prometheus"],"latest_commit_sha":null,"homepage":null,"language":"Erlang","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/deadtrickster.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":"2017-03-14T20:02:37.000Z","updated_at":"2025-02-23T21:58:31.000Z","dependencies_parsed_at":"2022-08-29T00:31:22.899Z","dependency_job_id":null,"html_url":"https://github.com/deadtrickster/prometheus-push","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/deadtrickster%2Fprometheus-push","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/deadtrickster%2Fprometheus-push/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/deadtrickster%2Fprometheus-push/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/deadtrickster%2Fprometheus-push/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/deadtrickster","download_url":"https://codeload.github.com/deadtrickster/prometheus-push/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250237831,"owners_count":21397401,"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":["elixir","erlang","instrumentation","monitoring","prometheus"],"created_at":"2024-10-02T02:04:41.961Z","updated_at":"2025-04-22T12:08:53.527Z","avatar_url":"https://github.com/deadtrickster.png","language":"Erlang","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n\n# Prometheus.io Pushgateway client. #\n\nCopyright (c) 2017 Ilya Khaprov \u003c\u003ci.khaprov@gmail.com\u003e\u003e.\n\n__Version:__ 0.1.0\n\n[![Hex.pm][Hex badge]][Hex link]\n[![Hex.pm Downloads][Hex downloads badge]][Hex link]\n[![Build Status][Travis badge]][Travis link]\n[![Coverage Status][Coveralls badge]][Coveralls link]\n\n- IRC: #erlang on Freenode;\n- [Slack](https://elixir-slackin.herokuapp.com/): #prometheus channel - [Browser](https://elixir-lang.slack.com/messages/prometheus) or App(slack://elixir-lang.slack.com/messages/prometheus).\n\n## Example\n\n### Erlang\n\n```erlang\n\nprometheus_counter:new([{name, qwe},\n                        {labels, []},\n                        {help, \"qwe qwe\"}]).\nprometheus_counter:inc(qwe).\n\nprometheus_counter:new([{name, foo},\n                        {labels, []},\n                        {help, \"foo foo\"}]).\nprometheus_counter:inc(foo, 10).\n\nprometheus_push:push(#{job =\u003e \"qwe\",\n                       grouping_key =\u003e [{\"abra\", \"kadabra\"}]}).\n\n```\n\n### Elixir\n\n```elixir\n\n\nuse Prometheus.Metric\n\nCounter.new([name: :qwe,\n             labels: [],\n             help: \"qwe qwe\"])\nCounter.inc(:qwe)\n\nCounter.new([name: :foo,\n             labels: [],\n             help: \"foo foo\"])\nCounter.inc(:foo, 10)\n\nPrometheus.Push.push(%{job: \"qwe\",\n                       grouping_key: [{\"abra\", \"kadabra\"}]})\n\n```\n\nMix config\n\n```elixir\nconfig :prometheus,\n    pushgateway: [\n        address: \"http://localhost:9091\"\n    ]\n```\n\nIf you require Basic Authentication to access the pushgateway add the following config keys:\n\n```elixir\nconfig :prometheus,\n    pushgateway: [\n        address: \"http://localhost:9091\",\n        auth_username: \"\u003cUSERNAME\u003e\",\n        auth_password: \"\u003cPASSWORD\u003e\"\n    ]\n```\n\n## Integrations\n- [Ecto Instrumenter](https://hex.pm/packages/prometheus_ecto)\n- [Erlang client](https://github.com/deadtrickster/prometheus.erl)\n- [Elixir client](https://github.com/deadtrickster/prometheus.ex)\n- [Elixir plugs Instrumenters and Exporter](https://hex.pm/packages/prometheus_plugs)\n- [Extatus - App to report metrics to Prometheus from Elixir GenServers](https://github.com/gmtprime/extatus)\n- [Fuse plugin](https://github.com/jlouis/fuse#fuse_stats_prometheus)\n- [Inets HTTPD Exporter](https://github.com/deadtrickster/prometheus_httpd)\n- [OS process info Collector](https://hex.pm/packages/prometheus_process_collector) (linux-only)\n- [Phoenix Instrumenter](https://hex.pm/packages/prometheus_phoenix)\n- [RabbitMQ Exporter](https://github.com/deadtrickster/prometheus_rabbitmq_exporter).\n\n## Dashboards\n\n- [Beam Dashboards](https://github.com/deadtrickster/beam-dashboards).\n\n## Blogs\n\n- [Monitoring Elixir apps in 2016: Prometheus and Grafana](https://aldusleaf.org/monitoring-elixir-apps-in-2016-prometheus-and-grafana/)\n- [A Simple Erlang Application, with Prometheus](http://markbucciarelli.com/2016-11-23_a_simple_erlang_application_with_prometheus.html).\n\n## Contributing\n\nSection order:\n\n- Types\n- Macros\n- Callbacks\n- Public API\n- Deprecations\n- Private Parts\n\nInstall the `git` pre-commit hook:\n\n```bash\n\n./bin/pre-commit.sh install\n\n```\n\nThe pre-commit check can be skipped by passing `--no-verify` to `git commit`.\n\n## License\n\nMIT\n\n[Hex badge]: https://img.shields.io/hexpm/v/prometheus_push.svg?maxAge=2592000?style=plastic\n[Hex link]: https://hex.pm/packages/prometheus_push\n[Hex downloads badge]: https://img.shields.io/hexpm/dt/prometheus-push.svg?maxAge=2592000\n[Travis badge]: https://travis-ci.org/deadtrickster/prometheus-push.svg?branch=master\n[Travis link]: https://travis-ci.org/deadtrickster/prometheus-push\n[Coveralls badge]: https://coveralls.io/repos/github/deadtrickster/prometheus-push/badge.svg?branch=master\n[Coveralls link]: https://coveralls.io/github/deadtrickster/prometheus_push?branch=master\n\n\n## Modules ##\n\n\n\u003ctable width=\"100%\" border=\"0\" summary=\"list of modules\"\u003e\n\u003ctr\u003e\u003ctd\u003e\u003ca href=\"https://github.com/deadtrickster/prometheus_push/blob/master/doc/prometheus_push.md\" class=\"module\"\u003eprometheus_push\u003c/a\u003e\u003c/td\u003e\u003c/tr\u003e\u003c/table\u003e\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdeadtrickster%2Fprometheus-push","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdeadtrickster%2Fprometheus-push","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdeadtrickster%2Fprometheus-push/lists"}