IMLC.ME
Search…
en-US
Monitoring, ElasticSearch and Grafana
This page demonstrates the simplest implementation that use ElasticSearch and Grafana to monitor metrics

Create Index in ElasticSearch

1
curl -X PUT "localhost:9200/simple?pretty" -H 'Content-Type: application/json' -d'
2
{ "mappings": {
3
"properties": {
4
"@timestamp": {
5
"type": "date"
6
},
7
"value": {
8
"type": "long"
9
}
10
}
11
}
12
}
13
'
Copied!

Submit Metric to ElasticSearch

1
curl -X POST 'localhost:9200/simple/_doc?pretty' -H 'Content-Type: application/json' -d'
2
{
3
"value": 1045,
4
"@timestamp": 1593267490678
5
}
Copied!

Add ElasticSearch as Data Source in Grafana

Query Metrics in Grafana

Last modified 1yr ago