https://github.com/danesparza/nlog-metrics
:chart_with_upwards_trend: Tracks logging metrics using InfluxDB
https://github.com/danesparza/nlog-metrics
command-line golang influxdb metrics monitoring nlog service
Last synced: about 1 year ago
JSON representation
:chart_with_upwards_trend: Tracks logging metrics using InfluxDB
- Host: GitHub
- URL: https://github.com/danesparza/nlog-metrics
- Owner: danesparza
- License: mit
- Created: 2017-04-20T16:13:22.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2017-05-11T14:03:46.000Z (about 9 years ago)
- Last Synced: 2025-01-24T07:11:39.122Z (over 1 year ago)
- Topics: command-line, golang, influxdb, metrics, monitoring, nlog, service
- Language: Go
- Homepage:
- Size: 144 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# nlog-metrics [](https://circleci.com/gh/danesparza/nlog-metrics)
Tracks logging metrics using InfluxDB
## Quick start
* Make sure you've already got [InfluxDB](https://docs.influxdata.com/influxdb/v1.2/introduction/installation/) up and running. In InfluxDb, [create the database](https://docs.influxdata.com/influxdb/v1.2/guides/writing_data/#creating-a-database-using-the-http-api) that you want to log to.
* Get the [latest release](https://github.com/danesparza/nlog-metrics/releases/latest) for your platform (it's just a single executable)
* Generate a config file:
```
nlog-metrics config > config.yaml
```
Update the config file sections with information for your [NLog database](https://github.com/danesparza/NLogReader/tree/master/sql) and your [InfluxDB database](https://github.com/influxdata/influxdb):
``` yaml
sqlserver:
server: servernamehere
database: system_logging
user: username
password: password
influxdb:
server: http://localhost:8086
database: applogs
measurement: metrics
```
When you're ready to start logging metrics, just run
```
nlog-metrics start
```
Note: To run this as a Windows service, check out the install.bat/uninstall.bat files in the dist directory (also packaged with the windows release zip file)