curl -u admin:password -X POST 'https://clustername:9200/_security/api_key' -H 'Content-Type: application/json' -d '{"name": "devops-api", "expiration": "1d"}'
curl 'https://clustername:9200/_cluster/health?pretty'
curl -X POST 'https://clustername:9200/_bulk' -H 'Content-Type: application/json' -d '
{ "index" : { "_index" : "test", "_id" : "1" } }
{ "user" : "John Doe" }
{ "delete" : { "_index" : "test", "_id" : "2" } }'
curl -X GET 'https://clustername:9200/indexname/_search' -H 'Content-Type: application/json' -d '{"query": {"match": {"user": "Jane"}}}'
curl -X POST -H 'Content-Type: application/json' 'https://clustername:9200/maindex/_doc/1' -d '{"user":"Jane","action":"login"}'
curl 'https://clustername:9200/indexname/_mapping?pretty'
curl 'https://clustername:9200/_cat/aliases?pretty'
curl "https://clusterName:9200/_cat/indices?pretty"
curl 'https://clustername:9200/_cat/indices?pretty'
curl 'https://clustername:9200/maindex/_doc/1?pretty'
curl -X POST 'https://clustername:9200/_snapshot/repo1/snap1/_restore' -H 'Content-Type: application/json' -d '{"indices": "maindex"}'
curl -X DELETE 'https://clustername:9200/maindex/_doc/1?pretty'
curl -H 'Authorization: ApiKey <base64-API_KEY>' 'https://clustername:9200/_cluster/health?pretty'
curl "https://clusterName:9200/_cluster/health?pretty"
curl -X POST -H "Authorization: Bearer <API_KEY>" -H "Content-Type: application/json" "http://localhost:3000/api/dashboards/db" --data-binary @new_dashboard.json
curl -X POST -H "Authorization: Bearer <API_KEY>" -H "Content-Type: application/json" '"http://localhost:3000/api/serviceaccounts/{id}/tokens" '--data '{"name":"api-token","secondsToLive":86400}'
curl -X POST -H "Authorization: Bearer <API_KEY>" -H "Content-Type: application/json" '"http://localhost:3000/api/datasources" '--data-binary @my_datasource.json
curl -H "Authorization: Bearer <API_KEY>" "http://localhost:3000/api/dashboards/uid/E3D98A6A"
curl -H "Authorization: Bearer <API_KEY>" "http://localhost:3000/api/folders"
curl -H "Authorization: Bearer <API_KEY>" "http://localhost:3000/api/orgs"
curl -H "Authorization: Bearer <API_KEY>" "http://localhost:3000/api/search?type=dash-db"
curl -H "Authorization: Bearer <API_KEY>" "http://localhost:3000/api/datasources"
curl -H "Authorization: Bearer <API_KEY>" "http://localhost:3000/api/users"
curl -H "Authorization: Bearer <API_KEY>" "http://localhost:3000/api/health"
management.endpoints.web.exposure.include=prometheus
curl "http://localhost:9090/api/v1/query?query=node_cpu_seconds_total"
curl http://localhost:9093/api/v2/alerts
kill -HUP $(pidof prometheus)
curl http://localhost:9090/-/ready
- alert: InstanceDown
expr: up == 0
for: 1m
topk(5, rate(container_cpu_usage_seconds_total[5m]))
(node_memory_MemTotal_bytes - node_memory_MemAvailable_bytes) / node_memory_MemTotal_bytes * 100
topk(5, rate(container_cpu_usage_seconds_total[5m]))