GithubHelp home page GithubHelp logo

Comments (4)

tcolgate avatar tcolgate commented on May 28, 2024

I don't have access to a Windows system to test on, but if you can get something working I'd definitely consider the patches.

Ideally it would fit with the existing release process.

from exporter_exporter.

ldaneliukas avatar ldaneliukas commented on May 28, 2024

I'd be interested in this too. We are currently using an in-house chocolatey package which basically wraps it in nssm to have a service.

from exporter_exporter.

frunzales avatar frunzales commented on May 28, 2024

The golang 'svc' package provides means to build Windows services. wmi_exporter and telegraf make use of it.

Examples can be found here:
https://github.com/golang/sys/tree/master/windows/svc/example

The bosun project has a very good example on how this works:
https://github.com/bosun-monitor/bosun/blob/master/cmd/scollector/service_windows.go

Perhaps we could implement similar functionality and then use smth like

exporter_exporter.exe -winsvc install

from exporter_exporter.

tcolgate avatar tcolgate commented on May 28, 2024

@frunzales I had a look at the bosun example, it looks reasonable enough. If the flag can be hidden on non-winodws OSes, that would be ideal. I'll happily accept a PR, but I can't work on this myself (just don't have access to something to test on, sorry).

from exporter_exporter.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.