-
-
Notifications
You must be signed in to change notification settings - Fork 94
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Migrate Prometheus to metric sink concept (#1025)
- Loading branch information
1 parent
66a2ad8
commit a9db2b2
Showing
33 changed files
with
852 additions
and
109 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -302,3 +302,5 @@ docs/_site/* | |
.DS_Store | ||
|
||
*.orig | ||
changelog/public/ | ||
changelog/resources/_gen/ |
30 changes: 30 additions & 0 deletions
30
changelog/content/deprecated/prometheus-legacy-configuration.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
--- | ||
title: | ||
subtitle: created on {{ now.Format "2006-01-02" }} | ||
date: 2020-05-14T12:00:00+01:00 | ||
removal_date: 2019-07-07 | ||
weight: | ||
version: | ||
--- | ||
|
||
#### Prometheus Legacy Configuration | ||
|
||
###### Deprecated as of v1.6 and will be removed in v2.0 | ||
|
||
Promitor has added support for different metric sinks in v1.6 along with a Prometheus | ||
Scraping endpoint sink. | ||
|
||
This scraping endpoint works the same way as before but has a different way of configuration | ||
which is more in line with other sinks. | ||
|
||
Because of that we are removing support for the "legacy" Prometheus configuration and use | ||
a unified metric sink approach. | ||
|
||
We've added support for Prometheus metric sink while maintaining the legacy approach until | ||
it's being removed. | ||
|
||
**Impact:** Migration is required - Prometheus legacy configuration will no longer be available. | ||
|
||
**Alternative:** Use our new [metric sink concept](https://promitor.io/configuration/v1.x/runtime#prometheus-scraping-endpoint). | ||
|
||
**Discussion:** [GitHub Issue #1032](https://github.com/tomkerkhove/promitor/issues/1032) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 5 additions & 1 deletion
6
src/Promitor.Agents.Scraper/Configuration/Sinks/MetricSinkConfiguration.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,11 @@ | ||
namespace Promitor.Agents.Scraper.Configuration.Sinks | ||
using Promitor.Integrations.Sinks.Prometheus.Configuration; | ||
using Promitor.Integrations.Sinks.Statsd.Configuration; | ||
|
||
namespace Promitor.Agents.Scraper.Configuration.Sinks | ||
{ | ||
public class MetricSinkConfiguration | ||
{ | ||
public StatsdSinkConfiguration Statsd { get; set; } | ||
public PrometheusScrapingEndpointSinkConfiguration PrometheusScrapingEndpoint { get; set; } | ||
} | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
20 changes: 19 additions & 1 deletion
20
src/Promitor.Agents.Scraper/Extensions/IApplicationBuilderExtensions.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.