{"id":23451278,"url":"https://github.com/nlog/nlog.performancecounter","last_synced_at":"2026-05-01T19:34:07.264Z","repository":{"id":66163508,"uuid":"500070667","full_name":"NLog/NLog.PerformanceCounter","owner":"NLog","description":"NLog extensions for displaying and updating Windows Performance Counters","archived":false,"fork":false,"pushed_at":"2025-09-21T16:32:29.000Z","size":27,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-09-21T17:26:11.832Z","etag":null,"topics":["csharp","dotnet","nlog","nlog-target","performancecounter"],"latest_commit_sha":null,"homepage":"","language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/NLog.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2022-06-05T10:52:42.000Z","updated_at":"2025-09-21T16:32:32.000Z","dependencies_parsed_at":"2025-02-15T19:51:20.295Z","dependency_job_id":"b30f22fc-dd49-46a3-9e8b-09e604da4de8","html_url":"https://github.com/NLog/NLog.PerformanceCounter","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/NLog/NLog.PerformanceCounter","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NLog%2FNLog.PerformanceCounter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NLog%2FNLog.PerformanceCounter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NLog%2FNLog.PerformanceCounter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NLog%2FNLog.PerformanceCounter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/NLog","download_url":"https://codeload.github.com/NLog/NLog.PerformanceCounter/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NLog%2FNLog.PerformanceCounter/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32510808,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-30T13:12:12.517Z","status":"online","status_checked_at":"2026-05-01T02:00:05.856Z","response_time":64,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["csharp","dotnet","nlog","nlog-target","performancecounter"],"created_at":"2024-12-24T00:25:33.015Z","updated_at":"2026-05-01T19:34:07.237Z","avatar_url":"https://github.com/NLog.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# NLog.PerformanceCounter\nNLog extensions to [Display Windows Performance Counters](https://github.com/NLog/NLog/wiki/PerformanceCounter-Layout-Renderer) and [Update Windows Performance Counters](https://github.com/NLog/NLog/wiki/PerfCounter-target)\n\n[![Version](https://badge.fury.io/nu/NLog.PerformanceCounter.svg)](https://www.nuget.org/packages/NLog.PerformanceCounter)\n[![AppVeyor](https://img.shields.io/appveyor/ci/nlog/NLog-PerformanceCounter/master.svg)](https://ci.appveyor.com/project/nlog/NLog-PerformanceCounter/branch/master)\n\n\n### How to install\n\n1) Install the package\n\n    `Install-Package NLog.PerformanceCounter` or in your csproj:\n\n    ```xml\n    \u003cPackageReference Include=\"NLog.PerformanceCounter\" Version=\"5.*\" /\u003e\n    ```\n\n2) Add to your nlog.config:\n\n    ```xml\n    \u003cextensions\u003e\n        \u003cadd assembly=\"NLog.PerformanceCounter\"/\u003e\n    \u003c/extensions\u003e\n    ```\n\n   Alternative register from code using [fluent configuration API](https://github.com/NLog/NLog/wiki/Fluent-Configuration-API):\n\n   ```csharp\n   LogManager.Setup().SetupExtensions(ext =\u003e {\n      ext.RegisterTarget\u003cNLog.Targets.PerformanceCounterTarget\u003e();\n      ext.RegisterLayoutRenderer\u003cNLog.LayoutRenderers.PerformanceCounterLayoutRenderer\u003e();\n   });\n   ```\n\n### Example of displaying PerformanceCounter \nExample of `NLog.config`-file that displays Windows Performance Counter value:\n\n```xml\n\u003cnlog\u003e\n    \u003cextensions\u003e\n        \u003cadd assembly=\"NLog.PerformanceCounter\"/\u003e\n    \u003c/extensions\u003e\n    \u003ctargets\u003e\n        \u003ctarget name=\"console\" xsi:type=\"console\" layout=\"${message}|Memory=${performancecounter:category=Process:counter=Working Set}\"  /\u003e\n    \u003c/targets\u003e\n    \u003crules\u003e\n        \u003clogger minLevel=\"Info\" writeTo=\"console\" /\u003e\n    \u003c/rules\u003e\n\u003c/nlog\u003e\n```\n\n### Example of updating PerformanceCounter \nExample of `NLog.config`-file that updates Windows Performance Counter value:\n\n```xml\n\u003cnlog\u003e\n    \u003cextensions\u003e\n        \u003cadd assembly=\"NLog.PerformanceCounter\"/\u003e\n    \u003c/extensions\u003e\n    \u003ctargets\u003e\n        \u003ctarget name=\"perf\" xsi:type=\"PerfCounter\" counterName=\"123\" categoryName=\"xyz\" /\u003e\n    \u003c/targets\u003e\n    \u003crules\u003e\n        \u003clogger minLevel=\"Info\" writeTo=\"perf\" /\u003e\n    \u003c/rules\u003e\n\u003c/nlog\u003e\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnlog%2Fnlog.performancecounter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnlog%2Fnlog.performancecounter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnlog%2Fnlog.performancecounter/lists"}