How to see in Grafana records from Elasticsearch?

12 views
Skip to first unread message

Albert Aleksandrov

unread,
May 18, 2020, 6:07:15 AM5/18/20
to Prometheus Users
Hi all!

In Grafana data sources I registered Elasticsearch:

Заявление.jpg


Generated data to index recipes with this scripts https://github.com/kadnan/Python-Elasticsearch/blob/master/fetch_recipes.py (and just added timestam field with current time).


I can see records that are generated by the script in ElasticSearch Toolbox:


screenshot_2.png



There are 10 recipes.

1. When creating a panel with Elasticserach as the source with count aggregation there must be 10 instead of 0, right?

screenshot_1.png


2. How would look like the query that sum all timestamps (sum(timestamp))?

3. Shoud records from Elasticsearch look like this in Grafana?

screenshot_3.png


Brian Candler

unread,
May 18, 2020, 8:26:09 AM5/18/20
to Prometheus Users
I can't work out what the connection is with Prometheus - could you explain please?

Albert Aleksandrov

unread,
May 18, 2020, 8:31:57 AM5/18/20
to Prometheus Users
Oh, you're right. Sorry for that

понедельник, 18 мая 2020 г., 15:26:09 UTC+3 пользователь Brian Candler написал:
Reply all
Reply to author
Forward
0 new messages