Giter Club home page Giter Club logo

Comments (3)

nrdmn avatar nrdmn commented on September 26, 2024

Hi,
please try

   procstat:
     - pattern: "nginx"
       pid_tag: true
     - pattern: "php.*-fpm"
       pid_tag: true

from puppet-telegraf.

ZyanKLee avatar ZyanKLee commented on September 26, 2024

I had a look at the mentioned template file. line 35 is related to outputs, not inputs.
so I further looked at our output declaration:

    outputs  => {
        'influxdb' => [
            {
                'urls'     => [ "http://influxdb.ourdomain.exmpl:8086" ],
                'database' => 'telegraf',
                'username' => 'telegraf',
                'password' => 'metricsmetricsmetrics',
                'retention_policy'  => '',
                'write_consistency' => 'any',
                'timeout'           => '20s',
            }
        ]
    },

this seems rather basic to me. (we only added the last three parameters and do only use one influxdb url)

from puppet-telegraf.

ZyanKLee avatar ZyanKLee commented on September 26, 2024

update:

after I added those squared brackets the issue at line 35 of the template was fixed, next issue is at line 55:

Error: Could not retrieve catalog from remote server: Error 500 on SERVER: Server Error: Evaluation Error: Error while evaluating a Function Call, Failed to parse template telegraf/telegraf.conf.erb:
  Filepath: /etc/puppetlabs/code/environments/production/modules/telegraf/templates/telegraf.conf.erb
  Line: 55
  Detail: undefined method `each' for nil:NilClass
 at /etc/puppetlabs/code/environments/production/modules/telegraf/manifests/config.pp:12:18 on node $SERVERNAME

after going through all the hieradata and profiles and adding that extra layer (as shown for the nginx input in the README.md) puppet ran without error. thanks

from puppet-telegraf.

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.