Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.
Jorge de la Cruz
@jorgedlcruz
https://jorgedelacruz.es || https://jorgedelacruz.uk
RESTful API – How to
Consume, Extract, ...
What are we
going to learn?
• Introduction and Quick Overview of a
RESTful API
• Components and diagram of the How-To
• De...
THE PROBLEMS
I’VE SOLVED
BY CHOOSING
TIME SERIES
From zero to time-series
Introduction and Quick Overview of a RESTful API
Application Programming Interface
What is an API?
Think of an API as a waitress, you have a menu and
you select some food,...
A World without an API
A World with an API
• REpresentational State Transfer (REST)
• Architectural style based on web standards and the HTTP protocol
• Everything i...
GET
Most popular protocol used for RESTful implementations is HTTP
REST architecture uses HTML verbs to make requests
Uniq...
HTTP response status code
Informational Codes
Redirection Codes
Server Error Codes
Successful Codes
Client Error Codes
Use existing tools:
• POSTMAN (Google Chrome)
• RESTClient (Mozilla Firefox)
• Swagger (when available)
• CURL (for the co...
Comprehend visually what’s what
Components and diagram of the How-To
InfluxDB Server
Database Server to save metrics
Bash Shell Script.sh
Bash Script to collect data
COLLECTOR VISUALIZATION
F...
Not always available, but when it is, the best resource
Deep-dive in Swagger
Obtaining our first JSON to parse
id=96965f6a-6f09-4286-a47c-1346c8631d99
Obtaining our first JSON to parse
objectStorageId=07c58531-19b5-42a9-8051-5a2137bf...
The “sed” for JSON Data, parsing like a Pro
Deep-dive on Bash Shell and JQ
Parsing a JSON to useful data with JQ
Jqplay.org
jq '.[] | .objectStorageId,.objectStorageCachePath,.capacityBytes,.freeSp...
Putting all of this on Bash Shell Script
Putting all of this on Bash Shell Script
How to quickly build gorgeous, yet useful, Dashboards
Deep-Dive on InfluxDB 1.x Queries, using Grafana
Grafana – Quick Overview I
Grafana – Quick Overview II
Grafana – Dashboard Variables
Grafana – Dashboard Variables
Grafana – Veeam Backup for Azure
Grafana – Veeam Backup for MS365
Grafana – Veeam Enterprise Manager
Grafana – Veeam Enterprise Manager
Grafana – JSON API Plugin
A non-production ready yet, awesome plugin
By Marcus Olsson
A great way to query, and parse a JS...
THANK YOU
You’ve finished this document.
Download and read it offline.
Upcoming SlideShare
What to Upload to SlideShare
Next
Upcoming SlideShare
What to Upload to SlideShare
Next
Download to read offline and view in fullscreen.

Share

Jorge de la Cruz [Veeam Software] | RESTful API – How to Consume, Extract, Store, and Visualize Data with InfluxDB and Grafana | InfluxDays Virtual Experience NA 2020

Download to read offline

Jorge de la Cruz [Veeam Software] | RESTful API – How to Consume, Extract, Store, and Visualize Data with InfluxDB and Grafana | InfluxDays Virtual Experience NA 2020

Related Books

Free with a 30 day trial from Scribd

See all
  • Be the first to like this

Jorge de la Cruz [Veeam Software] | RESTful API – How to Consume, Extract, Store, and Visualize Data with InfluxDB and Grafana | InfluxDays Virtual Experience NA 2020

  1. 1. Jorge de la Cruz @jorgedlcruz https://jorgedelacruz.es || https://jorgedelacruz.uk RESTful API – How to Consume, Extract, Store, and Visualize Data with InfluxDB and Grafana
  2. 2. What are we going to learn? • Introduction and Quick Overview of a RESTful API • Components and diagram of the How-To • Deep-dive in Swagger • Deep-dive on Bash Shell and JQ • Deep-Dive on InfluxDB 1.x Queries, using Grafana as a Dashboard system
  3. 3. THE PROBLEMS I’VE SOLVED BY CHOOSING TIME SERIES
  4. 4. From zero to time-series Introduction and Quick Overview of a RESTful API
  5. 5. Application Programming Interface What is an API? Think of an API as a waitress, you have a menu and you select some food, the waitress takes that order to the kitchen, who prepares the food, and the waitress delivers the order to your table Request ResponseYou Server API
  6. 6. A World without an API
  7. 7. A World with an API
  8. 8. • REpresentational State Transfer (REST) • Architectural style based on web standards and the HTTP protocol • Everything is a resource • CRUD or HTTP methods Server-client model What is a REST API?
  9. 9. GET Most popular protocol used for RESTful implementations is HTTP REST architecture uses HTML verbs to make requests Uniquely address data using a uniform and minimal set of commands HTTP Methods POST DELETE PUT Read data or resources Create data or resources Delete data or resources Update data or resources
  10. 10. HTTP response status code Informational Codes Redirection Codes Server Error Codes Successful Codes Client Error Codes
  11. 11. Use existing tools: • POSTMAN (Google Chrome) • RESTClient (Mozilla Firefox) • Swagger (when available) • CURL (for the command-line geek) Talking with an API
  12. 12. Comprehend visually what’s what Components and diagram of the How-To
  13. 13. InfluxDB Server Database Server to save metrics Bash Shell Script.sh Bash Script to collect data COLLECTOR VISUALIZATION From RESTful API, to InfluxDB, to Visual
  14. 14. Not always available, but when it is, the best resource Deep-dive in Swagger
  15. 15. Obtaining our first JSON to parse
  16. 16. id=96965f6a-6f09-4286-a47c-1346c8631d99 Obtaining our first JSON to parse objectStorageId=07c58531-19b5-42a9-8051-5a2137bf7731 objectStoragCachePath=E:REPO002 capacityBytes=107370971136 freeSpaceBytes=100837818368 name=NTFS-REPO-1Y
  17. 17. The “sed” for JSON Data, parsing like a Pro Deep-dive on Bash Shell and JQ
  18. 18. Parsing a JSON to useful data with JQ Jqplay.org jq '.[] | .objectStorageId,.objectStorageCachePath,.capacityBytes,.freeSpaceBytes,.id,.name'
  19. 19. Putting all of this on Bash Shell Script
  20. 20. Putting all of this on Bash Shell Script
  21. 21. How to quickly build gorgeous, yet useful, Dashboards Deep-Dive on InfluxDB 1.x Queries, using Grafana
  22. 22. Grafana – Quick Overview I
  23. 23. Grafana – Quick Overview II
  24. 24. Grafana – Dashboard Variables
  25. 25. Grafana – Dashboard Variables
  26. 26. Grafana – Veeam Backup for Azure
  27. 27. Grafana – Veeam Backup for MS365
  28. 28. Grafana – Veeam Enterprise Manager
  29. 29. Grafana – Veeam Enterprise Manager
  30. 30. Grafana – JSON API Plugin A non-production ready yet, awesome plugin By Marcus Olsson A great way to query, and parse a JSON on the fly, and show it on Grafana: • https://grafana.com/grafana/plugins/marcusolsson-json-datasource
  31. 31. THANK YOU

Jorge de la Cruz [Veeam Software] | RESTful API – How to Consume, Extract, Store, and Visualize Data with InfluxDB and Grafana | InfluxDays Virtual Experience NA 2020

Views

Total views

187

On Slideshare

0

From embeds

0

Number of embeds

0

Actions

Downloads

7

Shares

0

Comments

0

Likes

0

×