Hey there fellows!
So I have been trying to set up integration between the Skyline and Mimir, so far so good.
Following the post : Custom-http-Header-for-Export-and-HTTPS-without-authentication/ and the recommendation of Elad_Chomsky, I have tried setting it up with the following config file:
{
"enabled": true,
"export-targets": {
"add/remove": [
{
"client-auth": {
"token": {
"custom-header": {
"key": "X-Scope-OrgID",
"value": "1"
}
}
},
"enabled": false,
"server-auth": {
"ca-public-key": {
"type": "PEM-X509",
"value": "-----BEGIN CERTIFICATE-----BASE64TEXTHERE-----END CERTIFICATE-----"
}
},
"type": "prometheus-remote-write",
"url": "https://example.com/api/v1/push"
}
]
}
}
The only problem I have ran into is the "ca-public-key", I tried putting the Certificate of the Mimir or even the CA the signed the Mimir certificate but looking at "otelcol.log" I see the following error message:
"Exporting failed. the error is not retryable. Dropping data. {"kind": "exporter", "date_type": "metrics", "name": "prometheusremotewrite", "error": "Permanent error: Permanent error: Post \"<usl-of-mimir>/api/v1/push\": x509: certificate singed by unknown authority (possibly because of \ "crypto/rsa: verification error\" while trying to verify candidate authority certificate \"<Root CA Name>\")", "dropped_items": 737}
Any advice? Or idea what can I do? what can I check?