Code Monkey home page Code Monkey logo

golja-influxdb's People

Contributors

andyroyle avatar axxelg avatar bastelfreak avatar booo avatar bovy89 avatar codylane avatar danielpalstra avatar dgolja avatar dhoppe avatar dsbaars avatar egeland avatar johnf avatar jschlyter avatar lswith avatar lukebigum avatar madddi avatar niteman avatar rcousens avatar sammcj avatar shashank-te avatar sorrison avatar wdschei avatar xaniasd avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

golja-influxdb's Issues

Publish new versions to the forge

Hi.

Could you please publish new versions of your module to the forge?

It seems that there has been some cool changes since last year.

Is this code still maintained?

Hallo,

is this module still maintained?
It has the most downloads in the forge for influxdb, but i don't see any commits since 2019?

Greetings,
Robert

Is it possible to define more than one graphite database? (BUG)

Hi there,

Is it possible to define more than one graphite database?
And if it is, what should be the syntax for graphite_options?
I tried this code:

    graphite_options        => [ {
      'enabled'           => true,
      'database'          => 'graphite',
      'bind-address'      => ':2003',
      'protocol'          => tcp,
      'consistency-level' => 'one',
      'name-separator'    => '.',
      'batch-size'        => 1000,
      'batch-pending'     => 5,
      'batch-timeout'     => '1s',
      'udp-read-buffer'   => 0,
    },
    {
      'enabled'           => true,
      'database'          => 'graphite2',
      'bind-address'      => ':2011',
      'protocol'          => tcp,
      'consistency-level' => 'one',
      'name-separator'    => '.',
      'batch-size'        => 1000,
      'batch-pending'     => 5,
      'batch-timeout'     => '1s',
      'udp-read-buffer'   => 0,
    } ],

But I've got an error:

