Giter Club home page Giter Club logo

coretemptelegraf's Introduction

CoreTempTelegraf

This program outputs data collected by CoreTemp (https://www.alcpu.com/CoreTemp/) in a format that can be consumed by Telegraf (https://www.influxdata.com/time-series-platform/telegraf/). The program is written in Delphi, and utilizes a library developed by Michal Kokorceny from http://74.cz/. The library is available here: http://74.cz/download/GetCoreTempInfoDelphi.zip

Prerequisites

In order for the program to run as expected, the following is required:

  • CoreTemp installed and running

In order for Telegraf to consume the data output by the program, the following is also required:

Usage

Note: If you just want the executable and don't want to deal with the source code, it is available for download at http://www.tomk.xyz/k/coretemptelegraf

You can check the output of the program in a command prompt or PowerShell. CD to the directory where the program resides, and then enter the command: CoreTempTelegraf

To collect the data in Telegraf, add an entry to your Telegraf config like this:

[[inputs.exec]]
  commands = ["C:\path\to\program\CoreTempTelegraf"]
  data_format = "influx"

You can place the program in a Windows System Path location, allowing you to run the program from any directory. This simplifies the "commands" line to:

  commands = ["CoreTempTelegraf"]

coretemptelegraf's People

Contributors

tkohhh avatar

Stargazers

Matthew McEachen avatar  avatar  avatar Attie Grande avatar Alex avatar

Watchers

 avatar

coretemptelegraf's Issues

Modification of the HOST tag

Hi, first and foremost, thank you a lot for sharing your code with the world! I have several gaming machines for my kids and I use this to monitor the temperature of their computers to make sure everything is running smoothly.

While not an issue per say, when running the executable application and invoking the inputs.exec collector on telegram, the application automatically adds a tag for the host, and it defaults to my computer name (I see in your code that you have this explicitly set up). I have in my telegram configuration a host override defined (different than the computer name) and it woks well for any input I have. The problem the I have is that I run visual indicators and graphs via Grafana and they are set up per the host name I pre-defined (I have several machines that are monitored), and since the coretemp input shows up under a different host name, then I breaks my panels/automation.

I tried using the the [tag.exclude] command under the inputs.exec, and it does its job.. it strips the predefined host given by your application, but then telegraph fails to assign the global host that I defined.

I also tried using a [process.string.rename] to change the key, but I wasn't successful in any of my tries.

So, my question is, is there a reason why you decided to add the host directly from your application and into telegram/influx? why not let the global tag on telegram do this? and, do you know of a way that I could modify, transform or replace the host tag given during the inputs.exec command?

Thanks in advance for any help provided.

Running Telegraf as a service.

Hello.

When I run telegraf from command line the program works perfectly. However, when I try to run it as a service then the shared memory of Core Temp can not be read.
Is there any way to make it run as a service?

image

missing library in this package...

This source file includes a library:
GetCoreTempInfoDelphi in 'libraries\GetCoreTempInfoDelphi.pas';
but that library is not included in this repository. Is it available somewhere else??

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.