Giter Club home page Giter Club logo

Comments (3)

dj-wasabi avatar dj-wasabi commented on May 31, 2024

Hi,

I tried to replicate this.
I have the following configuration set into my Molecule config:

  inventory:
    group_vars:
      all:
        telegraf_plugins_extra_exclusive: True
        telegraf_plugins_extra:
          nginx:
            config:
              - urls = ["http://localhost:9090/nginx_status"]
          phpfpm:
            config:
              - urls = ["http://localhost:9090/fpm-status"]
        telegraf_agent_output:
          - type: influxdb
            config:
              - urls = ["http://influxdb:8086"]
              - database = "telegraf"
              - precision = "s"
        telegraf_plugins_extra:
          percpu-usage:
            plugin: cpu
            config:
              - percpu = true
              - totalcpu = false
              - name_override = "percpu_usage"
              - fielddrop = ["cpu_time*"]

No other config, only the above and what is provided in the default/main.yml. But I don't see any empty files. Do you have some other configuration set somewhere?

Kind regards,
Werner

from ansible-telegraf.

tristanbes avatar tristanbes commented on May 31, 2024

Well, I have:

all.yml

telegraf_agent_output:
  - type: influxdb
    config:
      - urls = ["http://influx.foo.com:8086"]
      - database = "telegraf"
      - username = "{{ influx_user }}"
      - password = "{{ influx_password }}"

telegraf_plugins_extra: {}
telegraf_plugins_extra_exclusive: True

web.yml

## Monitoring
telegraf_plugins_extra:
  nginx:
    config:
      - urls = ["http://localhost:9090/nginx_status"]
  phpfpm:
    config:
      - urls = ["http://localhost:9090/fpm-status"]
  varnish: ~

But I've been using your playbook since ages ago, so maybe it was due to consecutive updates ?

from ansible-telegraf.

dj-wasabi avatar dj-wasabi commented on May 31, 2024

Hi @tristanbes

I was able to replicate it. I created a PR for when the property telegraf_plugins_extra and telegraf_plugins_default are empty (then Telegraf won't start) I enable default the "mem" plugin so it won't crash/stop working. Otherwise I have no idea to prevent it.

If you or some one else has a better suggestion, then please let me know and I'll implement it.

from ansible-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.