add rss feed title
This commit is contained in:
parent
65d8f2d0e4
commit
49701ffb05
|
@ -74,6 +74,7 @@ func (r *RSS) gatherFeed(acc telegraf.Accumulator, url string, ts time.Time) err
|
||||||
tags["url"] = url
|
tags["url"] = url
|
||||||
tags["feed_type"] = feed.FeedType
|
tags["feed_type"] = feed.FeedType
|
||||||
tags["feed_version"] = feed.FeedVersion
|
tags["feed_version"] = feed.FeedVersion
|
||||||
|
tags["feed_title"] = feed.Title
|
||||||
|
|
||||||
for _, item := range feed.Items {
|
for _, item := range feed.Items {
|
||||||
pubtime := item.PublishedParsed
|
pubtime := item.PublishedParsed
|
||||||
|
|
Loading…
Reference in New Issue