Skip to content
View in the app

A better way to browse. Learn more.

Unraid

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Telegraf could not find file

Featured Replies

Hello,

 

I am using the atribe's Telgraf docker and am struggling with making connections to files. I have only had success for HTTP scrapping so far. 

 

I plan to use my weather api with the HTTP plugin to get daily weather from my station. I made a quick python script to download the last 2 years historical data which are currently saved as .JSONs. My next steps are I want to use starlark to change json to inline format but I am unable to find any files getting this error:

 

Error in plugin: could not find file: weather/20200830.json

 

What I have done so far is put all my JSONs in this folder:

/mnt/user/Python/weather_data/

 

I then added the path as below to telegraf


image.thumb.png.89b2facc06a2681496b2b53d350285f6.png

 

Then on my telgraf.conf, I have typed:

[[inputs.file]]

     files = ["/weather/20200830.json"]

     data_format = "value"

     data_type = "string"

 

Any guidance is appreciated, I am not 100% confident if I understand the file structure or how dockers "see" folders. From reading online it seems the dockers do not see unraid and you have to point it to the folder location which is what I attempted above. 

Solved by rcjk

  • Author
  • Solution

After playing around for a bit I found this to work.

 

container path = /mnt

host path = /mnt/

default value = /mnt/

 

I can now access files fine. 

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.