Allow config to restrict hosts allowed to scrape metrics

Bug #1890102 reported by Haw Loeung
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Telegraf Charm
Fix Released
Wishlist
Unassigned

Bug Description

Hi,

It looks like telegraf has an option to restrict access to specific hosts allowed to scrape metrics:

| [[outputs.prometheus_client]]
| ## Use HTTP Basic Authentication.
| # basic_username = "Foo"
| # basic_password = "Bar"
|
| ## If set, the IP Ranges which are allowed to access metrics.
| ## ex: ip_range = ["192.168.0.0/24", "192.168.1.0/30"]
| # ip_range = []

Can we have the charm expose these two? Specifically, we'd like ip_range but basic authentication I think would also be useful for users.

Thanks,

Haw

Related branches

Edin S (exsdev)
Changed in charm-telegraf:
importance: Undecided → Wishlist
Revision history for this message
Haw Loeung (hloeung) wrote :

Any chance this could be prioritised higher? We have machines deployed on edge and in various public clouds where Juju would open up access to all. Would be nice to lock down / restrict at least via ip_range.

Revision history for this message
Junien F (axino) wrote :

If I'm reading templates/telegraf.conf.tmpl right, you can already do that via the juju config option "extra_options"

Changed in charm-telegraf:
assignee: nobody → Laurent Sesques (sajoupa)
Haw Loeung (hloeung)
Changed in charm-telegraf:
status: New → In Progress
Barry Price (barryprice)
Changed in charm-telegraf:
assignee: Laurent Sesques (sajoupa) → Barry Price (barryprice)
status: In Progress → Fix Committed
Barry Price (barryprice)
Changed in charm-telegraf:
status: Fix Committed → Fix Released
assignee: Barry Price (barryprice) → nobody
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.