Good afternoon all. I have tried over and over to get a datasource to work for my api calls, but just cant seem to get it right.
I was given a p12 key file with a password, and realized that there was no way in grafana to use it as I normally do with postman. I converted to a pem and also a base64. I tried both ways and I just cannot seemt o get it to work. My curls work, but no matter how I try entering the credentials, grafana seems to append my ‘Get’ in a way that does not work. I’ve tried just about every combination I could using the infinity datasource. For example, this curl works from my ubuntu systems without issue (I removed identifying criteria in this example) : curl --cert certificate.pem:xxxxxxxxxxxxxxxxx --pass xxxxxxxxxxxxxxxxxx -X GET ‘https://xxxx.xxxx.com/api/v1/devices?from=1&size=50’
BUT, no matter how I try adding the creds to a datasource, the curl that shows as failing in the query inspector seems to show that the ‘GET’ always precedes the auth info.
went through all of them… but the one that fit the most was infinity. I tried all auth types… even no auth and adding headers instead, but the ‘get’ still appends to the beginning of the query and it fails. I just can;t figure it out
Internal Rest… They are developer and provided a p12 keyfile and password. They told me to use postman, and that works without issue, because postman allows you to import the key. So I converted the p12 into a pem with password, and ran a curl to the endpoint, and it worked perfectly. Also as a base64 key. But for the life of me, can figure out how to get the formatting to work. Tried auth, tried only headers, but the ‘Get’ appends to the from of my string no matter what I try so auth fails.