Commits on Nov 27, 2020

  1. Update network denendency in daemon systemd template

    The config for services in puppet-prometheus module listen on
    0.0.0.0 by default. However, when config listens to private IP,
    services will fail to start because "After=network.target" doesn't
    ensure network interface up. It's safer to use
    "After=network-online.target" here
    Carl Tsai committed Nov 27, 2020
    Configuration menu
    Copy the full SHA
    25ce4ac View commit details
    Browse the repository at this point in the history

Commits on Dec 3, 2020

  1. Configuration menu
    Copy the full SHA
    b8b1a30 View commit details
    Browse the repository at this point in the history

Commits on Jan 18, 2021

  1. Configuration menu
    Copy the full SHA
    0bf2239 View commit details
    Browse the repository at this point in the history

Commits on Jan 21, 2021

  1. Configuration menu
    Copy the full SHA
    c887db8 View commit details
    Browse the repository at this point in the history

Commits on Jan 23, 2021

  1. Merge pull request #508 from TuningYourCode/master

    Fix download of beanstalkd_exporter for versions newer than 1.0.0
    bastelfreak authored Jan 23, 2021
    Configuration menu
    Copy the full SHA
    6457c31 View commit details
    Browse the repository at this point in the history

Commits on Feb 8, 2021

  1. added ipmi_exporter

    Benedikt Braunger committed Feb 8, 2021
    Configuration menu
    Copy the full SHA
    74beaa9 View commit details
    Browse the repository at this point in the history

Commits on Feb 16, 2021

  1. Merge pull request #489 from moonape1226/Update_network_dependency_in…

    …_daemon_systemd_template
    
    Update network denendency in daemon systemd template
    ghoneycutt authored Feb 16, 2021
    Configuration menu
    Copy the full SHA
    394b6aa View commit details
    Browse the repository at this point in the history
  2. Merge pull request #498 from bastelfreak/unbound

    Implement unbound_exporter
    ghoneycutt authored Feb 16, 2021
    Configuration menu
    Copy the full SHA
    5121ec0 View commit details
    Browse the repository at this point in the history

