<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Skyline and Azure managed prometheus in OpenTelemetry/Skyline</title>
    <link>https://community.checkpoint.com/t5/OpenTelemetry-Skyline/Skyline-and-Azure-managed-prometheus/m-p/209911#M349</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.checkpoint.com/t5/user/viewprofilepage/user-id/75091"&gt;@Peter_Gastinger&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;We don't support oauth2, only the base sigv4 authentication from AWS, for any enhancements, please open an RFE - and we will see if we can push it as part of the roadmap.&lt;/P&gt;</description>
    <pubDate>Thu, 28 Mar 2024 09:29:26 GMT</pubDate>
    <dc:creator>Elad_Chomsky</dc:creator>
    <dc:date>2024-03-28T09:29:26Z</dc:date>
    <item>
      <title>Skyline and Azure managed prometheus</title>
      <link>https://community.checkpoint.com/t5/OpenTelemetry-Skyline/Skyline-and-Azure-managed-prometheus/m-p/209732#M346</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am currently playing around with Skyline and Azure managed Prometheus. At the moment, my setup looks following:&lt;/P&gt;&lt;P&gt;Azure NVA (R81.10, latest HFA) -&amp;gt; Prometheus in Container Instance -&amp;gt; Managed Prometheus.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would like to get rid of the Container Instance. I tried some settings:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;{"enabled": true,
"export-targets": {"add": [
{
"client-auth": {
"oauth2": {
"client_id": "&amp;lt;client_id&amp;gt;",
"client_secret": "&amp;lt;client_secret&amp;gt;",
"token_url": "https://login.microsoftonline.com/&amp;lt;tenant&amp;gt;/oauth2/token",
"scopes": ["https://prometheus.monitor.azure.com"]
}
},
"enabled": true,
"type": "prometheus-remote-write",
"url": "https://&amp;lt;instance&amp;gt;.westeurope-1.metrics.ingest.monitor.azure.com/dataCollectionRules/dcr-1566dca15e8d4766af99f66fbdaeda18/streams/Microsoft-PrometheusMetrics/api/v1/write?api-version=2023-04-24"
}
]}
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;Not sure if this syntax is right, the configuration example only has a basic authentication example.&amp;nbsp;&lt;/P&gt;&lt;P&gt;According to the logs, this doesn't seem to work. There is a token missing:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;2024-03-26T15:36:16.532Z error exporterhelper/queued_retry.go:391 Exporting failed. The error is not retryable. Dropping data. {"kind": "exporter", "data_type": "metrics", "name": "prometheusremotewrite", "error": "Permanent error: Permanent error: remote write returned HTTP status 401 Unauthorized; err = %!w(&amp;lt;nil&amp;gt;): {\"Error\":{\"Code\":\"MissingToken\",\"Message\":\"Authentication token required.\"}}", "dropped_items": 416}
go.opentelemetry.io/collector/exporter/exporterhelper.(*retrySender).send
go.opentelemetry.io/collector/exporter@v0.82.0/exporterhelper/queued_retry.go:391
go.opentelemetry.io/collector/exporter/exporterhelper.(*metricsSenderWithObservability).send
go.opentelemetry.io/collector/exporter@v0.82.0/exporterhelper/metrics.go:125
go.opentelemetry.io/collector/exporter/exporterhelper.(*queuedRetrySender).start.func1
go.opentelemetry.io/collector/exporter@v0.82.0/exporterhelper/queued_retry.go:195
go.opentelemetry.io/collector/exporter/exporterhelper/internal.(*boundedMemoryQueue).StartConsumers.func1
go.opentelemetry.io/collector/exporter@v0.82.0/exporterhelper/internal/bounded_memory_queue.go:47&lt;/LI-CODE&gt;&lt;P&gt;Has anyone ever played around with that and managed to solve it?&amp;nbsp;&lt;/P&gt;&lt;P&gt;oauth2 seems to be supported (e.g.&amp;nbsp;&lt;A href="https://github.com/open-telemetry/opentelemetry-collector-contrib/tree/main/extension/oauth2clientauthextension" target="_blank"&gt;opentelemetry-collector-contrib/extension/oauth2clientauthextension at main · open-telemetry/opentelemetry-collector-contrib (github.com)&lt;/A&gt;), but I need a bit of configuration advice here.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;</description>
      <pubDate>Tue, 26 Mar 2024 15:37:46 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/OpenTelemetry-Skyline/Skyline-and-Azure-managed-prometheus/m-p/209732#M346</guid>
      <dc:creator>Peter_Gastinger</dc:creator>
      <dc:date>2024-03-26T15:37:46Z</dc:date>
    </item>
    <item>
      <title>Re: Skyline and Azure managed prometheus</title>
      <link>https://community.checkpoint.com/t5/OpenTelemetry-Skyline/Skyline-and-Azure-managed-prometheus/m-p/209837#M347</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.checkpoint.com/t5/user/viewprofilepage/user-id/75091"&gt;@Peter_Gastinger&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;For the correct format of the payload, refer to the&amp;nbsp;&lt;A href="https://sc1.checkpoint.com/documents/Appliances/Skyline/Default.htm" target="_self"&gt;Skyline Administration Guide&lt;/A&gt;&amp;nbsp;.&lt;/P&gt;</description>
      <pubDate>Fri, 03 May 2024 19:06:49 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/OpenTelemetry-Skyline/Skyline-and-Azure-managed-prometheus/m-p/209837#M347</guid>
      <dc:creator>Elad_Chomsky</dc:creator>
      <dc:date>2024-05-03T19:06:49Z</dc:date>
    </item>
    <item>
      <title>Re: Skyline and Azure managed prometheus</title>
      <link>https://community.checkpoint.com/t5/OpenTelemetry-Skyline/Skyline-and-Azure-managed-prometheus/m-p/209908#M348</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for your response! Unfortunately, there is nothing oauth2 specific.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I don't have a static token, but I generated a access_token and tried the example, but it doesn't work. I was using the mlmproxy to check the request and I don't see any authentication related part in the header:&lt;/P&gt;&lt;LI-CODE lang="python"&gt;Host: testhost
User-Agent: opentelemetry-collector-binary---check-point-modifications/CPotelcol_0.82.0
Content-Length: 15439
Content-Encoding: snappy
Content-Type: application/x-protobuf
X-Prometheus-Remote-Write-Vers 0.1.0
ion:
Accept-Encoding: gzip
[cannot decode] Couldn't parse: falling back to Raw&lt;/LI-CODE&gt;&lt;P&gt;This is the example I was using:&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;{
  "enabled": true,
  "export-targets": {
    "add": [
      {
        "client-auth": {
          "token": {
            "custom-header": {
              "key": "Authorization",
              "value": "Bearer {{ token }}"
            }
          }
        },
        "enabled": true,
        "type": "prometheus-remote-write",
        "url": "https://azuresomething.westeurope-1.metrics.ingest.monitor.azure.com/dataCollectionRules/dcr-1566dca15e8d4766af99f66fbdaeda18/streams/Microsoft-PrometheusMetrics/api/v1/write?api-version=2023-04-24"
      }
    ]
  }
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any idea?&lt;/P&gt;&lt;P&gt;regards,&amp;nbsp;&lt;/P&gt;&lt;P&gt;Peter&lt;/P&gt;</description>
      <pubDate>Thu, 28 Mar 2024 09:23:16 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/OpenTelemetry-Skyline/Skyline-and-Azure-managed-prometheus/m-p/209908#M348</guid>
      <dc:creator>Peter_Gastinger</dc:creator>
      <dc:date>2024-03-28T09:23:16Z</dc:date>
    </item>
    <item>
      <title>Re: Skyline and Azure managed prometheus</title>
      <link>https://community.checkpoint.com/t5/OpenTelemetry-Skyline/Skyline-and-Azure-managed-prometheus/m-p/209911#M349</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.checkpoint.com/t5/user/viewprofilepage/user-id/75091"&gt;@Peter_Gastinger&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;We don't support oauth2, only the base sigv4 authentication from AWS, for any enhancements, please open an RFE - and we will see if we can push it as part of the roadmap.&lt;/P&gt;</description>
      <pubDate>Thu, 28 Mar 2024 09:29:26 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/OpenTelemetry-Skyline/Skyline-and-Azure-managed-prometheus/m-p/209911#M349</guid>
      <dc:creator>Elad_Chomsky</dc:creator>
      <dc:date>2024-03-28T09:29:26Z</dc:date>
    </item>
  </channel>
</rss>

