Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

rabbitmq plugin 1.19.1 api/federation-links failure #9489

Closed
pabigot opened this issue Jul 11, 2021 · 2 comments
Closed

rabbitmq plugin 1.19.1 api/federation-links failure #9489

pabigot opened this issue Jul 11, 2021 · 2 comments
Labels
area/mqtt bug unexpected problem or unintended behavior

Comments

@pabigot
Copy link
Contributor

pabigot commented Jul 11, 2021

Relevant telegraf.conf:

# Reads metrics from RabbitMQ servers via the Management Plugin
[[inputs.rabbitmq]]
  queues = ["collate", "influxdb.write", "wsn.asrpdu", "wsn.signal"]
  exchanges = ["amq.topic", "influxdb", "openweather", "tasmota", "wsn"]
  queue_name_exclude = ["amq.gen-*", "mqtt-subscription-DVES_*"]

System info:

central20[7]$ uname -a
Linux central20 5.4.0-77-generic #86-Ubuntu SMP Thu Jun 17 02:35:03 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux
central20[8]$ dpkg -l | grep telegraf
ii  telegraf                             1.19.1-1                                    amd64        Plugin-driven server agent for reporting metrics into InfluxDB.
central20[9]$ cat /etc/os-release 
NAME="Ubuntu"
VERSION="20.04.2 LTS (Focal Fossa)"
ID=ubuntu
ID_LIKE=debian
PRETTY_NAME="Ubuntu 20.04.2 LTS"
VERSION_ID="20.04"
HOME_URL="https://www.ubuntu.com/"
SUPPORT_URL="https://help.ubuntu.com/"
BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/"
PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy"
VERSION_CODENAME=focal
UBUNTU_CODENAME=focal

Steps to reproduce:

Update from telegraph 1.19.0 to 1.19.1

Expected behavior:

Removal of unmarshal errors due to incorporation of #9443

Actual behavior:

While #9443 fixed part of the problem, #9383 (comment) notes that /api/federation-links in at least some installations does not exist, a problem that was masked by the unmarshal bug. My installation is now repeatedly complaining:

Jul 11 02:59:40 central20 telegraf[1353]: 2021-07-11T02:59:40Z E! [inputs.rabbitmq] Error in plugin: getting "/api/federation-links" failed: 404 Not Found
Jul 11 02:59:50 central20 telegraf[1353]: 2021-07-11T02:59:50Z E! [inputs.rabbitmq] Error in plugin: getting "/api/federation-links" failed: 404 Not Found
@pabigot pabigot added the bug unexpected problem or unintended behavior label Jul 11, 2021
@pabigot
Copy link
Contributor Author

pabigot commented Jul 14, 2021

It appears #6283 is based on an expectation that the federation plugin is enabled, although the module is opt-in (and not useful in a single-broker installation). There seems to be no way to opt out of attempting to collect the data, or to indicate that absence of the plugin is not an error.

What's the right solution? @jacquesh?

@pabigot
Copy link
Contributor Author

pabigot commented Jul 15, 2021

This problem can be worked around as described in #9505 (comment)

@pabigot pabigot closed this as completed Jul 15, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/mqtt bug unexpected problem or unintended behavior
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant