sw-samuraj / oci-sd Goto Github PK
View Code? Open in Web Editor NEWPrometheus service discovery for OCI (Oracle Cloud Infrastructure)
License: BSD 3-Clause "New" or "Revised" License
Prometheus service discovery for OCI (Oracle Cloud Infrastructure)
License: BSD 3-Clause "New" or "Revised" License
Hello,is there an easy way to modify the file permissions of the output file. since the output file always have 600 rights, Prometheus is not able to read the output file. I have to change the permissions manually to get prometheus working. Is there something I can do beside execute every x minutes a cron job? :(
We got a situation that a returned Vnic doesn't have public ip.
As oci-sd crashes.
The Vnic looks like:
Vnic={
AvailabilityDomain=CMiL:US-ASHBURN-AD-1
CompartmentId=ocid1.tenancy.oc1...
Id=ocid1.vnic.oc1....
LifecycleState=AVAILABLE
SubnetId=ocid1.subnet.oc1.iad....
TimeCreated=2019-11-20 08:47:44.691 +0000 UTC
DefinedTags=map[]
DisplayName=ohad-instance-20191120-1046
FreeformTags=map[]
HostnameLabel=ohad-instance-20191120-1046
IsPrimary=true
MacAddress=XXX
NsgIds=[]
PrivateIp=XXX
PublicIp=
SkipSourceDestCheck=false }
Etag=3bb52290
OpcRequestId=XXX }
I'm trying to build the standalone version of oci-sd
, but I'm getting build errors. I'm wondering if there was a dependency change that is breaking the build process.
make build
go: error loading module requirements
For reference, I'm building with go1.12.7
oci not support cloud exporter, so this could suuport export cloud service metrics like mysql?
The terraform example needs to be updated to work with the latest version of terraform. In addition, need to update the version of prometheus, use modern OCI shapes (Flex), modern OS (OL8), and to handle starting the services under SELinux.
There was a log like this.
Aug 4 02:17:13 prometheus prometheus: level=error ts=2020-08-04T02:17:13.312Z caller=file.go:323 component="discovery manager scrape" discovery=file msg="Error reading file" path =/home/user/oci-sd/oci-sd.json err="\"__meta_oci_defined_tag_Oracle-Tags_CreatedBy\" is not a valid label name"
I replaced "__meta_oci_defined_tag_Oracle-Tags_CreatedBy" with "__meta_oci_defined_tag_Oracle_Tags_CreatedBy" in oci-sd.json and ran Prometheus.
Same for "Oracle-Tags_CreatedOn".
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.