dgolja / golja-influxdb Goto Github PK
View Code? Open in Web Editor NEWPuppet module for InfluxDB
License: Apache License 2.0
Puppet module for InfluxDB
License: Apache License 2.0
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.
Hi! How will I install version 1.8.0 ?
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
For example i can't use Debian Squeeze dispite the .deb files are running just fine on Squeeze (and maybe older Debian releases). Expose the setting for the used distro codename with a default.
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!
Otherwise, yum may attempt to install before the repo is configured.
I'm cooking a PR.
Hello,
it would be great if you could implement Puppet types/providers to manage databases, retentions and users like Olivier does.
Kind regards,
Dennis
The settings provided by your module are no longer necessary for Influxdb 0.13. The template file should reflect this.
The defaults for 'max-row-limit' from influxdata have changed with version 1.2.1
https://github.com/influxdata/influxdb/blob/master/CHANGELOG.md#v122-2017-03-14
Old default: 10000
New default: 0
This module should represent this defaults.
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
Instead of using s3 binary install influxdb from apt/yum repo. More info here https://influxdb.com/blog/2015/12/04/introducing_repos_influxdata.html
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)
Hi,
could you please make a fresh release? I would love to use the new archlinux support.
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?
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
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?
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.
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!
Please make this optional. The user should be able to configure its own repository.
https://github.com/n1tr0g/golja-influxdb/blob/master/manifests/server/install.pp#L17
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 {}'.
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
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.