{"id":37785661,"url":"https://github.com/fourhundredfour/gin_prometheus_pusher","last_synced_at":"2026-01-16T15:12:09.450Z","repository":{"id":57569994,"uuid":"345437408","full_name":"fourhundredfour/gin_prometheus_pusher","owner":"fourhundredfour","description":"A Gin Middleware that pushes to a Prometheus Instance instead of scraping it. Ideal for Serverless Applications","archived":false,"fork":false,"pushed_at":"2022-06-11T18:35:16.000Z","size":31,"stargazers_count":1,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-11-14T14:33:37.566Z","etag":null,"topics":["gin","gin-framework","gin-gonic","gin-middleware","go","golang","golang-library","prometheus","prometheus-client"],"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/fourhundredfour.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":"2021-03-07T19:43:50.000Z","updated_at":"2022-06-10T01:55:57.000Z","dependencies_parsed_at":"2022-09-10T17:40:46.048Z","dependency_job_id":null,"html_url":"https://github.com/fourhundredfour/gin_prometheus_pusher","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/fourhundredfour/gin_prometheus_pusher","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fourhundredfour%2Fgin_prometheus_pusher","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fourhundredfour%2Fgin_prometheus_pusher/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fourhundredfour%2Fgin_prometheus_pusher/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fourhundredfour%2Fgin_prometheus_pusher/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fourhundredfour","download_url":"https://codeload.github.com/fourhundredfour/gin_prometheus_pusher/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fourhundredfour%2Fgin_prometheus_pusher/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28479406,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-16T11:59:17.896Z","status":"ssl_error","status_checked_at":"2026-01-16T11:55:55.838Z","response_time":107,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["gin","gin-framework","gin-gonic","gin-middleware","go","golang","golang-library","prometheus","prometheus-client"],"created_at":"2026-01-16T15:12:07.707Z","updated_at":"2026-01-16T15:12:09.432Z","avatar_url":"https://github.com/fourhundredfour.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# gin_prometheus_pusher\nA Gin Middleware that pushes to a Prometheus Instance instead of scraping it.\nIdeal for Serverless Applications\n\n## Index\n* [Installation](#installation)\n* [Example](#example)\n\n## Installation\n```\ngo get github.com/fourhundredfour/gin_prometheus_pusher\n```\n\n## Example\n```golang\npackage main\n\nimport (\n    \"net/http\"\n    \"github.com/gin-gonic/gin\"\n    \"github.com/fourhundredfour/gin_prometheus_pusher\"\n)\n\nfunc main() {\n    engine := gin.Default()\n    engine.Use(gin_prometheus_pusher.Prometheus(\u0026gin_prometheus_pusher.PrometheusConfiguration{\n    \tAddress: \"http://example.org/metrics\",\n\tJob: \"my_job\",\n    }))\n\n    engine.GET(\"/\", func(ctx *gin.Context) {\n        context.JSON(http.StatusOK, nil)\n    })\n    http.ListenAndServe(\":8080\", engine)\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffourhundredfour%2Fgin_prometheus_pusher","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffourhundredfour%2Fgin_prometheus_pusher","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffourhundredfour%2Fgin_prometheus_pusher/lists"}