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

Add metrics-endpoint to istio-gateway #477

Merged
merged 11 commits into from
Aug 1, 2024
Merged

Add metrics-endpoint to istio-gateway #477

merged 11 commits into from
Aug 1, 2024

Conversation

rgildein
Copy link
Contributor

Add relations endpoints for metrics and Grafana dashboards + update manifest to export metrics via service port. I add separate service port, since ClusterIP is enough for metrics.

I also update cos-integration test for both charms using only chisme cos abstraction. For testing if alert rule is firing, we should use promtool.

fixes: #475

Add relations endpoints + update manifest to export metrics via
service port.

fixes: #475
There are more rules, but no metrics for them was found. I also
cheded alert rules from [2]. The Grafana dashboards will be added
to istio-pilot in different PR, since most of metrics used in them
are from the istio-pilot.

---
[1]: https://samber.github.io/awesome-prometheus-alerts/rules.html#rule-istio-1-10
[2]: https://github.com/istio/tools/blob/release-1.14/perf/stability/alertmanager/prometheusrule.yaml
@rgildein
Copy link
Contributor Author

Note for reviewer:
There are two sources for alert rules 1 and 2, but only one will work with metrics I saw 3. I’m not sure if we can enable more metrics somehow, I check the documentation 4, but I did not saw anything.


rgildein added a commit that referenced this pull request Jul 22, 2024
Add cos along with grafana_dashboard and prometheus_scrape, since
this is related with #477.
@rgildein rgildein mentioned this pull request Jul 22, 2024
Copy link
Contributor

@orfeas-k orfeas-k left a comment

Choose a reason for hiding this comment

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

There's some leftovers from the dashboard. Could you also update the PR's title?

tests/test_cos_integration.py Show resolved Hide resolved
tests/test_cos_integration.py Outdated Show resolved Hide resolved
tests/test_cos_integration.py Outdated Show resolved Hide resolved
charms/istio-gateway/src/charm.py Outdated Show resolved Hide resolved
orfeas-k
orfeas-k previously approved these changes Jul 30, 2024
Copy link
Contributor

@orfeas-k orfeas-k left a comment

Choose a reason for hiding this comment

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

Let's also update the PR's title

@rgildein rgildein changed the title Add metrics-endpoint and grafana-dashbo to istio-gateway Add metrics-endpoint to istio-gateway Jul 30, 2024
@rgildein rgildein merged commit ced1b75 into main Aug 1, 2024
19 checks passed
@rgildein rgildein deleted the feat/KF-5996/metrics branch August 1, 2024 08:07
rgildein added a commit that referenced this pull request Aug 28, 2024
Add relations endpoints + update manifest to export metrics via
service port.

There are more rules, but no metrics for them was found. I also
cheded alert rules from [2]. The Grafana dashboards will be added
to istio-pilot in different PR, since most of metrics used in them
are from the istio-pilot.

---
[1]: https://samber.github.io/awesome-prometheus-alerts/rules.html#rule-istio-1-10
[2]: https://github.com/istio/tools/blob/release-1.14/perf/stability/alertmanager/prometheusrule.yaml
rgildein added a commit that referenced this pull request Aug 28, 2024
Add relations endpoints + update manifest to export metrics via
service port.

There are more rules, but no metrics for them was found. I also
cheded alert rules from [2]. The Grafana dashboards will be added
to istio-pilot in different PR, since most of metrics used in them
are from the istio-pilot.

---
[1]: https://samber.github.io/awesome-prometheus-alerts/rules.html#rule-istio-1-10
[2]: https://github.com/istio/tools/blob/release-1.14/perf/stability/alertmanager/prometheusrule.yaml
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add relation and expose metrics from istio-gateway
2 participants