Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Blog: Using Prometheus in Node-RED for monitoring #2651

Open
wants to merge 8 commits into
base: main
Choose a base branch
from

Conversation

sumitshinde-84
Copy link
Collaborator

Description

Related Issue(s)

Checklist

  • I have read the contribution guidelines
  • I have considered the performance impact of these changes
  • Suitable unit/system level tests have been added and they pass
  • Documentation has been updated

Copy link
Contributor

github-actions bot commented Oct 8, 2024

Images automagically compressed by Calibre's image-actions

Compression reduced images by 22.6%, saving 54.58 KB.

Filename Before After Improvement Visual comparison
src/blog/2024/10/images/instance-setting-env.png 64.45 KB 44.06 KB -31.6% View diff
src/blog/2024/10/images/prometheus-graph.png 96.42 KB 87.90 KB -8.8% View diff
src/blog/2024/10/images/prometheus-live-retrived-data.png 31.87 KB 22.59 KB -29.1% View diff
src/blog/2024/10/images/prometheus-out-config.png 21.98 KB 13.34 KB -39.3% View diff
src/blog/2024/10/images/prometheus-retrived-data-format.png 26.35 KB 18.59 KB -29.4% View diff

1411 images did not require optimisation.

Copy link
Contributor

github-actions bot commented Oct 8, 2024

Images automagically compressed by Calibre's image-actions

Compression reduced images by 30.5%, saving 4.34 KB.

Filename Before After Improvement Visual comparison
src/blog/2024/10/images/form-elements.png 14.23 KB 9.88 KB -30.5% View diff

1416 images did not require optimisation.

@sumitshinde-84 sumitshinde-84 marked this pull request as ready for review October 8, 2024 12:29

Prometheus is a cutting-edge open-source monitoring and alerting toolkit that empowers organizations to gain real-time insights into their systems and applications. Designed for efficient handling of time series data, Prometheus captures critical metrics, organizes them, and stores them alongside timestamps, enabling you to track performance and identify issues as they arise.

With its unique ability to scrape metrics from various HTTP endpoints, Prometheus transforms raw data into actionable insights, allowing teams to seamlessly monitor everything from CPU usage to request counts. However, it is essential to note that Prometheus stores this data in memory. While this design provides quick access to metrics for real-time monitoring, there may be better options for long-term storage.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you provide some examples of the better options?


### Key Concepts and Components of Prometheus

Understanding some fundamental concepts will enhance your ability to utilize Prometheus effectively:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Before we get started here are some essential Prometheus concepts you need to know:


## Conclusion

In this guide, we covered the fundamentals of Prometheus, starting with its role as a robust monitoring and alerting toolkit. We explored the installation process, ensuring you can effectively set up Prometheus on your system. Then, we demonstrated how to integrate Prometheus with Node-RED for sending and receiving metrics and a practical example of monitoring CPU usage. This setup can be easily extended to track various metrics, providing a holistic view of your system's performance.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
In this guide, we covered the fundamentals of Prometheus, starting with its role as a robust monitoring and alerting toolkit. We explored the installation process, ensuring you can effectively set up Prometheus on your system. Then, we demonstrated how to integrate Prometheus with Node-RED for sending and receiving metrics and a practical example of monitoring CPU usage. This setup can be easily extended to track various metrics, providing a holistic view of your system's performance.
We covered the fundamentals of Prometheus, starting with its role as a robust monitoring and alerting toolkit. We explored the installation process, ensuring you can effectively set up Prometheus on your system. Then, we demonstrated how to integrate Prometheus with Node-RED for sending and receiving metrics and a practical example of monitoring CPU usage. This setup can be easily extended to track various metrics, providing a holistic view of your system's performance.


Now that you've learned how to build a Prometheus dashboard and run basic queries refer to the [Prometheus API documentation](https://prometheus.io/docs/prometheus/latest/querying/api/) for more advanced queries.

## Conclusion
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
## Conclusion
## Summary

description: Learn to integrate Prometheus with Node-RED for monitoring and exporting metrics and create dashboards to visualize them.
date: 2024-10-12
authors: ["sumit-shinde"]
image:
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Todo

- system monitoring using prometheus
---

Prometheus is a popular tool for monitoring and collecting system metrics. It helps you track server performance, resource usage, and application health. It’s widely used in various applications, including IoT, where it can monitor data such as temperature and humidity. By collecting these metrics, you can gain valuable insights into your systems and ensure they run smoothly.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
Prometheus is a popular tool for monitoring and collecting system metrics. It helps you track server performance, resource usage, and application health. It’s widely used in various applications, including IoT, where it can monitor data such as temperature and humidity. By collecting these metrics, you can gain valuable insights into your systems and ensure they run smoothly.
Prometheus is a popular tool for monitoring and collecting server metrics. It helps you track performance, resource usage, and application health. By collecting these metrics, you can gain valuable insights into your systems and ensure they run smoothly.

I've not seen widespread use at all, it's not really well suited for IoT either. What's the source?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants