{"id":20605192,"url":"https://github.com/arnab-developer/httphealthcheckdashboard","last_synced_at":"2026-05-06T04:05:33.627Z","repository":{"id":42392673,"uuid":"365287121","full_name":"Arnab-Developer/HttpHealthCheckDashboard","owner":"Arnab-Developer","description":"Health check dashboard for web apps","archived":false,"fork":false,"pushed_at":"2022-05-13T04:11:28.000Z","size":59,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-01-17T02:24:19.684Z","etag":null,"topics":["csharp","docker","dotnet"],"latest_commit_sha":null,"homepage":"","language":"C#","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/Arnab-Developer.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-05-07T16:06:12.000Z","updated_at":"2022-02-20T02:46:35.000Z","dependencies_parsed_at":"2022-09-23T14:31:44.873Z","dependency_job_id":null,"html_url":"https://github.com/Arnab-Developer/HttpHealthCheckDashboard","commit_stats":null,"previous_names":[],"tags_count":21,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Arnab-Developer%2FHttpHealthCheckDashboard","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Arnab-Developer%2FHttpHealthCheckDashboard/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Arnab-Developer%2FHttpHealthCheckDashboard/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Arnab-Developer%2FHttpHealthCheckDashboard/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Arnab-Developer","download_url":"https://codeload.github.com/Arnab-Developer/HttpHealthCheckDashboard/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":242250932,"owners_count":20096895,"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":["csharp","docker","dotnet"],"created_at":"2024-11-16T09:26:59.232Z","updated_at":"2026-05-06T04:05:33.418Z","avatar_url":"https://github.com/Arnab-Developer.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# HTTP health check web dashboard\n\nThis is a dashboard to show health check results of your favorite http web apps.\n\n![image](https://user-images.githubusercontent.com/3396447/117486658-8747af80-af87-11eb-883f-da6f8a4532cf.png)\n\nThis app has been hosted in \n[docker hub](https://hub.docker.com/r/45862391/httphealthcheckdashboard) in a \ncontainer image.\n\n## How to extend this app\n\nThis app is checking health of some URIs, you can find them in `appsettings.json`\nand `appsettings.Development.json` file. If you want to check your own URI as well\nin this app then do the following changes.\n\n- Add a new section in `appsettings.json` under `ApiDetails`\n\n```json\n\"ApiDetails\": [\n  {\n    \"Name\": \"[name of the URI]\",\n    \"Url\": \"[URI]\",\n    \"Credential\": {\n      \"UserName\": \"[user name if any]\",\n      \"Password\": \"[password if any]\"\n    },\n    \"IsEnable\": true\n  }\n]\n```\n\n- Add a new section in `appsettings.json` under `HealthChecks-UI` -\u003e `HealthChecks`\n\n```json\n\"HealthChecks-UI\": {\n  \"HealthChecks\": [\n    {\n      \"Name\": \"[name of health check]\",\n      \"Uri\": \"[health check URI]\"\n    }\n  ]\n}\n```\n\n- Create a new class inside `HttpHealthCheckDashboard` -\u003e `HealthChecks` which\ninherits `BaseHealthCheck`\n\n```csharp\npublic class [ClassName]HealthCheck : BaseHealthCheck\n{\n    public [ClassName]HealthCheck(IEnumerable\u003cApiDetail\u003e urlDetails, \n        ICommonHealthCheck commonHealthCheck) : base(urlDetails, commonHealthCheck)\n    {\n    }\n}\n```\n\n- Add the class into `HttpHealthCheckDashboard.HealthCheckExtensions.AddHealthChecksUrls(this IServiceCollection services)`\n\n```csharp\npublic static IHealthChecksBuilder AddHealthChecksUrls(this IServiceCollection services) =\u003e\n    services\n        .AddHealthChecks()\n        .AddCheck\u003c[ClassName]HealthCheck\u003e(\"[ClassName]\");\n```\n\n- Add endpoint mapping in `HttpHealthCheckDashboard.HealthCheckExtensions.MapHealthChecksUrls(this IEndpointRouteBuilder endpoints)`\n\n```csharp\npublic static void MapHealthChecksUrls(this IEndpointRouteBuilder endpoints)\n{\n    endpoints.MapHealthChecks(\"/[classname]-hc\", new HealthCheckOptions()\n    {\n        Predicate = r =\u003e r.Name.Contains(\"[ClassName]\"),\n        ResponseWriter = UIResponseWriter.WriteHealthCheckUIResponse\n    });\n}\n```\n\n- Open your bowser and navigate to `http://localhost:[your-machine-port]/hc-ui` and you \nshould see your new URI in the health check app.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Farnab-developer%2Fhttphealthcheckdashboard","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Farnab-developer%2Fhttphealthcheckdashboard","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Farnab-developer%2Fhttphealthcheckdashboard/lists"}