Commits on Feb 22, 2021

  1. Add Bind exporter (#312)

    * bind exporter support
    
    * add tests
    
    * fix robocop warnings
    
    * fix download URLs
    
    * bind: remove update tests as there's only one version
    
    * fix download url *again*
    
    * fix download extension type, it can be (and is) empty
    
    * properly set download_url parameters
    
    * mark the url_base as optional, enforce https (!)
    
    * this is not an archive after all
    
    * add support for scrape_job_labels from 8.x
    
    * catchup with the newer bind_exporter version (0.4.0
    
    * convert to puppet strings
    
    * move defaults to the class
    
    This way they show up in the REFERENCE.md documentation
    
    * add missing documentation variables
    
    * mark download_url as optional
    
    * fix some linter warning
    anarcat authored Feb 22, 2021
    Configuration menu
    Copy the full SHA
    da536f4 View commit details
    Browse the repository at this point in the history

Commits on Feb 23, 2021

  1. deploy env_file_path on server

    Without this change, when the install_method is set to `package` and
    init_style is set to `none`, the various `prometheus::server` settings
    will never do anything because we stop touching the systemd config
    file.
    
    By deploying the env_file_path on the server, we allow the "Debian
    package" setup (install_method=package and init_style=none) to
    propagate the daemon_flags correctly.
    
    By default, the Debian systemd.service file has this entry:
    
        EnvironmentFile=/etc/default/prometheus
        ExecStart=/usr/bin/prometheus $ARGS
    
    ... which makes it use the ARGS define in the "default" config
    file.
    
    This is a subset of #303, which should hopefully pass tests and be
    more manageable.
    
    Closes: #323
    anarcat committed Feb 23, 2021
    Configuration menu
    Copy the full SHA
    305e9ac View commit details
    Browse the repository at this point in the history
  2. convert daemon.env template to EPP

    Should be a noop
    anarcat committed Feb 23, 2021
    Configuration menu
    Copy the full SHA
    04af92c View commit details
    Browse the repository at this point in the history
  3. Merge pull request #529 from anarcat/daemon-env-epp

    convert daemon.env template to EPP
    anarcat authored Feb 23, 2021
    Configuration menu
    Copy the full SHA
    4e1d90c View commit details
    Browse the repository at this point in the history

Commits on Feb 24, 2021

  1. check node exporter config file instead of bird in node exporter test

    For some reason, the node exporter unit test checks for the
    inexistence of the bird_exporter config file. Naturally, it doesn't
    find it (why would it?).
    
    I suspect this is an artifact of a copy-paste from the bird exporter,
    and what was really meant here was to check for the inexistence of the
    node exporter config file.
    anarcat committed Feb 24, 2021
    Configuration menu
    Copy the full SHA
    902d980 View commit details
    Browse the repository at this point in the history
  2. pass options through env_vars if no control over init files

    The logic here is that if init_style is non, then we have no control
    over the init files themselves *except* through the environment
    file.
    
    Typically, the way this works is there is a ARGS environment variable
    that gets sucked into the systemd unit file (or the sysv init file).
    anarcat committed Feb 24, 2021
    Configuration menu
    Copy the full SHA
    05e52b0 View commit details
    Browse the repository at this point in the history
  3. purge env_file if unmanaged

    The previous version of this code left the file lying around if the
    env_vars values were emptied. Proper practice should make sure that
    file is garbage-collected if unmanaged.
    anarcat committed Feb 24, 2021
    Configuration menu
    Copy the full SHA
    3603499 View commit details
    Browse the repository at this point in the history
  4. try to fix mysterious test failure

    For some reason, the bird exporter thinks that file should be created
    even though it doesn't use init_style=none or
    install_method=package. Sure, it does have default options, but it
    seems that should normally not get triggered with default parameters.
    anarcat committed Feb 24, 2021
    Configuration menu
    Copy the full SHA
    a66fa3a View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    067c06c View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    e04a233 View commit details
    Browse the repository at this point in the history
  7. another stab at making tests pass

    This should make sure we don't create the env files when the env is
    empty.
    anarcat committed Feb 24, 2021
    Configuration menu
    Copy the full SHA
    c8211f4 View commit details
    Browse the repository at this point in the history
  8. fix default scrape_uri in apache_exporter

    The default scrape_uri in the prometheus apache exporter actually has
    a trailing slash. This matters because somehow, here, the address
    without a trailing slash fails to scrape.
    
    The default is documented here:
    
    https://github.com/Lusitaniae/apache_exporter/blob/83d8e4d2003eaa85c754d12c110e0a7757e78143/apache_exporter.go#L30
    
    Unit tests adjusted to match change.
    anarcat committed Feb 24, 2021
    Configuration menu
    Copy the full SHA
    6fe2c83 View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    ec09a92 View commit details
    Browse the repository at this point in the history
  10. cover the arch case correctly in tests for node exporter

    this is necessary now that #531 has been merged in
    anarcat committed Feb 24, 2021
    Configuration menu
    Copy the full SHA
    e0ba8ff View commit details
    Browse the repository at this point in the history
  11. Merge pull request #531 from anarcat/node-exporter-spec

    check node exporter config file instead of bird in node exporter test
    bastelfreak authored Feb 24, 2021
    Configuration menu
    Copy the full SHA
    17877da View commit details
    Browse the repository at this point in the history
  12. Merge pull request #532 from anarcat/scrape-uri-fix

    fix default scrape_uri in apache_exporter
    anarcat authored Feb 24, 2021
    Configuration menu
    Copy the full SHA
    0089f60 View commit details
    Browse the repository at this point in the history

Commits on Mar 1, 2021

  1. Merge pull request #527 from anarcat/env-file-server-323

    deploy env_file_path on server
    anarcat authored Mar 1, 2021
    Configuration menu
    Copy the full SHA
    9ea57fb View commit details
    Browse the repository at this point in the history
  2. Merge pull request #530 from anarcat/no-init-env-options

    pass options through env_vars if no control over init files
    anarcat authored Mar 1, 2021
    Configuration menu
    Copy the full SHA
    e0023e5 View commit details
    Browse the repository at this point in the history

Commits on Mar 12, 2021

  1. removed typo fix

    Benedikt Braunger committed Mar 12, 2021
    Configuration menu
    Copy the full SHA
    0348a0d View commit details
    Browse the repository at this point in the history

Commits on Mar 23, 2021

  1. Configuration menu
    Copy the full SHA
    bfbae89 View commit details
    Browse the repository at this point in the history

Commits on Mar 30, 2021

  1. Merge pull request #538 from bastelfreak/bird2

    bird_exporter: Update 1.2.4 -> 1.2.5
    ghoneycutt authored Mar 30, 2021
    Configuration menu
    Copy the full SHA
    4655157 View commit details
    Browse the repository at this point in the history

Commits on Apr 7, 2021

  1. fix quoting in apache exporter

    When using the Debian package to deploy the exporter, like this:
    
        class { 'prometheus::apache_exporter':
          package_ensure    => $package_ensure,
          service_ensure    => $service_ensure,
          export_scrape_job => true,
          install_method    => 'package',
          init_style        => 'none',
          user              => 'prometheus',
          group             => 'prometheus',
          package_name      => 'prometheus-apache-exporter',
          service_name      => 'prometheus-apache-exporter',
        }
    
    ... we end up with the options in
    `/etc/default/prometheus-apache-exporter`. It *looks* like it will be
    fine: the systemd unit file sucks those in as an environment variable,
    and then passes that along to the process. But look closely at what
    actually gets generated:
    
        ARGS="--scrape_uri "http://localhost/server-status/?auto" "
    
    This kind of looks okay if you squint a little, but it actually turns
    out it's really, really wrong. What it ends up doing is basically
    this:
    
            apache-exporter --scrape_uri "http://localhost/server-status/?auto "
    
    Notice the trailing slash here. When the exporter makes the request to
    Apache next, it ends up doing this query:
    
        GET /server-status/?auto  HTTP/1.1
        [...]
    
    At first glance, this looks fine: just a regular HTTP request, right?
    But if you look more closely, there are *two* spaces before the
    HTTP/1.1 Apache doesn't like that, *at all*. It doesn't even wait for
    the rest of the headings to come in, it immediately answers with:
    
        HTTP/1.1 400 Bad Request
    
    ... and closes the socket. That, naturally, makes the exporter quite
    unhappy and totally unable to collect metrics.
    
    By using single quotes, we work around the quoting issue and correctly
    pass the right URL down to the exporter, at least in Debian.
    anarcat committed Apr 7, 2021
    Configuration menu
    Copy the full SHA
    2efab4f View commit details
    Browse the repository at this point in the history
  2. Merge pull request #541 from anarcat/quoting

    fix quoting in apache exporter
    bastelfreak authored Apr 7, 2021
    Configuration menu
    Copy the full SHA
    c235679 View commit details
    Browse the repository at this point in the history

Commits on Apr 16, 2021

  1. puppet/archive: allow 5.x

    bastelfreak committed Apr 16, 2021
    Configuration menu
    Copy the full SHA
    eec382f View commit details
    Browse the repository at this point in the history
  2. Merge pull request #543 from voxpupuli/archive

    puppet/archive: allow 5.x
    bastelfreak authored Apr 16, 2021
    Configuration menu
    Copy the full SHA
    b8f15a7 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    920e3f7 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    91dd510 View commit details
    Browse the repository at this point in the history

Commits on Apr 20, 2021

  1. Merge pull request #522 from benibr/feature/ipmi_exporter

    Support for IPMI exporter
    ghoneycutt authored Apr 20, 2021
    Configuration menu
    Copy the full SHA
    51a3864 View commit details
    Browse the repository at this point in the history

Commits on Apr 25, 2021

  1. Merge pull request #545 from voxpupuli/stdlib

    puppetlabs/stdlib: Allow 7.x
    bastelfreak authored Apr 25, 2021
    Configuration menu
    Copy the full SHA
    31cd888 View commit details
    Browse the repository at this point in the history
  2. release 11.1.0

    bastelfreak committed Apr 25, 2021
    Configuration menu
    Copy the full SHA
    2377faf View commit details
    Browse the repository at this point in the history
  3. Merge pull request #546 from voxpupuli/rel1110

    release 11.1.0
    bastelfreak authored Apr 25, 2021
    Configuration menu
    Copy the full SHA
    b2eaad7 View commit details
    Browse the repository at this point in the history