Error: Could not retrieve catalog from remote server: Error 400 on SERVER: Failed to parse template influxdb/influxdb.conf.erb:
  Filepath: /etc/puppet/modules/influxdb/templates/influxdb.conf.erb
  Line: 128
  Detail: undefined method `key' for nil:NilClass
 at /etc/puppet/modules/influxdb/manifests/server/config.pp:96 on node influxdbnode-96jxf36fl7tdfn7
Warning: Not using cache on failed catalog
Error: Could not retrieve catalog; skipping run

Please advice. Thank you!

Influxdb 0.13

The settings provided by your module are no longer necessary for Influxdb 0.13. The template file should reflect this.

Empty config file on RHEL6

Hi!

On RHEL6 with the following config:

class {'influxdb::server':
    collectd_options => {
      enabled => true,
      bind-address => '127.0.0.1:25826',
      database => 'collectd',
      typesdb => '/usr/share/collectd/types.db',
      batch-size => 1000,
      batch-pending => 5,
      batch-timeout => '1s',
      read-buffer => 0,
    },
  }

I'm getting a config file with lots of values missing:

Leading to errors:

###
### [meta]
###
### Controls the parameters for the Raft consensus group that stores metadata
### about the InfluxDB cluster.
###
[meta]

  dir = "/var/lib/influxdb/meta"
  hostname = "metrics-stack-puppet-profile"
  bind-address = ":8088"
  retention-autocreate = true
  election-timeout = "1s"
  heartbeat-timeout = "1s"
  leader-lease-timeout = "500ms"
  commit-timeout = "50ms"
  cluster-tracing =
  raft-promotion-enabled =
2016/01/26 18:55:38 InfluxDB starting, version 0.9.6.1, branch 0.9.6, commit 6d3a8603cfdaf1a141779ed88b093dcc5c528e5e, built 2015-12-10T23:40:23+0000
2016/01/26 18:55:38 Go version go1.4.2, GOMAXPROCS set to 1
2016/01/26 18:55:38 Using configuration at: /etc/influxdb/influxdb.conf
run: parse config: Near line 22 (last key parsed 'meta.cluster-tracing'): Expected value but found '\n' instead.

This is using 58fe0e7c9060bd9f03b95aac8a8ed9db48a87fe7

Fix puppetlabs/stdlib and puppetlabs/apt dependencies

the metadata.json requires the old stdlib version <4.13.0

make sure that this module supports the latest stdlib version.
otherwise it blocks people from upgrading

[R10K::TaskRunner - ERROR] Task #<R10K::Task::Module::Sync:0x00000001de1858> failed while running: "puppet module --modulepath '/home/vagrant/puppet/modules' install --version=4.25.1 --ignore-dependencies puppetlabs/stdlib" returned with non-zero exit value #<Process::Status: pid 17534 exit 1>

update: same for the apt package which is 3.0.0 (latest version on forge: 4.5.1)

is also related to #65 and #70

make a fresh release

Hi,
could you please make a fresh release? I would love to use the new archlinux support.

influxdb2

Should we create a PR to be able to move to influxdb2? or should influxdb puppet module not support influxdb2? (like new module called influxdb2)

if so should this module switch to the v2 automatically or just have the forge version bumped a major version with a warning?

Create database with hiera

hi,

sorry for my question: I try to create a database for icinga2, but don't now how can I do it. Can somebody show me, how the hiera yaml should looks like?

cu

support InfluxDB 1.0

InfluxDB 1.0 was officially released today. Looking at the release notes the only relevant changes seem to be in the config file, any plans about it?

Creation of config file is not deterministic

In my environment /etc/influxdb/influxdb.conf changes on every puppet run, which triggers a service restart. I patched the template file to iterate the config hash maps with a sorted key order.

Service influxdb does not refresh on config file change

When supplying a collectd config as follows

  $collectd_config = {
    'default' => {
      'enabled'          => true, # not default
      'bind-address'     => ':25826',
      'database'         => 'collectd',
      'retention-policy' => '',
      'typesdb'          => '/usr/share/collectd/types.db',
      'batch-size'       => 5000,
      'batch-pending'    => 10,
      'batch-timeout'    => '10s',
      'read-buffer'      => 0,
    }
  }

  $global_config = {
    'reporting-disabled' => false,
  }

  class {'influxdb':
    manage_repos    => true,
    global_config => $global_config,
    collectd_config => $collectd_config,
  }

and using a systemd repo managed version of influxdb, the config is written after the package install which has already started the service. The config write should refresh the service so it will restart and pull in the new config. I will send a pull request momentarily, thank you!

UDP not configurable

To reproduce:

class { "influxdb::server":
    udp_enabled => true,
    udp_database => "helios",
    udp_bind_address => ":8089",
}

expected result:

[[udp]]
  enabled = true
  bind-address = ":8089"
  database = "helios"

actual result

[udp]
  enabled = true
  bind-address = ":8089"
  database = "helios"

this leads to influxdb 0.9.3 not starting:

run: parse config: Type mismatch for 'run.Config.udp': Expected slice but found 'map[string]interface {}'.

Error: Could not set 'present' on ensure

Hi

I am trying to use your module with Vagrant and receiving the following error:

==> default: Info: Applying configuration version '1449750519'
==> default: Error: Could not set 'present' on ensure: No such file or directory - /etc/opt/influxdb/influxdb.conf20151210-8384-1nkkxh5.lock at 84:/tmp/vagrant-puppet/modules-511dbe0177ab2cd68e9692b8ddd398e8/influxdb/manifests/server/config.pp
==> default: Error: Could not set 'present' on ensure: No such file or directory - /etc/opt/influxdb/influxdb.conf20151210-8384-1nkkxh5.lock at 84:/tmp/vagrant-puppet/modules-511dbe0177ab2cd68e9692b8ddd398e8/influxdb/manifests/server/config.pp
==> default: Wrapped exception:
==> default: No such file or directory - /etc/opt/influxdb/influxdb.conf20151210-8384-1nkkxh5.lock
==> default: Error: /Stage[main]/Influxdb::Server::Config/File[/etc/opt/influxdb/influxdb.conf]/ensure: change from absent to present failed: Could not set 'present' on ensure: No such file or directory - /etc/opt/influxdb/influxdb.conf20151210-8384-1nkkxh5.lock at 84:/tmp/vagrant-puppet/modules-511dbe0177ab2cd68e9692b8ddd398e8/influxdb/manifests/server/config.pp
==> default: Notice: /Stage[main]/Influxdb::Server::Service/Service[influxdb]: Dependency File[/etc/opt/influxdb/influxdb.conf] has failures: true
==> default: Warning: /Stage[main]/Influxdb::Server::Service/Service[influxdb]: Skipping because of failed dependencies
==> default: Notice: /Stage[main]/Influxdb::Server/Anchor[influxdb::server::end]: Dependency File[/etc/opt/influxdb/influxdb.conf] has failures: true
==> default: Warning: /Stage[main]/Influxdb::Server/Anchor[influxdb::server::end]: Skipping because of failed dependencies

Tried version 0.2.1 and Master with InfluxDB 0.9.5 and 0.9.6
Thanks

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.