RSS Feeds / News Feeds

Ran into an issue where my Query wasn’t showing up right. After looking into it I found that the issue was not with Grafanna, but with Azure Log Analytics. I would imaging that AWS and GCP could run into the same issue.
AzureStatusFeed

Has anyone added a newsfeed to a Landing Page Dashboard?
I did come across 9517

Quick proof of concept - add Text panel with HTML content:

<script type="text/javascript">
$.get("https://rss.nytimes.com/services/xml/rss/nyt/World.xml", function(data) {
    var $XML = $(data);
    $XML.find("item").each(function() {
        var $this = $(this),
            item = {
                title:       $this.find("title").text(),
                link:        $this.find("link").text(),
                description: $this.find("description").text(),
                pubDate:     $this.find("pubDate").text(),
                author:      $this.find("author").text()
            };
        $('#rss-div').append($('<h6/>').text(item.title));
        //etc.
    });
});
</script>
<div id="rss-div"></div>

Thank You! Gave it a shot and it works like a champ. Hopefully others can find this useful too.

I tried above example on grafana.net using the Text plugin but although I selected HTML it renders the html and doesn’t run the javascript.
It looks like js support is disabled unless I missed some configuration to enable it?
Thoughts?

Right, I probably found the answer: http://docs.grafana.org/installation/configuration/#disable-sanitize-html

It’s a XSS security feature added with Grafana 6.0.0, but can be disabled. I guess not on grafana.net though.

1 Like

Hi,

What was your code to get the RSS feed from Azure Status?

i know this is a little old but why does this not work for the sky news rss feeds

feeds.skynews.com/feeds/rss/uk.xml